Pipedrive: allow super admin to choose target pipeline

This commit is contained in:
simon lehericey 2018-03-23 17:31:03 +01:00
parent 6a74aaa42a
commit 2102130fa3
3 changed files with 25 additions and 6 deletions

View file

@ -7,6 +7,11 @@ class PipedriveService
PIPEDRIVE_ALL_NOT_DELETED_DEALS = 'all_not_deleted'
PIPEDRIVE_ADMIN_CENTRAL_STOCK_STAGE_ID = 35
PIPEDRIVE_REGIONS_STOCK_STAGE_ID = 24
PIPEDRIVE_PREFECTURES_STOCK_STAGE_ID = 20
PIPEDRIVE_DEPARTEMENTS_STOCK_STAGE_ID = 30
PIPEDRIVE_COMMUNES_STOCK_STAGE_ID = 40
PIPEDRIVE_ORGANISMES_STOCK_STAGE_ID = 1
class << self
def accept_deals_from_person(person_id, owner_id, stage_id)