Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#230 [Extrafield] add: opportunity origin field to list #239

Merged
merged 4 commits into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/modules/modEasyCRM.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public function init($options = ''): int
$extrafields->addExtraField('projectphone', $langs->transnoentities('ProjectPhone'), 'phone', 100, '', 'projet', 0, 0, '', 'a:1:{s:7:"options";a:1:{s:0:"";N;}}', 1, '', 1);
$extrafields->addExtraField('commstatus', $langs->transnoentities('CommercialStatus'), 'sellist', 100, '', 'propal', 0, 0, '', 'a:1:{s:7:"options";a:1:{s:34:"c_commercial_status:label:rowid::1";N;}}', 1, '', 1, 'CommercialStatusHelp');
$extrafields->addExtraField('commrefusal', $langs->transnoentities('RefusalReason'), 'sellist', 100, '', 'propal', 0, 0, '', 'a:1:{s:7:"options";a:1:{s:31:"c_refusal_reason:label:rowid::1";N;}}', 1, '', 1, 'RefusalReasonHelp');
$extrafields->addExtraField('opportunity_origin', $langs->transnoentities('OpportunityOrigin'), 'sellist', 100, '', 'projet', 0, 0, '', 'a:1:{s:7:"options";a:1:{s:19:"c_input_reason:code";N;}}', 1, '', 1, '', '', '', 'easycrm.lang');
evarisk-micka marked this conversation as resolved.
Show resolved Hide resolved

// Societe extrafields
$extrafields->update('notation_societe_contact', 'NotationObjectContact', 'text', '', 'societe', 0, 0, 100, '', '', '', 5, 'NotationObjectContactHelp', '', '', 0, 'easycrm@easycrm', 1, 0, 0, ['csslist' => 'center']);
Expand Down
13 changes: 13 additions & 0 deletions langs/fr_FR/easycrm.lang
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,16 @@ UpdateObjectContactTrigger = Mise à jour du rôle "contacts factura
NoContact = Aucun contact
AddContactNotificationTrigger = Ajout d'une notification contact "action Facture client validée" des tiers
ActionAC_PHYSICAL_SALES_RELAUCH = Relance commercial physique
OpportunityOrigin = Origine de l'opportunitée
SRC_INTE = Internet
SRC_CAMP_MAIL = Campagne Publipostage
SRC_CAMP_EMAIL = Campagne d'emailing
SRC_CAMP_PHO = Campagne Téléphonique
SRC_CAMP_FAX = Campagne Fax
SRC_COMM = Contact commercial
SRC_SHOP = Contact en boutique
SRC_WOM = Bouche à oreille
SRC_PARTNER = Partenaire
SRC_EMPLOYEE = Employé
SRC_SPONSORING = Parrainage/Sponsoring
SRC_CUSTOMER = Contact entrant d'un client