Openbravo Issue Tracking System - POS2
View Issue Details
0046683POS2POSpublic2021-05-14 14:122021-11-05 08:19
psanjuan 
Gremiger 
highminoralways
closedfixed 
30Openbravo Appliance 14.04
 
 
No
0046683: It should not be possible to return a sale in cash if there is no cash available
It should not be possible to return a sale in cash if there is no cash available
Close the till and do not keep any money in the till.
Create a sale and click on Return Order.
Select any product and pay in cash.

Verify that the amount shown is positive and it allows to finish the payment. That is not correct.

Close the till. Verify that there is no money to count and the close report shows a total retail transctions = -6, and expected amount = -6. Rest of amounts are cero.

If we repeat the same again, the balance of the expect amount is not accumulated but starts from cero.
In any case, a message should be shown to the seller saying that there is no cash to refund to the customer.(see old POS image)
No tags attached.
Issue History
2021-05-14 14:12psanjuanNew Issue
2021-05-14 14:12psanjuanAssigned To => Retail
2021-05-14 14:12psanjuanTriggers an Emergency Pack => No
2021-05-14 14:15psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22532#r22532
2021-05-14 14:16psanjuanSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=22533#r22533
2021-05-14 14:16psanjuanProposed Solution updated
2021-05-17 12:08guilleaerResolution time => 1622412000
2021-05-17 12:08guilleaerPriorityurgent => high
2021-05-17 12:08guilleaerStatusnew => acknowledged
2021-05-27 08:00prakashmurugesan88Assigned ToRetail => prakashmurugesan88
2021-05-27 08:01prakashmurugesan88Statusacknowledged => scheduled
2021-05-31 16:30adrianromeroResolution time1622412000 =>
2021-05-31 16:30adrianromeroNote Added: 0128819
2021-05-31 16:30adrianromeroAssigned Toprakashmurugesan88 => Retail
2021-05-31 16:30adrianromeroTypedefect => feature request
2021-05-31 16:30adrianromeroStatusscheduled => closed
2021-05-31 16:31adrianromeroStatusclosed => new
2021-05-31 18:05dmiguelezStatusnew => acknowledged
2021-05-31 18:05dmiguelezResolution time => 1626991200
2021-05-31 18:05dmiguelezSeveritymajor => minor
2021-05-31 18:05dmiguelezTypefeature request => defect
2021-07-14 16:01dmiguelezResolution time1626991200 => 1638313200
2021-07-14 16:01dmiguelezTypedefect => feature request
2021-09-22 04:13GremigerAssigned ToRetail => Gremiger
2021-09-22 04:14GremigerStatusacknowledged => scheduled
2021-10-04 21:13hgbotNote Added: 0132155
2021-11-04 18:23hgbotResolutionopen => fixed
2021-11-04 18:23hgbotStatusscheduled => closed
2021-11-04 18:23hgbotNote Added: 0132859
2021-11-04 18:23hgbotNote Added: 0132860
2021-11-04 18:23hgbotNote Added: 0132861
2021-11-05 08:19hgbotNote Added: 0132864

Notes
(0128819)
adrianromero   
2021-05-31 16:30   
This is actually a functionality not present in POS2 an will be managed as a POS2 feature request.
(0132155)
hgbot   
2021-10-04 21:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/693 [^]
(0132859)
hgbot   
2021-11-04 18:23   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 3111918080963ddc79052c85cc72e20c9857ca48
Author: Santiago Gremiger <santiago.gremiger@smfconsulting.es>
Date: 2021-11-04T16:48:42+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/3111918080963ddc79052c85cc72e20c9857ca48 [^]

Fixed ISSUE-46683: Not able to refund if there is no cash available in drawer.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/processPayment.js
---
(0132860)
hgbot   
2021-11-04 18:23   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 939605e59dd8a5c20a7709323c8227def214d8e9
Author: Santiago Gremiger <santiago.gremiger@smfconsulting.es>
Date: 2021-11-04T16:48:42+00:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/939605e59dd8a5c20a7709323c8227def214d8e9 [^]

ISSUE-46683: Modifying the payment array from the Terminal to be able to use the function 'getPaymentMethodCurrentCash'

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/processPayment.js
---
(0132861)
hgbot   
2021-11-04 18:23   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/693 [^]
(0132864)
hgbot   
2021-11-05 08:19   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 0efb75bb6cbe7bad769b9887685cc1d404c75bc7
Author: Antonio Moreno <antonio.moreno@openbravo.com>
Date: 2021-11-05T08:19:27+01:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/0efb75bb6cbe7bad769b9887685cc1d404c75bc7 [^]

Related to ISSUE-46683: Adapted jest test so that it doesn't fail

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentIntegration/__test__/processPayment.test.js
---