Openbravo Issue Tracking System - POS2
View Issue Details
0047627POS2POSpublic2021-09-03 08:402021-09-15 18:40
vmromanos 
AtulOpenbravo 
normalmajoralways
closedfixed 
5
 
TAPTAP 
guilleaer
No
0047627: [TAP only] Credit note with no expiration date can't be consumed
I create a credit note from an overpayment.
In my configuration [Organization -> Credit Note expiration days] I don't have expiration days [=0].

When I try to pay a ticket consuming the credit note, the credit note component shows Expiration Date = 01-01-1970 and the APPLY button is disabled.

This only happens in the TAP.
Follow this guide to configure the gift card feature
https://docs.google.com/document/d/1fl1MLX7UVexVNazL_B6sCju2a93bOBXkeR9ZvNI8ifY [^]

Do not execute the Credit Note Expiry section, or in other words, in Organization -> Credit Note expiration days set it to 0.

Create a gift card by an overpayment.
Check in the backoffice the gift card instance's expiration day is empty [OK].

Create another ticket in the POS and try to pay using this credit note.
Load the credit note information and check it shows Expiration Date = 01-01-1970 and the APPLY button is disabled. [WRONG, it should show this field empty and the APPLY button should be enabled]
No tags attached.
related to defect 0047226 closed AtulOpenbravo Credit notes generated when "Credit note expiration days" is set to 0 cannot be used 
Issue History
2021-09-03 08:40vmromanosNew Issue
2021-09-03 08:40vmromanosAssigned To => Retail
2021-09-03 08:40vmromanosTriggers an Emergency Pack => No
2021-09-03 15:20dmiguelezStatusnew => scheduled
2021-09-03 15:20dmiguelezAssigned ToRetail => AtulOpenbravo
2021-09-03 15:20dmiguelezRegression date => 2021-09-17
2021-09-03 15:23dmiguelezRegression date2021-09-17 =>
2021-09-06 11:39AtulOpenbravoRelationship addedrelated to 0047226
2021-09-07 18:39AtulOpenbravoNote Added: 0131627
2021-09-15 12:13AtulOpenbravoNote Added: 0131812
2021-09-15 18:40guilleaerStatusscheduled => resolved
2021-09-15 18:40guilleaerFixed in Version => TAP
2021-09-15 18:40guilleaerResolutionopen => fixed
2021-09-15 18:40guilleaerReview Assigned To => guilleaer
2021-09-15 18:40guilleaerStatusresolved => closed

Notes
(0131627)
AtulOpenbravo   
2021-09-07 18:39   
Test Plan

-Configure "Credit notes expiration days" to 0 in Organization window.
- Log in the WebPOS.
- Generate a credit note, by either configuring the "Return overpayment as credit note" flag in a payment method, and then generating overpayment.
- Create a Ticket. Select to pay it with credit note. Input the document number of the credit note in the selector.
- Realise that the credit note is correctly opened, the "Apply" button is enabled.
- Realise that the expiration date is set as blank.
- Click on Close button.
- Realize that Gift Card Dialog gets closed.
(0131812)
AtulOpenbravo   
2021-09-15 12:13   
Merge Request created: https://gitlab.com/obcustomers/AGAP/org.openbravo.retail.giftcards/-/merge_requests/9 [^]