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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0041960
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2019-10-09 12:052019-10-23 12:29
Reportersamuel_nicuesaView Statuspublic 
Assigned Torqueralta 
PriorityhighResolutionfixedFixed in VersionRR20Q1
StatusclosedFix in branchFixed in SCM revision64e9b6d49bfa
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0041960: Delete discount button is not working if the discount is over 1000

DescriptionDelete discount button is not working if the discount is over 1000.
Steps To Reproduce[POS]
Add a product to the ticket
Change the price to 90000because the discount will be > 1000.
Add the discount 29000
Select the product line and try to delete the discount
You will see the following error (see the attached image)

Proposed SolutionApply the parseFloat to this line:

line.$.price.content
"-29,000.00"
line.$.price.content = parseFloat(line.$.price.content);
-29
See the attached image
TagsNo tags attached.
Attached Filespng file icon DeleteDiscount.png [^] (244,465 bytes) 2019-10-09 12:05


png file icon Solution.png [^] (91,820 bytes) 2019-10-09 12:06

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0115173)
hgbot (developer)
2019-10-21 04:53

Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 64e9b6d49bfa679374b45c61149f475108ee8966
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Fri Oct 11 18:31:17 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/64e9b6d49bfa679374b45c61149f475108ee8966 [^]

Fixed issue 41960: Delete discount button is not working if the discount is over
1000

- Applied parseFloat to price value to avoid a javascript error when this value is
converted to number

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/modals/modalDeleteDiscounts.js
---

- Issue History
Date Modified Username Field Change
2019-10-09 12:05 samuel_nicuesa New Issue
2019-10-09 12:05 samuel_nicuesa Assigned To => Retail
2019-10-09 12:05 samuel_nicuesa File Added: DeleteDiscount.png
2019-10-09 12:05 samuel_nicuesa Resolution time => 1572390000
2019-10-09 12:05 samuel_nicuesa Triggers an Emergency Pack => No
2019-10-09 12:06 samuel_nicuesa File Added: Solution.png
2019-10-09 17:17 rqueralta Assigned To Retail => rqueralta
2019-10-09 17:18 rqueralta Status new => scheduled
2019-10-21 04:53 hgbot Checkin
2019-10-21 04:53 hgbot Note Added: 0115173
2019-10-21 04:53 hgbot Status scheduled => resolved
2019-10-21 04:53 hgbot Resolution open => fixed
2019-10-21 04:53 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/64e9b6d49bfa679374b45c61149f475108ee8966 [^]
2019-10-23 12:29 marvintm Review Assigned To => marvintm
2019-10-23 12:29 marvintm Status resolved => closed
2019-10-23 12:29 marvintm Fixed in Version => RR20Q1


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker