Openbravo Issue Tracking System - Retail Modules
View Issue Details
0044408Retail ModulesWeb POSpublic2020-06-18 10:542020-06-29 08:25
guilleaer 
guilleaer 
normalminorhave not tried
closedfixed 
5
 
RR20Q3RR20Q3 
marvintm
No
0044408: [CRMConnector] After modifying properties through onPropertyValueChange values are not internally reflected
After modifying properties through onPropertyValueChange values are not internally reflected and validations fails
Using module
org.openbravo.retail.samplebpintegration

include in file org.openbravo.retail.samplebpintegration/js/SampleBPIntegrationProxy.js
the following code

   async onPropertyValueChange(businessPartner, property, config) {
+ if (property.apiKey === 'xName' && property.value === 'GAL') {
+ let newBp = businessPartner.clone();
+ return new Promise(function(resolve) {
+ setTimeout(() => {
+ newBp.getPropertyByKey('xLastName').value = '@galopenbravo';
+ newBp.getPropertyByKey('xVIP').value = true;
+ newBp.getPropertyByKey('xAddress').value = 'Main Street London';
+ newBp.getPropertyByKey('xPhone').value = '987456123';
+ newBp.getPropertyByKey('xEmail').value = 'gal@openbravo.com';
+ newBp.getPropertyByKey('xBirthday').value = '1984-11-16';
+ resolve(newBp);
+ }, 1000);
+ });
+ }
The object managed by main popup should be updated with the new one
No tags attached.
diff issue44408.diff (1,996) 2020-06-18 10:55
https://issues.openbravo.com/file_download.php?file_id=14646&type=bug
Issue History
2020-06-18 10:54guilleaerNew Issue
2020-06-18 10:54guilleaerAssigned To => guilleaer
2020-06-18 10:54guilleaerTriggers an Emergency Pack => No
2020-06-18 10:55guilleaerFile Added: issue44408.diff
2020-06-19 08:42hgbotCheckin
2020-06-19 08:42hgbotNote Added: 0120909
2020-06-19 08:42hgbotStatusnew => resolved
2020-06-19 08:42hgbotResolutionopen => fixed
2020-06-19 08:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/79dc12070a2179bbd990e03bb0dc87253cce7605 [^]
2020-06-29 08:25marvintmReview Assigned To => marvintm
2020-06-29 08:25marvintmStatusresolved => closed
2020-06-29 08:25marvintmFixed in Version => RR20Q3

Notes
(0120909)
hgbot   
2020-06-19 08:42   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 79dc12070a2179bbd990e03bb0dc87253cce7605
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Fri Jun 19 08:41:43 2020 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/79dc12070a2179bbd990e03bb0dc87253cce7605 [^]

Fixed BUG 44408: When extBP properties are updated from API they are not reflected in sent object

---
M web/org.openbravo.retail.posterminal/js/components/externalbusinesspartner_viewedit.js
---