Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040978Retail ModulesWeb POSpublic2019-05-30 15:342019-06-27 16:09
umartirena 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR19Q3 
jorge-garcia
No
0040978: Wrong Net Sales and Gross Sales values in Cashup History Report for Cancel and Replace
Wrong Net Sales and Gross Sales values in Cashup History Report for Cancel and Replace. Cancel and Replace amounts are duplicated.
Log in into https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]

 * Add Adhesive body warmers classic product to ticket
 * Pay by cash
 * Close the ticket
 * Click on Open Receipt and open the previous receipt
 * Click on Cancel and Replace
 * Without any change go to payments and click on Done.
 * Make cashup counting 5 in cash
 * Go to backoffice
 * Open Channel Touchpoint window and search for VBS-1 terminal.
 * Search in Cashup History Report tab the last processed cashup and check the following values:
    - Gross Sales: 10.00 (WRONG)
    - Net Sales: 8.26 (WRONG)
 * Check in Payment method status cashup tab the following values
    - Total Sales for Cash payment method: 5.00 (OK)

 The values in Cashup History Report tab are wrong. There are two options:
    - Gross Sales 10.00 and Gross Returns 5.00
    - Gross Sales 5.00
 
No tags attached.
related to defect 0041432 closed ranjith_qualiantech_com The cashup is not calculated correctly using cancel and replace in Web POS 
Issue History
2019-05-30 15:34umartirenaNew Issue
2019-05-30 15:34umartirenaAssigned To => Retail
2019-05-30 15:34umartirenaTriggers an Emergency Pack => No
2019-05-31 08:32umartirenaNote Added: 0112287
2019-05-31 08:33umartirenaResolution time => 1560463200
2019-06-07 14:15ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-06-07 14:15ranjith_qualiantech_comStatusnew => scheduled
2019-06-11 08:11hgbotCheckin
2019-06-11 08:11hgbotNote Added: 0112566
2019-06-11 08:11hgbotStatusscheduled => resolved
2019-06-11 08:11hgbotResolutionopen => fixed
2019-06-11 08:11hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c2cc75fab82afdb1d800eb4266a8f0479e75fdd [^]
2019-06-11 08:11hgbotCheckin
2019-06-11 08:11hgbotNote Added: 0112567
2019-06-27 13:49jorge-garciaReview Assigned To => jorge-garcia
2019-06-27 16:09jorge-garciaNote Added: 0113067
2019-06-27 16:09jorge-garciaStatusresolved => closed
2019-06-27 16:09jorge-garciaFixed in Version => RR19Q3
2019-08-05 09:36ranjith_qualiantech_comRelationship addedrelated to 0041432

Notes
(0112287)
umartirena   
2019-05-31 08:32   
This issue is making the cashup report to display wrong values.
(0112566)
hgbot   
2019-06-11 08:11   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0c2cc75fab82afdb1d800eb4266a8f0479e75fdd
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jun 11 11:40:32 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0c2cc75fab82afdb1d800eb4266a8f0479e75fdd [^]

Fixed issue 40978 : Cashup data should be updated when doing Cancal And Replace

* When doing CR, replacedOrderLine gross should be updated in returns and newLine should be updated in sales
  CR prepayments should be updated in payment method returns and new Payments should be added payment method sales

---
M web/org.openbravo.retail.posterminal/js/utils/cashUpReportUtils.js
---
(0112567)
hgbot   
2019-06-11 08:11   
Repository: tools/automation/pi-mobile
Changeset: 2214279586a74d2a7f30a0f799050833eccb9891
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Jun 11 11:40:48 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/2214279586a74d2a7f30a0f799050833eccb9891 [^]

Verifies issue 40978 : Added automated test 'I40978_VerifyCashupDataWithCR'

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/CancelAndRplReturn.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/I40978_VerifyCashupDataWithCR.java
---
(0113067)
jorge-garcia   
2019-06-27 16:09   
Code reviewed and tested