Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042753Retail ModulesWeb POSpublic2020-01-09 09:182020-01-24 14:58
psarobe 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
 
RR20Q2 
marvintm
No
0042753: Preypayment calculation limit is not taking into account discounts
It is mandatory to configure the instance or enable prepayments first.
The ticket must have a discount.
1. Configure/enable prepayments:
  - Not allow to pay under limit prepayment (There is a preference)
2. Create a ticket with one line
3. The line must have a discount. Test it with a manual discount and also with automatic discount.
4. Click "Check out"
5. The limit is well calculated.
6. Pay everything. And Click Done
7. The system does not allowed to continue because there is an under payment.

Expected result: You should be able to close the ticket
Current result: Since it is not taking into account the discounts, imagine the ticket without the discount is 1000, and with discounts is 800. So you pay 800 and is telling you that you cannot pay under 1000.
No tags attached.
png issue_discounts.PNG (136,195) 2020-01-09 10:56
https://issues.openbravo.com/file_download.php?file_id=13781&type=bug
png

patch issue 42753 source posterminal.patch (1,807) 2020-01-09 11:39
https://issues.openbravo.com/file_download.php?file_id=13784&type=bug
Issue History
2020-01-09 09:18psarobeNew Issue
2020-01-09 09:18psarobeAssigned To => Retail
2020-01-09 09:18psarobeResolution time => 1579820400
2020-01-09 09:18psarobeTriggers an Emergency Pack => No
2020-01-09 09:54ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2020-01-09 10:56psarobeFile Added: issue_discounts.PNG
2020-01-09 10:56psarobeNote Added: 0116726
2020-01-09 11:10martinsdanIssue Monitored: martinsdan
2020-01-09 11:39ranjith_qualiantech_comFile Added: issue 42753 source posterminal.patch
2020-01-13 07:07ranjith_qualiantech_comStatusnew => scheduled
2020-01-13 07:10hgbotCheckin
2020-01-13 07:10hgbotNote Added: 0116780
2020-01-13 07:10hgbotStatusscheduled => resolved
2020-01-13 07:10hgbotResolutionopen => fixed
2020-01-13 07:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b99a8244af2a59e04be3b615c924c31adb40b3a0 [^]
2020-01-24 14:58marvintmReview Assigned To => marvintm
2020-01-24 14:58marvintmStatusresolved => closed
2020-01-24 14:58marvintmFixed in Version => RR20Q2

Notes
(0116726)
psarobe   
2020-01-09 10:56   
I have configured https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=OMNI-1#retail.pointofsale [^]

Now can be reproduce. See the attachment
(0116780)
hgbot   
2020-01-13 07:10   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b99a8244af2a59e04be3b615c924c31adb40b3a0
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Jan 13 11:40:21 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b99a8244af2a59e04be3b615c924c31adb40b3a0 [^]

Fixed issue 42753 : Receipt Prepayment amount should exclude line discount amount

---
M web/org.openbravo.retail.posterminal/js/model/prepaymentrules.js
---