Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040156 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Discount Matrix Management | major | always | 2019-01-23 11:57 | 2019-02-18 09:41 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | f870b242f228 | ||||
Projection | none | ETA | none | Target Version | RR18Q3.5 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | jorge-garcia | |||||||
OBNetwork customer | Gold | |||||||
Support ticket | 7653 | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2018-02-05 | |||||||
Regression introduced in release | RR18Q2 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/e8a94369c01f [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0040156: Receipt with discounts can not be completed | |||||||
Description | with the module Discount Matrix Management, if one line is added with a discretionary discount, it is not possible to complete the receipt. When click in total button is done, error is returned: Uncaught dodivide(): Divide by 0 | |||||||
Steps To Reproduce | POS: . new receipt: . add Avalanche Transceiver . click discount button: add disc_fixed_5_euro . click in total button in cosole, error is returned: Uncaught dodivide(): Divide by 0 | |||||||
Proposed Solution | Attached a possible fix | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0109728) hgbot (developer) 2019-02-12 15:02 |
Repository: retail/backports/3.0RR18Q3.5/org.openbravo.retail.discounts Changeset: aca94fada24d004bffb46cfd24411a45b47f207e Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Tue Feb 12 19:31:04 2019 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR18Q3.5/org.openbravo.retail.discounts/rev/aca94fada24d004bffb46cfd24411a45b47f207e [^] Related to issue 40156 : New attribute lineQtyOffer is added to promotion * For MultiDiscount support, qtyOffer has been set as 0. But qtyOffer has been used in few modules to calculate custom discount. So new attribute "lineQtyOffer" is added to promotion which holds the value of line qty --- M web/org.openbravo.retail.discounts/js/promotion-manual.js --- |
(0109732) hgbot (developer) 2019-02-12 15:03 |
Repository: retail/backports/3.0RR18Q3.5/org.openbravo.retail.posterminal Changeset: f870b242f2280db4aa0d7a3a8e9832afb39d3c4b Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Tue Feb 12 19:31:01 2019 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR18Q3.5/org.openbravo.retail.posterminal/rev/f870b242f2280db4aa0d7a3a8e9832afb39d3c4b [^] Fixed issue 40156 : New attribute lineQtyOffer is added to promotion * For MultiDiscount support, qtyOffer has been set as 0. But qtyOffer has been used in few modules to calculate custom discount. So new attribute "lineQtyOffer" is added to promotion which holds the value of line qty When spliting the line, lineQtyOffer is updated based on obdiscQtyoffer --- M web/org.openbravo.retail.posterminal/js/model/order.js --- |
(0109896) jorge-garcia (viewer) 2019-02-18 09:41 |
Code reviewed and tested |
![]() |
|||
Date Modified | Username | Field | Change |
2019-02-06 09:55 | jorge-garcia | Type | defect => backport |
2019-02-06 09:55 | jorge-garcia | Target Version | => RR18Q3.5 |
2019-02-06 10:02 | jorge-garcia | Regression date | => 2018-02-05 |
2019-02-06 10:02 | jorge-garcia | Regression introduced in release | => RR18Q2 |
2019-02-06 10:02 | jorge-garcia | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/e8a94369c01f [^] |
2019-02-12 15:02 | hgbot | Checkin | |
2019-02-12 15:02 | hgbot | Note Added: 0109728 | |
2019-02-12 15:03 | hgbot | Checkin | |
2019-02-12 15:03 | hgbot | Note Added: 0109732 | |
2019-02-12 15:03 | hgbot | Status | scheduled => resolved |
2019-02-12 15:03 | hgbot | Resolution | open => fixed |
2019-02-12 15:03 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/80f1109499f38e1f7d8a6123aead1ef6b126480c [^] => http://code.openbravo.com/retail/backports/3.0RR18Q3.5/org.openbravo.retail.posterminal/rev/f870b242f2280db4aa0d7a3a8e9832afb39d3c4b [^] |
2019-02-18 09:41 | jorge-garcia | Note Added: 0109896 | |
2019-02-18 09:41 | jorge-garcia | Status | resolved => closed |
Copyright © 2000 - 2009 MantisBT Group |