Openbravo Issue Tracking System - POS2
View Issue Details
0048438POS2POSpublic2022-01-13 19:102022-01-21 09:43
timothee_catteeuw 
cberner 
normalmajorhave not tried
closedfixed 
5
 
TAPTAP 
guilleaer
No
0048438: JIRA 2600 - It's possible to pay twice a ticket and remove discounts from it
In TAP version it is possible to pay a ticket twice and remove discount from it.
It is just enough to open it and pay it again, cf use case below done on livebuild.

Go to https://livebuilds.openbravo.com/retail_pos2_tap_pgsql/web/pos/?terminal=VBS-2 [^]

Go to WebPos as Vallblanca
Add Hiking boots and Balaclava Cap
Click on Hiking boots and then press discount
select disc_5_ var_perc discount and press apply
pay the transaction by cash

Go to Backoffice as Vallblanca user and open sales order window in order to open the previous sale
Go to payment plan tab and check outstanding which is equal to 0.00
And go to Payment details, as you can see one payment was done

Go back to WebPOS and open the transaction you have previously done
Amount of the transaction is 329.55 € and the discount is still present
But it is possible to pay --> it shouldn't be possible to pay again this ticket
And when you pay, the discount disappears and you can add another payment in cash (8.45 €) to the ticket
And then press "done"

Go to Backoffice as Vallblanca user and open sales order window in order to open the previous sale
Go to payment plan tab and check outstanding which is equal to -8.45
In payment details there is 2 payment lines instead of initially one
--> KO it is not normal to change a transaction like that after paying it during the first ticket
Deactivate the pay button when the ticket is completely paid and you open it
Or completely keep the same ticket (when included discount for example ) after switching to payment mode and don't save a new payment again (just print a duplicata, the ticket has not to be changed)
No tags attached.
related to defect 0046701 closed Retail JIRA-1754: No info shown if a order is already paid, if opened. 
blocks defect 0048400 closed cberner JIRA 2600 - It's possible to pay twice a ticket and remove discounts from it 
Issue History
2022-01-19 16:47guilleaerTypedefect => backport
2022-01-21 09:07cbernerNote Added: 0134458
2022-01-21 09:07cbernerNote Edited: 0134458bug_revision_view_page.php?bugnote_id=0134458#r23561
2022-01-21 09:08cbernerStatusscheduled => resolved
2022-01-21 09:08cbernerFixed in Version => TAP
2022-01-21 09:08cbernerResolutionopen => fixed
2022-01-21 09:08cbernerReview Assigned To => guilleaer
2022-01-21 09:08cbernerStatusresolved => closed
2022-01-21 09:43cbernerRelationship addedrelated to 0046701

Notes
(0134458)
cberner   
2022-01-21 09:07   
MR created and merged for this issue: https://gitlab.com/obcustomers/AGAP/org.openbravo.pos2/-/merge_requests/145 [^]