Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0029018 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | major | always | 2015-02-22 18:40 | 2015-03-30 13:34 | |||
Reporter | jecharri | View Status | public | |||||
Assigned To | aaroncalero | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | RR15Q2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 96f4affa86ce | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | RR14Q3.5 | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | malsasua | |||||||
OBNetwork customer | OBPS | |||||||
Support ticket | 34279 | |||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0029018: Paymentmethodcashup table is not properly updated | |||||||
Description | Paymentmethodcashup table is not properly updated. If the user press F5 or refresh the window in incorrect moment the paymentmetodcashup is not updated We have a client with one example, log lines: "21-02-2015 13:17:12","Warn","XXX","""SetPaymentMethod:Cash. totalSales: 548000. totalReturns: 0""" "21-02-2015 13:17:12","Warn","XXX","""Cash up info transactions saved correctly""" "21-02-2015 13:17:08","Warn","XXX","""getNextDocumentNo: 16537""" "21-02-2015 13:17:07","Warn","XXX","""Executing of post order save hook.""" "21-02-2015 13:17:07","Warn","XXX","""SetTotalTransactions: 568000""" "21-02-2015 13:17:07","Warn","XXX","""SetGrossSales: 568000""" "21-02-2015 13:17:07","Warn","XXX","""SetNetSales: 516363.63636358""" "21-02-2015 13:17:07","Warn","XXX","""SetNetSales: 498181.81818176""" "21-02-2015 13:17:07","Warn","XXX","""SetGrossSales: 548000""" "21-02-2015 13:17:07","Warn","XXX","""SetGrossSales: 500500""" "21-02-2015 13:17:07","Warn","XXX","""SetNetSales: 454999.99999996""" "21-02-2015 13:17:07","Warn","XXX","""Updating cashup""" "21-02-2015 13:17:07","Warn","XXX","""Setting document sequence: {\""documentSequence\"":16536,\""quotationDocumentSequence\"":0,\""id\"":\""88DAE6D41457AE20CEBA9DD762191AF9\"",\""posSearchKey\"":\""XXX\""}""" "21-02-2015 13:17:07","Warn","XXX","""Saving receipt.""" "21-02-2015 13:17:07","Warn","XXX","""Ticket closed. Id: 0ACFADF2FCDAE0B6E086337C63837619. Docno: DSK/0016536. Total gross: 77500. Lines: [{Product: RTL-Stick Pastry, Quantity: 1 Gross: 10000},{Product: RTL-Rotiboy, Quantity: 5 Gross: 47500},{Product: RTL-Butter Milk, Quantity: 2 Gross: 20000}] Payments: [{PaymentMethod: OBPOS_payment.cash, Amount: 77500 OrigAmount: 77500""" "21-02-2015 13:12:46","Warn","XXX","""Login online""" "21-02-2015 13:12:46","Warn","XXX","""triggerOnline""" "21-02-2015 13:12:36","Warn","XXX","""getNextDocumentNo: 16536""" "21-02-2015 13:12:15","Warn","XXX","""Setting document sequence: {\""documentSequence\"":16535,\""quotationDocumentSequence\"":0,\""id\"":\""88DAE6D41457AE20CEBA9DD762191AF9\"",\""posSearchKey\"":\""XXX\""}""" "21-02-2015 13:12:11","Warn","XXX","""Login using cache""" "21-02-2015 13:12:11","Debug","XXX","""next process:"" " "21-02-2015 13:11:42","Warn","XXX","""SetTotalTransactions: 490500""" "21-02-2015 13:11:42","Warn","XXX","""SetGrossSales: 490500""" "21-02-2015 13:11:42","Warn","XXX","""SetGrossSales: 480500""" "21-02-2015 13:11:42","Warn","XXX","""SetNetSales: 445909.09090905""" "21-02-2015 13:11:42","Warn","XXX","""SetNetSales: 436818.18181814""" "21-02-2015 13:11:42","Warn","XXX","""Updating cashup""" "21-02-2015 13:11:42","Warn","XXX","""Setting document sequence: {\""documentSequence\"":16535,\""quotationDocumentSequence\"":0,\""id\"":\""88DAE6D41457AE20CEBA9DD762191AF9\"",\""posSearchKey\"":\""XXX\""}""" "21-02-2015 13:11:42","Warn","XXX","""Saving receipt.""" "21-02-2015 13:11:41","Warn","XXX","""Ticket closed. Id: AC9F407EDEC0CB03CE22CB2BC74821C7. Docno: DSK/0016535. Total gross: 20000. Lines: [{Product: RTL-Choco Boy, Quantity: 1 Gross: 10000},{Product: RTL-Stick Pastry, Quantity: 1 Gross: 10000}] Payments: [{PaymentMethod: OBPOS_payment.cash, Amount: 20000 OrigAmount: 20000 """ "21-02-2015 13:10:08","Warn","XXX","""getNextDocumentNo: 16535""" "21-02-2015 13:08:05","Warn","XXX","""Login online""" "21-02-2015 13:08:05","Debug","XXX","""keypressHandler - keyCode: 13 - keyIdentifier: Enter - charCode: 0 - which: 13""" "21-02-2015 13:08:05","Warn","XXX","""triggerOnline""" "21-02-2015 13:07:50","Warn","XXX","""getNextDocumentNo: 16535""" "21-02-2015 13:07:31","Warn","XXX","""Setting document sequence: {\""documentSequence\"":16534,\""quotationDocumentSequence\"":0,\""id\"":\""88DAE6D41457AE20CEBA9DD762191AF9\"",\""posSearchKey\"":\""XXX\""}""" "21-02-2015 13:07:27","Warn","XXX","""Login using cache""" "21-02-2015 13:07:27","Debug","XXX","""next process:"" " "21-02-2015 13:07:12","Warn","XXX","""Logout""" "21-02-2015 13:07:12","Warn","XXX","""logout button pushed""" "21-02-2015 13:07:05","Warn","XXX","""triggerOffline""" "21-02-2015 13:06:50","Warn","XXX","""session not valid popup shown""" "21-02-2015 13:06:50","Warn","XXX","""triggerOnline""" "21-02-2015 13:05:50","Warn","XXX","""triggerOffline""" "21-02-2015 13:05:35","Warn","XXX","""session not valid popup shown""" "21-02-2015 13:05:35","Warn","XXX","""triggerOnline""" "21-02-2015 13:05:33","Warn","XXX","""triggerOffline""" "21-02-2015 13:05:27","Warn","XXX","""triggerOffline""" "21-02-2015 13:05:27","Warn","XXX","""Updating cashup""" "21-02-2015 13:05:24","Warn","XXX","""SetPaymentMethod:Cash. totalSales: 470500. totalReturns: 0""" "21-02-2015 13:05:24","Warn","XXX","""Cash up info transactions saved correctly""" We can see that after last ticket is closed the total is "SetPaymentMethod:Cash. totalSales: 470500. totalReturns: 0" however we can see that after that 2 new tickets are created: -DSK/0016535 = 20000 -DSK/0016536 = 77500 Total should be 470500 + 20000 + 77500 = 568000 however the total is set to "SetPaymentMethod:Cash. totalSales: 548000. totalReturns: 0" losing 20000. | |||||||
Steps To Reproduce | - | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0075223) hgbot (developer) 2015-03-06 08:57 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: d9bc1b0fcb8a86812e92e75545fb7d4a42a9500c Author: Aaron Calero <aaron.calero <at> openbravo.com> Date: Fri Mar 06 08:47:36 2015 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d9bc1b0fcb8a86812e92e75545fb7d4a42a9500c [^] Fixed issue 29018: Paymentmethodcashup table is not properly updated. Changed the order of actions to ensure that the receipt is saved and (if online) sent to the server only after updating the paymentmethodcashup table --- M web/org.openbravo.retail.posterminal/js/data/dataordersave.js --- |
(0075249) hgbot (developer) 2015-03-06 14:12 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 10348391772930af559ad03cddaa2c1e9dcd1d3b Author: Aaron Calero <aaron.calero <at> openbravo.com> Date: Fri Mar 06 14:09:46 2015 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/10348391772930af559ad03cddaa2c1e9dcd1d3b [^] Related to issue 29018: Temporarily backout changeset d9bc1b0fcb8a as it's breaking 2 tests --- M web/org.openbravo.retail.posterminal/js/data/dataordersave.js --- |
(0075556) hgbot (developer) 2015-03-13 13:39 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 96f4affa86ce6bab5a24b719758c5c30149dd87a Author: Aaron Calero <aaron.calero <at> openbravo.com> Date: Fri Mar 13 13:22:42 2015 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/96f4affa86ce6bab5a24b719758c5c30149dd87a [^] Fixed issue 29018: Paymentmethodcashup table is not properly updated Changed the order of actions to ensure that the receipt is saved and (if online) sent to the server only after updating the paymentmethodcashup table Also refactored the way the current order's docNo is handled, to ensure that it is correctly updated after closing a receipt --- M web/org.openbravo.retail.posterminal/js/data/dataordersave.js M web/org.openbravo.retail.posterminal/js/login/model/login-model.js M web/org.openbravo.retail.posterminal/js/model/order.js M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js --- |
(0075567) hgbot (developer) 2015-03-13 14:40 |
Repository: tools/automation/pi-mobile Changeset: 3ac65d9cdf313bee00c94fa62aa75b797b5e5452 Author: Aaron Calero <aaron.calero <at> openbravo.com> Date: Fri Mar 13 13:34:24 2015 +0100 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/3ac65d9cdf313bee00c94fa62aa75b797b5e5452 [^] Related to issue 29018: Changed BackboneHelper to use the new callback when updating the docNo --- M src-test/org/openbravo/test/mobile/common/selenium/javascript/BackboneHelper.java --- |
(0075587) hgbot (developer) 2015-03-13 23:53 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 7c9c2f44822bbf01bfde24657483994a34550352 Author: Rafa Alonso <rafael.alonso <at> openbravo.com> Date: Fri Mar 13 23:47:38 2015 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7c9c2f44822bbf01bfde24657483994a34550352 [^] Related to issue 29018: Backed out multiorders related changeset As multiorders follow a diferent flow, the callback may not be required. This should be properly verified. < Preemptive action > --- M web/org.openbravo.retail.posterminal/js/data/dataordersave.js --- |
(0076064) Orekaria (viewer) 2015-03-27 11:05 |
When closing, please close also the related 29019 |
(0076138) malsasua (viewer) 2015-03-30 13:34 |
verified |
![]() |
|||
Date Modified | Username | Field | Change |
2015-02-22 18:40 | jecharri | New Issue | |
2015-02-22 18:40 | jecharri | Assigned To | => marvintm |
2015-02-22 18:40 | jecharri | OBNetwork customer | => Yes |
2015-02-22 18:40 | jecharri | Support ticket | => 34279 |
2015-02-22 18:40 | jecharri | Resolution time | => 1424818800 |
2015-02-22 18:40 | jecharri | Triggers an Emergency Pack | => No |
2015-02-22 18:40 | jecharri | Issue generated from | 0029017 |
2015-02-22 18:58 | jecharri | Relationship added | related to 0029017 |
2015-03-06 08:57 | hgbot | Checkin | |
2015-03-06 08:57 | hgbot | Note Added: 0075223 | |
2015-03-06 08:57 | hgbot | Status | new => resolved |
2015-03-06 08:57 | hgbot | Resolution | open => fixed |
2015-03-06 08:57 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d9bc1b0fcb8a86812e92e75545fb7d4a42a9500c [^] |
2015-03-06 14:12 | hgbot | Checkin | |
2015-03-06 14:12 | hgbot | Note Added: 0075249 | |
2015-03-06 14:13 | aaroncalero | Assigned To | marvintm => aaroncalero |
2015-03-06 14:13 | aaroncalero | Status | resolved => new |
2015-03-06 14:13 | aaroncalero | Resolution | fixed => open |
2015-03-13 13:39 | hgbot | Checkin | |
2015-03-13 13:39 | hgbot | Note Added: 0075556 | |
2015-03-13 13:39 | hgbot | Status | new => resolved |
2015-03-13 13:39 | hgbot | Resolution | open => fixed |
2015-03-13 13:39 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d9bc1b0fcb8a86812e92e75545fb7d4a42a9500c [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/96f4affa86ce6bab5a24b719758c5c30149dd87a [^] |
2015-03-13 14:40 | hgbot | Checkin | |
2015-03-13 14:40 | hgbot | Note Added: 0075567 | |
2015-03-13 23:43 | Orekaria | Note Added: 0075586 | |
2015-03-13 23:43 | Orekaria | Status | resolved => new |
2015-03-13 23:43 | Orekaria | Resolution | fixed => open |
2015-03-13 23:49 | Orekaria | Note Edited: 0075586 | View Revisions |
2015-03-13 23:53 | hgbot | Checkin | |
2015-03-13 23:53 | hgbot | Note Added: 0075587 | |
2015-03-14 06:12 | Orekaria | Note Deleted: 0075586 | |
2015-03-23 15:56 | marvintm | Status | new => scheduled |
2015-03-23 15:57 | marvintm | Status | scheduled => resolved |
2015-03-23 15:57 | marvintm | Resolution | open => fixed |
2015-03-27 10:49 | aaroncalero | Relationship added | related to 0029019 |
2015-03-27 11:05 | Orekaria | Note Added: 0076064 | |
2015-03-30 13:34 | malsasua | Review Assigned To | => malsasua |
2015-03-30 13:34 | malsasua | Note Added: 0076138 | |
2015-03-30 13:34 | malsasua | Status | resolved => closed |
2015-03-30 13:34 | malsasua | Fixed in Version | => RR15Q2 |
Copyright © 2000 - 2009 MantisBT Group |