Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #36114 All Revisions ] Back to Issue ]
Summary 0036114: Save customer in Web POS is only allowed for the business partners selected on the tickets
Revision 2017-05-30 09:08 by marvintm
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')
    })
})

Revision 2017-05-29 15:51 by marvintm
Steps To Reproduce It is needed to edit a customer different from the one selected in the ticket and save it.

Note that the data customer modified is not saved


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker