Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037541Retail ModulesWeb POSpublic2017-12-21 15:252018-01-09 13:46
mrecasens 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
RR18Q1 
marvintm
OBPS
No
0037541: [SER-QA] The Credit Note printed is not the one actually redeemed, when paying with someone else's Credit Note
The Credit Note printed is not the one used when redeeming using some other customer's Credit Note

SHORT VERSION

1. Cancel a partially paid Layaway, and reimburse with Credit Note for a customer A.
2. Cancel a partially paid Layaway, and reimburse with Credit Note for a customer B with different amount.
3. Pay a ticket for the customer A using partially the Credit Note of customer B.

ERROR: Check that in the printed ticket the total amount corresponds to the Credit Note of the customer A, instead of corresponfing to the Credit Note of B actually used.
0. Log into backoffice https://livebuilds.openbravo.com/retail_modules_pgsql_pi/ [^]

    Change role to "The White Valley Group Admin"
    
    Go to "Hardware Manager" window, and create a new record for
        *
        HW Manager main
        http://127.0.0.1 [^]
    
    Go to "POS Terminal Type", and in Tab "Hardware URL", select 'HW Manager main'

    Go to "Open Store" window to open up "Yosemite Store" for the current date
    
1. Log in WebPOS livebuilds
https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=YS-11#retail.pointofsale [^]
    Using 1234 as terminal key identifier, and credentials vallblanca / openbravo
    
2. Select a Customer different from the anonymous, e.g. Mara Paillot
3. Create a Layaway and pay for it partially, e.g. with Cash
=> YS-11/0000001

4. Select a Customer different from the anonymous, e.g. Carl Studston
5. Create a Layaway and pay for it partially, e.g. with Cash
=> YS-11/0000004

6. From menu, select option Open Receipt and select the first of the two, e.g., YS-11/0000001
7. Click on "Cancel this Layaway" and refund with Solde Client
=> See that cancellation document YS-11/0000001*R has been created
=> as well as a credit note for 10 EUR

8. From menu, select option Open Receipt and select the second of the two, e.g., YS-11/0000004
9. Click on "Cancel this Layaway" and refund with Solde Client
=> See that cancellation document YS-11/0000004*R has been created
=> as well as a credit note for 100 EUR, YS-11/0000004

10. Create a new ticket for Mara Paillot
=> YS-11/0000005
11. Add some products and pay with Solde Client of Carl Studston, 100 € credit, YS-11/0000004
=> See that the credit note printed is not the one you just used, but the one belonging to Mara Paillot, that it mentions Mara Maillot and shows the other credit note balance and code.

12. Open menu option "Gift / Credit notes" to check Credit Note YS-0000004 balance
=> See that the remaining credit does correspond with the initial - consumed.
=> Also check that the credit note YS-0000004 balance, not used but nonetheless printed, is correct: 10
No tags attached.
related to defect 0053142 closed ranjith_qualiantech_com Error with Credit note after adding the changes from issue 49409 
Issue History
2017-12-21 15:25mrecasensNew Issue
2017-12-21 15:25mrecasensAssigned To => Retail
2017-12-21 15:25mrecasensOBNetwork customer => No
2017-12-21 15:25mrecasensTriggers an Emergency Pack => No
2017-12-21 15:51avicenteOBNetwork customerNo => Yes
2017-12-21 15:51avicenteResolution time => 1515020400
2017-12-28 12:07ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-01-05 06:37hgbotCheckin
2018-01-05 06:37hgbotNote Added: 0101577
2018-01-05 06:37ranjith_qualiantech_comStatusnew => scheduled
2018-01-05 08:50hgbotCheckin
2018-01-05 08:50hgbotNote Added: 0101579
2018-01-07 18:30hgbotCheckin
2018-01-07 18:30hgbotNote Added: 0101605
2018-01-08 11:01ranjith_qualiantech_comStatusscheduled => resolved
2018-01-08 11:01ranjith_qualiantech_comResolutionopen => fixed
2018-01-09 13:46marvintmReview Assigned To => marvintm
2018-01-09 13:46marvintmStatusresolved => closed
2018-01-09 13:46marvintmFixed in Version => RR18Q1
2023-08-30 01:42rafarodaRelationship addedrelated to 0053142

Notes
(0101577)
hgbot   
2018-01-05 06:37   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: f16692f5f415c629d8732a7b71a88bb7670b022a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jan 05 11:07:34 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/f16692f5f415c629d8732a7b71a88bb7670b022a [^]

Related to issue 37541 : Show Credit balance based on credit owner instead of receipt customer

* Credit Print should print both initial balance and current balance

---
M src/org/openbravo/retail/giftcards/FindCreditNote.java
M web/org.openbravo.retail.giftcards/js/components/GiftCardDetails.js
M web/org.openbravo.retail.giftcards/js/hooks/preaddpaymenthook.js
M web/org.openbravo.retail.giftcards/js/hooks/printGiftCardPrePrintHook.js
---
(0101579)
hgbot   
2018-01-05 08:50   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: 9734d9be25e8ee33802106031f40aee1134621a2
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jan 05 13:20:04 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/9734d9be25e8ee33802106031f40aee1134621a2 [^]

Related to issue 37541 : Backed out changeset: f16692f5f415

Try failed due to the changes

---
M src/org/openbravo/retail/giftcards/FindCreditNote.java
M web/org.openbravo.retail.giftcards/js/components/GiftCardDetails.js
M web/org.openbravo.retail.giftcards/js/hooks/preaddpaymenthook.js
M web/org.openbravo.retail.giftcards/js/hooks/printGiftCardPrePrintHook.js
---
(0101605)
hgbot   
2018-01-07 18:30   
Repository: erp/pmods/org.openbravo.retail.giftcards
Changeset: fde03d37a01c5248dd829c9d4917d988b6881ec8
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sun Jan 07 23:00:34 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.giftcards/rev/fde03d37a01c5248dd829c9d4917d988b6881ec8 [^]

Related to issue 37541 : Show Credit balance based on credit owner instead of receipt customer

* Credit Print should print both initial balance and current balance

---
M src/org/openbravo/retail/giftcards/FindCreditNote.java
M web/org.openbravo.retail.giftcards/js/components/GiftCardDetails.js
M web/org.openbravo.retail.giftcards/js/hooks/preaddpaymenthook.js
M web/org.openbravo.retail.giftcards/js/hooks/printGiftCardPrePrintHook.js
M web/org.openbravo.retail.giftcards/js/model/GiftCardUtils.js
M web/org.openbravo.retail.giftcards/res/creditnote.xml
---