Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040689Retail ModulesWeb POSpublic2019-04-26 11:392019-04-26 11:39
jorge-garcia 
Retail 
normalmajorhave not tried
newopen 
5
 
 
No
0040689: Wrong order status if calculate currentcash or updateDocumentSequenceWhenOrderSaved fails in syncrhonize mode
Wrong order status if calculate currentcash or updateDocumentSequenceWhenOrderSaved fails in syncrhonize mode
This code is inside dataordersave.js file:
if (OB.MobileApp.model.hasPermission('OBMOBC_SynchronizedMode', true)) {
  OB.Dal.transaction(function(tx) {
    OB.UTIL.calculateCurrentCash(null, tx);

    OB.MobileApp.model.updateDocumentSequenceWhenOrderSaved(frozenReceipt.get('documentnoSuffix'), frozenReceipt.get('quotationnoSuffix'), frozenReceipt.get('returnnoSuffix'), function() {
      // the trigger is fired on the receipt object, as there is only 1 that is being updated
      receipt.trigger('integrityOk', frozenReceipt); // Is important for module print last receipt. This module listen trigger.
      syncSuccessCallback(function() {
        serverMessageForQuotation(frozenReceipt);
        closeParamCallback();
      }, eventParams);
    }, tx);
  });
}

If the transaction fails, the order could enter in a wrong state.
No tags attached.
related to defect 0040232 closed rqueralta Sales quotation is not saved in Back Office 
Issue History
2019-04-26 11:39jorge-garciaNew Issue
2019-04-26 11:39jorge-garciaAssigned To => Retail
2019-04-26 11:39jorge-garciaTriggers an Emergency Pack => No
2019-04-26 11:40jorge-garciaRelationship addedrelated to 0040232

There are no notes attached to this issue.