-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
NEW : Duplicate ref_client from order origin to intervention. #30000
base: develop
Are you sure you want to change the base?
Conversation
When creating an intervention from an order, duplicate the ref_client (as is already done for public and private notes).
htdocs/fichinter/card.php
Outdated
@@ -882,6 +882,7 @@ | |||
|
|||
$soc = $objectsrc->thirdparty; | |||
|
|||
$ref_client = (!empty($objectsrc->ref_client) ? $objectsrc->ref_client : GETPOST('ref_client', 'alpha')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Imagine you clone an intervention from a proposal.
The proposal has the ref PRABC for you and the proposal has the ref PR456 on customer side (so ref_client is PR456).
If you copy the ref of proposal into the intervention, you will got the ref of intervention that is
IN123 and the reference of this intervention into the customer system of the client will be saved as PR456.
But this is a reference of a proposal not of an intervention. You are mixing apple and pear here. So i suggest you introduce a hidden option
INTERVENTION_SET_CUSTOMER_PROPOSAL_REF_WITH_CUSTOMER_INTERVENTION_REF
Add the INTERVENTION_SET_CUSTOMER_PROPOSAL_REF_WITH_CUSTOMER_INTERVENTION_REF hidden option under @eldy's advice.
Hello |
NEW[Duplicate ref_client order origin to intervention]
When creating an intervention from an order, duplicate the ref_client (as is already done for public and private notes).