Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038151Retail ModulesWeb POSpublic2018-03-15 16:462018-03-26 09:44
maite 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR18Q2 
marvintm
No
0038151: Inconsistent payment created by cashup process when total sales for a business partner is 0
When the only activity registered for a Business Partner has been to create a ticket and to return it, cashup process will create an invoice with total amount 0. In this scenario, order's payment schedule details and payment's details are left in a non consistent status
0. Log into the terminal and execute a Cash up process to ensure that we start from a clean situation
1. Register one ticket selecting any product and pay it
2. Run "Verified returns" process, select previous ticket and pay it
3. Run Cash Up process, calculated amount will be 0.00 and select "nothing" option in cashup steps
4. Access backoffice, go to Sales Order window and verify that order appears as Paid (which is correct) but no record is shown in Payment Details tab (which is not correct). You can verify the same if you access to Return From Customer window and checks the return.

Moreover, access to Payment In window and realize that 2 last created documents (related with previous order and previous return) does not have lines.
Problem seems to be that, as total invoice's amount is 0.00 and invoice document should not have Payment Plan record, also the payment schedule detail records are being deleted (when it should not as they also belong to order documents)
No tags attached.
Issue History
2018-03-15 16:46maiteNew Issue
2018-03-15 16:46maiteAssigned To => Retail
2018-03-15 16:46maiteResolution time => 1522879200
2018-03-15 16:46maiteTriggers an Emergency Pack => No
2018-03-15 16:46maiteIssue Monitored: networkb
2018-03-15 17:43malsasuaIssue Monitored: malsasua
2018-03-16 12:43ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-03-16 12:43ranjith_qualiantech_comStatusnew => scheduled
2018-03-20 13:20ngarciaIssue Monitored: ngarcia
2018-03-22 06:41hgbotCheckin
2018-03-22 06:41hgbotNote Added: 0103401
2018-03-22 06:41hgbotStatusscheduled => resolved
2018-03-22 06:41hgbotResolutionopen => fixed
2018-03-22 06:41hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c80e5a5f545002e60a65ee7ae9e38064fbf3c786 [^]
2018-03-22 06:41hgbotCheckin
2018-03-22 06:41hgbotNote Added: 0103402
2018-03-26 09:44marvintmReview Assigned To => marvintm
2018-03-26 09:44marvintmStatusresolved => closed
2018-03-26 09:44marvintmFixed in Version => RR18Q2

Notes
(0103401)
hgbot   
2018-03-22 06:41   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: c80e5a5f545002e60a65ee7ae9e38064fbf3c786
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 22 11:11:21 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c80e5a5f545002e60a65ee7ae9e38064fbf3c786 [^]

Fixed issue 38151 : Payment schedule should not be updated with invoice if amount is zero

* Invoice Payment Plan should not be associated to Order Payments if invoice amount is zero

---
M src/org/openbravo/retail/posterminal/OrderGroupingProcessor.java
---
(0103402)
hgbot   
2018-03-22 06:41   
Repository: tools/automation/pi-mobile
Changeset: 2a31043797ca79e40a9e9f8ac17f9f03562e93c4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Thu Mar 22 11:11:27 2018 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/2a31043797ca79e40a9e9f8ac17f9f03562e93c4 [^]

Verifies issue 38151 : Added automated test 'I38151_VerifyPaymentWithInvoiceAmount'

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I38151_VerifyPaymentWithInvoiceAmount.java
---