Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029017Retail ModulesWeb POSpublic2015-02-22 18:042015-03-31 16:04
jecharri 
aaroncalero 
immediatemajoralways
closedno change required 
5
RR14Q3.5 
RR15Q3RR15Q3 
aaroncalero
OBPS
34279
No
0029017: Paymentmethodcashup table is not properly updated
Paymentmethodcashup table is not properly updated. It seems that some times the ticket payment amount is not exactly the same as the total gross amount of the order.

We have a client with one example, log lines:
"20-02-2015 07:50:38","Warn","XXX","""SetPaymentMethod:Cash. totalSales: 347000. totalReturns: 0"""
"20-02-2015 07:50:37","Warn","XXX","""Cash up info transactions saved correctly"""
"20-02-2015 07:50:34","Warn","XXX","""getNextDocumentNo: 27722"""
"20-02-2015 07:50:34","Warn","XXX","""Executing of post order save hook."""
"20-02-2015 07:50:34","Warn","XXX","""SetTotalTransactions: 387000"""
"20-02-2015 07:50:34","Warn","XXX","""SetGrossSales: 387000"""
"20-02-2015 07:50:34","Warn","XXX","""SetNetSales: 351818.1818181"""
"20-02-2015 07:50:34","Warn","XXX","""Setting document sequence: {\""documentSequence\"":27721,\""quotationDocumentSequence\"":0,\""id\"":\""66CFD3D59576353C8F4ECB0839B512BC\"",\""posSearchKey\"":\""XXX\""}"""
"20-02-2015 07:50:34","Warn","XXX","""Updating cashup"""
"20-02-2015 07:50:34","Warn","XXX","""Saving receipt."""
"20-02-2015 07:50:34","Warn","XXX","""Ticket closed. Id: B3C7DD86725FD533D12D24208E43FCF5. Docno: XXX/0027721. Total gross: 50000. Lines: [{Product: Milk, Quantity: 5 Gross: 50000}] Payments: [{PaymentMethod: OBPOS_payment.cash, Amount: 10000 OrigAmount: 10000"
"20-02-2015 07:50:27","Warn","XXX","""Order successfully removed."""
"20-02-2015 07:50:27","Warn","XXX","""Sync process success."""
"20-02-2015 07:50:27","Warn","XXX","""callback runsyncprocess"""
"20-02-2015 07:50:25","Warn","XXX","""Updating cashup"""
"20-02-2015 07:50:24","Warn","XXX","""SetPaymentMethod:Cash. totalSales: 337000. totalReturns: 0"""


As you will see when ticket, 0027720 was closed, total Sales was set to 33700. However after ticket 0027721 was closed, the total should be 387000 instead of 347000 as it can be read in first line of the log. The problem is that ticket had only 10000 in payment JSON object and total was 50000. The order in the ERP was properly created with 50000 in the payment
-
No tags attached.
related to defect 0029018 closed aaroncalero Paymentmethodcashup table is not properly updated 
Issue History
2015-02-22 18:04jecharriNew Issue
2015-02-22 18:04jecharriAssigned To => marvintm
2015-02-22 18:04jecharriOBNetwork customer => Yes
2015-02-22 18:04jecharriSupport ticket => 34279
2015-02-22 18:04jecharriResolution time => 1424818800
2015-02-22 18:04jecharriTriggers an Emergency Pack => No
2015-02-22 18:40jecharriIssue cloned0029018
2015-02-22 18:58jecharriRelationship addedrelated to 0029018
2015-03-30 14:02jonalegriaesarteTarget VersionRR15Q2 => RR15Q3
2015-03-31 15:59aaroncaleroStatusnew => scheduled
2015-03-31 15:59aaroncaleroAssigned Tomarvintm => aaroncalero
2015-03-31 15:59aaroncaleroStatusscheduled => resolved
2015-03-31 15:59aaroncaleroFixed in Version => RR15Q3
2015-03-31 15:59aaroncaleroResolutionopen => fixed
2015-03-31 16:00aaroncaleroStatusresolved => new
2015-03-31 16:00aaroncaleroResolutionfixed => open
2015-03-31 16:00aaroncaleroFixed in VersionRR15Q3 =>
2015-03-31 16:04aaroncaleroReview Assigned To => aaroncalero
2015-03-31 16:04aaroncaleroNote Added: 0076175
2015-03-31 16:04aaroncaleroStatusnew => closed
2015-03-31 16:04aaroncaleroResolutionopen => no change required
2015-03-31 16:04aaroncaleroFixed in Version => RR15Q3

Notes
(0076175)
aaroncalero   
2015-03-31 16:04   
The original issue was found in 14Q3, and was caused because it was possible to tap on the Total Amount button before the current amount of the ticket had been calculated.
With the addition of the Synchronization Helper and fixes done for several issues (e.g. 29208) the total amount button will remain disabled until the correct amount has been calculated.