Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0045377
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2020-11-04 17:332020-11-20 08:40
ReportermartinsdanView Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionunable to reproduceFixed in VersionRR20Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava version11
OS VersionUbuntu 18.04.1 LTSDatabase version10.10Ant version1.10.5
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0045377: Rounding payment should not be added if the payment is not added

DescriptionIf the rounding feature is configured for a payment and the payment is canceled when inserting, the rounding payment is still added.
If an OBPOS_preAddPayment adds the flag cancellation to true, the original payment is not added but the rounding payment is.
Steps To Reproduce- Create an OBPOS_preAddPayment hook that adds "args.cancellation = false" if a payment is bigger than 100.
- Add a rounding to the payment method cash
  - Go to Terminal Type | Payment Method
  - Create a new payment method marked as rounding
  - Go to the payment method cash and add a new entry in the subtab Payment Rounding
  - Activate it for sales, Rounding down and "Rounding Multiple in Sales" = 0.05
- Login to the touchpoint
- Add a product that costs 101.23
- Pay it in cash

See that the only payment added is the rounding payment with an amount of 0.03
Proposed SolutionIf the flag canceled is true after running all the hooks, the respective rounding payment should be reverted.
TagsNo tags attached.
Attached Filesdiff file icon 45377_posterminal_20Q2.diff [^] (1,143 bytes) 2020-11-20 07:57 [Show Content]
diff file icon 45377_posterminal_20Q3.diff [^] (1,144 bytes) 2020-11-20 08:39 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0045469RR20Q3.2 closedranjith_qualiantech_com Rounding payment should not be added if the payment is not added 

-  Notes
(0124475)
martinsdan (developer)
2020-11-18 11:45

This is reproducible in 20Q2.
https://livebuilds.openbravo.com/retail_mp_3.0RR20Q2.2/web/org.openbravo.retail.posterminal/?terminal=VBS1001#retail.pointofsale [^]
(0124518)
marvintm (manager)
2020-11-20 08:40

The issue is no longer reproducible in 20Q4 or pi. We have created the backport for 20Q3.2, and we have also attached a patch that should be possible to use in 20Q2 and hopefully earlier versions.

- Issue History
Date Modified Username Field Change
2020-11-04 17:33 martinsdan New Issue
2020-11-04 17:33 martinsdan Assigned To => Retail
2020-11-04 17:33 martinsdan Resolution time => 1605657600
2020-11-04 17:33 martinsdan Triggers an Emergency Pack => No
2020-11-12 09:38 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-11-16 09:13 ranjith_qualiantech_com Status new => scheduled
2020-11-18 11:45 martinsdan Note Added: 0124475
2020-11-19 13:09 ranjith_qualiantech_com File Added: 45377.diff
2020-11-20 07:57 ranjith_qualiantech_com File Deleted: 45377.diff
2020-11-20 07:57 ranjith_qualiantech_com File Added: 45377_posterminal_20Q2.diff
2020-11-20 08:38 marvintm Status scheduled => acknowledged
2020-11-20 08:38 marvintm Status acknowledged => scheduled
2020-11-20 08:39 ranjith_qualiantech_com File Added: 45377_posterminal_20Q3.diff
2020-11-20 08:40 marvintm Review Assigned To => marvintm
2020-11-20 08:40 marvintm Note Added: 0124518
2020-11-20 08:40 marvintm Status scheduled => closed
2020-11-20 08:40 marvintm Resolution open => unable to reproduce
2020-11-20 08:40 marvintm Fixed in Version => RR20Q4


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker