Openbravo Issue Tracking System - Openbravo Localizations
View Issue Details
0050286Openbravo LocalizationsOtherspublic2022-09-19 18:342023-03-01 13:15
rtoledano 
adrianromero 
highmajorhave not tried
closedfixed 
5
 
 
0050286: [Belgium Localization] EWI saving Order property Order.bgmtsLinesAmount
Using the module in Norauto Project an EWI was thrown with the following error:

org.openbravo.base.exception.OBException: Error in OrderLoader: Order.bgmtsLinesAmount: Value too long. Length 18, maximum allowed 8 [24.810000000000002]
- Configure MTS on a store
- Log in POS and do a sales with discounts applied
- Pay with cash and complete the sale


The root of this error is because the value for order property bgmtsLinesAmount is not properly scaled up

https://gitlab.com/obcustomers/NOR/org.openbravo.localization.belgium.securityamount/-/blob/7f88cf51604d331a06189f79eb436d638d4c9500/web/org.openbravo.localization.belgium.securityamount/js/hooks/CalculateMTSHook.js#L18 [^]
No tags attached.
Issue History
2022-09-19 18:34rtoledanoNew Issue
2022-09-19 18:34rtoledanoAssigned To => rtoledano
2022-09-19 18:56rtoledanoNote Added: 0141231
2022-09-23 17:49rtoledanoAssigned Tortoledano => adrianromero
2022-09-26 11:46adrianromeroStatusnew => closed
2022-09-26 11:46adrianromeroResolutionopen => fixed
2023-01-23 13:43hgbotStatusclosed => resolved
2023-01-23 13:43hgbotNote Added: 0145758
2023-03-01 13:15aferrazNote Added: 0147167
2023-03-01 13:15aferrazStatusresolved => closed

Notes
(0141231)
rtoledano   
2022-09-19 18:56   
https://gitlab.com/obcustomers/NOR/org.openbravo.localization.belgium.securityamount/-/merge_requests/9 [^]
(0145758)
hgbot   
2023-01-23 13:43   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.belgium.securityamount [^]
Changeset: 68723499c4c5ed592d3709c74b919d07be860f74
Author: Roberto Carlos Toledano Gómez <rctg82@gmail.com>
Date: 19-09-2022 12:40:49
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.localization.belgium.securityamount/-/commit/68723499c4c5ed592d3709c74b919d07be860f74 [^]

Fixed ISSUE-50286: Properly round up of the order properties bgmtsTotalAmount and bgmtsLinesAmount

---
---
(0147167)
aferraz   
2023-03-01 13:15   
Fixed in 0050556