Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027983Retail ModulesMulti order paymentpublic2014-10-27 09:182015-05-04 18:39
sureshbabu 
migueldejuana 
urgentmajorrandom
closedfixed 
5
 
RR15Q1 
mtaal
No
0027983: [RR14Q4] When receipts are paid through Pay open tickets option, system shows wrong total amount(receipt total amount)
After creating open tickets, when the user clicks Cash up option and cancel the cash up process. And then when the user try to pay the receipts through Pay open tickets option, system shows wrong total amount(shows one of the receipt total amount as zero)
1) create a Open receipt R1 for amount 113.50
2) Create one more open receipt R2 for amount 200
3) Then click Cash up process.
4) Without doing any thing cancel the cashup process by clicking the cancel button
5) Then try to pay the open receipts using "Pay open tickets" option and select both the receipts which are created at step 1 & Step 2.
6) Then verify the total amount of the each receipt.


Defect: System wrongly shows Receipt R2 amount as Zero (0.00) instead of 200.00

Note: Verify the screen shot for details.

No tags attached.
png When cash up process is cancelled and when i try to pay open tickets total amount shows wrong value.png (189,833) 2014-10-27 09:18
https://issues.openbravo.com/file_download.php?file_id=7429&type=bug
png
Issue History
2014-10-27 09:18sureshbabuNew Issue
2014-10-27 09:18sureshbabuAssigned To => marvintm
2014-10-27 09:18sureshbabuFile Added: When cash up process is cancelled and when i try to pay open tickets total amount shows wrong value.png
2014-10-27 09:18sureshbabuRegression level => QA functional test
2014-10-27 09:18sureshbabuTriggers an Emergency Pack => No
2014-10-28 16:26hgbotCheckin
2014-10-28 16:26hgbotNote Added: 0071232
2014-10-28 16:26hgbotStatusnew => resolved
2014-10-28 16:26hgbotResolutionopen => fixed
2014-10-28 16:26hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a6a0c039e5f2972608a18c2a2a96d3598e966594 [^]
2014-10-28 16:28migueldejuanaAssigned Tomarvintm => migueldejuana
2014-10-28 16:28migueldejuanaStatusresolved => new
2014-10-28 16:28migueldejuanaResolutionfixed => open
2014-10-28 16:29migueldejuanaStatusnew => scheduled
2014-10-28 16:29migueldejuanafix_in_branch => pi
2014-10-28 16:29migueldejuanaStatusscheduled => resolved
2014-10-28 16:29migueldejuanaResolutionopen => fixed
2014-11-03 13:57migueldejuanaNote Added: 0071356
2014-11-03 14:28sureshbabuNote Added: 0071358
2014-11-03 14:38sureshbabuAssigned Tomigueldejuana => sureshbabu
2014-11-03 14:38sureshbabuStatusresolved => new
2014-11-03 14:38sureshbabuResolutionfixed => open
2014-11-03 14:38sureshbabuRegression levelQA functional test =>
2014-11-03 14:38sureshbabufix_in_branchpi =>
2014-11-03 14:40sureshbabuAssigned Tosureshbabu => migueldejuana
2014-11-03 14:42migueldejuanaStatusnew => scheduled
2014-11-03 14:42migueldejuanafix_in_branch => pi
2014-11-03 14:42migueldejuanaStatusscheduled => resolved
2014-11-03 14:42migueldejuanaResolutionopen => fixed
2014-11-03 14:56mtaalReview Assigned To => mtaal
2014-11-03 14:56mtaalNote Added: 0071364
2014-11-03 14:56mtaalStatusresolved => closed
2014-11-03 14:56mtaalFixed in Version => RR15Q1
2015-05-04 13:47hgbotCheckin
2015-05-04 13:47hgbotNote Added: 0076941
2015-05-04 18:39hgbotCheckin
2015-05-04 18:39hgbotNote Added: 0076969

Notes
(0071232)
hgbot   
2014-10-28 16:26   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: a6a0c039e5f2972608a18c2a2a96d3598e966594
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Oct 28 16:24:46 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/a6a0c039e5f2972608a18c2a2a96d3598e966594 [^]

Fixed issue 0027983: [RR14Q4] When receipts are paid through Pay open tickets option, system shows wrong total amount(receipt total amount)

Recalculate gross amount when loading unpaid orders

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0071356)
migueldejuana   
2014-11-03 13:57   
I'm able to reproduce it in Q2,Q3 and Q4. Please Suresh, add some info to know better if it is a regression or just an issue.

Thanks
(0071358)
sureshbabu   
2014-11-03 14:28   
Retested, now i can able to reproduce in Q3 & Q2 instances. so its not a regression and i will update the fields accordingly.
(0071364)
mtaal   
2014-11-03 14:56   
Reviewed and tested
(0076941)
hgbot   
2015-05-04 13:47   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 37235e8d729ae054946c4355d7cc74bf76168b11
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Mon May 04 13:47:04 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/37235e8d729ae054946c4355d7cc74bf76168b11 [^]

fixed issue 29747: removed execution of applypromotions when the receipt is cloning and the receipt is saved when calculate gross is executed

when the receipt is cloning, the apply promotions is disabled, because it is generating multiples calls to cloneReceipt method, and it generates that the receipt cloned is corrupted
So, we have problems of refresh of receipt, for example issue 28457 and 27983. To avoid this problems, the order is saved in database local, when calculate gross is executed (to fix of other way the issue 28457)
And removed the fix to issue 27983, now it is working fine with the change to save the receipt in database local when calculate gross is executed

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0076969)
hgbot   
2015-05-04 18:39   
Repository: retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal
Changeset: f012545376ffa1e65269f775f59550391f919457
Author: Miguel A. Alsasua <miguel.alsasua <at> openbravo.com>
Date: Mon May 04 13:47:04 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q2/org.openbravo.retail.posterminal/rev/f012545376ffa1e65269f775f59550391f919457 [^]

fixed issue 29752: removed execution of applypromotions when the receipt is cloning and the receipt is saved when calculate gross is executed

when the receipt is cloning, the apply promotions is disabled, because it is generating multiples calls to cloneReceipt method, and it generates that the receipt cloned is corrupted
So, we have problems of refresh of receipt, for example issue 28457 and 27983. To avoid this problems, the order is saved in database local, when calculate gross is executed (to fix of other way the issue 28457)
And removed the fix to issue 27983, now it is working fine with the change to save the receipt in database local when calculate gross is executed

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---