Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037570Retail ModulesWeb POSpublic2017-12-29 14:532018-01-03 10:32
guilleaer 
ranjith_qualiantech_com 
normalminorhave not tried
closedfixed 
5
 
RR17Q4.1RR17Q4.1 
guilleaer
https://code.openbravo.com/retail/backports/3.0RR17Q4/org.openbravo.retail.posterminal/rev/73da959ee44d [^]
No
0037570: Tests LayawayProductsNotInAssortment and QuotationProductsNotInAssortment are failing in Q4 after fix for issue 37558
Below test are failing:

LayawayProductsNotInAssortment
QuotationProductsNotInAssortment

They are failling because of this line

    adjustPrices: function () {
      // Apply calculated discounts and promotions to price and gross prices
      // so ERP saves them in the proper place
      this.get('lines').each(function (line) {
        var price = line.get('price'),
            gross = line.get('gross'),
            totalDiscount = 0,
            grossListPrice = line.get('priceList'),
            grossUnitPrice, discountPercentage, base;

        // Calculate inline discount: discount applied before promotions
        if ((line.get('product').get('standardPrice') && line.get('product').get('standardPrice') !== price) || (_.isNumber(line.get('discountedLinePrice')) && line.get('discountedLinePrice') !== line.get('product').get('standardPrice'))) {
          grossUnitPrice = new BigDecimal(price.toString());
---->>>>> if (OB.DEC.compare(grossListPrice) === 0)


at this point grossListPrice is undefined
execute test in 17Q4 release.

They can be also reproducible manually executing the same steps done by mentioned tests.
No tags attached.
depends on backport 0037572RR17Q4.1 closed ranjith_qualiantech_com Under certain circumstances when creating a sales order from a quotation wrong data is generated in the backend 
Issue History
2017-12-29 14:53guilleaerNew Issue
2017-12-29 14:53guilleaerAssigned To => ranjith_qualiantech_com
2017-12-29 14:53guilleaerRegression introduced by commit => https://code.openbravo.com/retail/backports/3.0RR17Q4/org.openbravo.retail.posterminal/rev/73da959ee44d [^]
2017-12-29 14:53guilleaerTriggers an Emergency Pack => No
2018-01-03 10:30guilleaerRelationship addeddepends on 0037572
2018-01-03 10:31guilleaerStatusnew => scheduled
2018-01-03 10:32guilleaerNote Added: 0101303
2018-01-03 10:32guilleaerStatusscheduled => resolved
2018-01-03 10:32guilleaerFixed in Version => RR17Q4.1
2018-01-03 10:32guilleaerResolutionopen => fixed
2018-01-03 10:32guilleaerReview Assigned To => guilleaer
2018-01-03 10:32guilleaerStatusresolved => closed

Notes
(0101303)
guilleaer   
2018-01-03 10:32   
No chnage required. This issue depends on a fix not included in 17Q4, so a backport for that issue was created

https://issues.openbravo.com/view.php?id=37572 [^]