Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0036114 | Retail Modules | Web POS | public | 2017-05-26 09:50 | 2017-06-12 09:22 |
Reporter | Asantos9 | ||||
Assigned To | rqueralta | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR17Q3 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0036114: Save customer in Web POS is only allowed for the business partners selected on the tickets | ||||
Description | In order to modify a customer different from the one selected on the ticket, it is not possible to use saveCustomer method. In this point it is not the event necessary to save the customer. | ||||
Steps To Reproduce | - Add a breakpoint in the client side in the following code: this.customer.on('customerSaved', function () { OB.DATA.executeCustomerSave(this.customer); <- here }, this); - Open the customer selector, and then in the context menu select "Edit" - Change the name of the customer, and click on Save. Notice that the flow stops in the breakpoint. This is correct, as the executeCustomerSave call will ensure that the customer is correctly saved. However, this trigger doesn't happen if you get a customer in code, and try to execute saveCustomer to it: OB.Dal.find(OB.Model.BusinessPartner, { id: 'D5BF95FA079B4248B2CA2E2DA477D1B8' }, function(bps) { console.log(bps.at(0)); bps.at(0).saveCustomer(function() { console.log('fin') }) }) | ||||
Proposed Solution | We need to think on the best solution for this, but maybe one possibility is to modify the saveCustomer function so that it calls OB.DATA.executeCustomerSave(this.customer) directly instead of delegating on the trigger for that. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2017-05-26 09:50 | Asantos9 | New Issue | |||
2017-05-26 09:50 | Asantos9 | Assigned To | => Retail | ||
2017-05-26 09:50 | Asantos9 | OBNetwork customer | => Yes | ||
2017-05-26 09:50 | Asantos9 | Resolution time | => 1496959200 | ||
2017-05-26 09:50 | Asantos9 | Triggers an Emergency Pack | => No | ||
2017-05-29 15:51 | rqueralta | Assigned To | Retail => rqueralta | ||
2017-05-29 15:51 | rqueralta | Status | new => scheduled | ||
2017-05-30 09:08 | marvintm | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=15237#r15237 | ||
2017-05-30 09:08 | marvintm | Proposed Solution updated | |||
2017-06-07 22:26 | hgbot | Checkin | |||
2017-06-07 22:26 | hgbot | Note Added: 0097197 | |||
2017-06-07 22:26 | hgbot | Status | scheduled => resolved | ||
2017-06-07 22:26 | hgbot | Resolution | open => fixed | ||
2017-06-07 22:26 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/98e87f3b39b60df54dc7c55e01096439f926c925 [^] | ||
2017-06-12 09:22 | marvintm | Review Assigned To | => marvintm | ||
2017-06-12 09:22 | marvintm | Status | resolved => closed | ||
2017-06-12 09:22 | marvintm | Fixed in Version | => RR17Q3 |
Notes | |||||
|
|||||
|
|