Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043534Retail ModulesWeb POSpublic2020-03-20 20:162020-03-20 20:16
rtoledano 
Retail 
normalminorN/A
newopen 
5
RR20Q1 
 
No
0043534: Add customer parameter to hook OBPOS_BeforeCustomerAddrSave
Adding the customer parameter to the OBPOS_BeforeCustomerAddrSave hook will allow you to validate the edition or creation of addresses depending on other properties of the business partner. For example if the customer is loyalty or not,etc.
1- Go to source code org.openbravo.retail.posterminal/web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customeraddress/components/sharedcomponents.js
2- There are three places where the execution of the hook OBPOS_BeforeCustomerAddrSave is declared.
3-You can verify, that there is no access to the business partner properties
Add the customer parameter at the three points where hook execution is invoked.
There is an attachment with the proposed patch.

Proposed commit message: Add parameter customer during
 OBPOS_BeforeCustomerAddrSave hook executions.
No tags attached.
patch Add-parameter-customer-during-OBPOS_BeforeCustomerAddrSave.patch (3,140) 2020-03-20 20:16
https://issues.openbravo.com/file_download.php?file_id=14186&type=bug
Issue History
2020-03-20 20:16rtoledanoNew Issue
2020-03-20 20:16rtoledanoAssigned To => Retail
2020-03-20 20:16rtoledanoFile Added: Add-parameter-customer-during-OBPOS_BeforeCustomerAddrSave.patch
2020-03-20 20:16rtoledanoTriggers an Emergency Pack => No

There are no notes attached to this issue.