Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027006Retail ModulesDiscounts and Promotionspublic2014-07-03 11:542014-07-24 23:43
sureshbabu 
szapata 
urgentmajoralways
closedfixed 
5
 
 
Orekaria
QA functional test
No
0027006: [Live] Uncaught big decimal error appears when Discount type Buy X pay Y of different product and discount subtype Apply Averag
Uncaught big decimal error appears when the user try to apply Discount type "Buy X pay Y of different product" and discount subtype "Apply Average"
Verify Discount “Discount 3X2 of diff product (Re-Factor V)” of type “Buy X pay Y of different product” available in the Discounts and promotions window if not create a new record using the below steps:

Log in ERP as Group -Admin-The White Valley Group

Go to Discounts and Promotions window

Check for records of type “Buy X pay Y “and there are any records then Inactivate all those records

Create new record

In Header tab

    Organization: The White Valley Group
    Discount type: Buy X pay Y of different product
    Name: Discount 3x2 of diff product (Re-Factor V)
    Starting date: 01-01-2012
    Priority: 50
    Apply Next Discount/Promotion: unchecked
    Included Products: Only those defined
    X: 3
    Y: 2
    Discount Subtype: Apply Average Price

In Products tab

    Product: Basecamp lantern
    Product: Basecamp lantern with legs

Product configuration:

Log in ERP as Group -Admin-The White Valley Group

Go to product window

Then select product “Basecamp lantern”

Then change the field “Grouped” to

    Grouped product: Unchecked

Then click Ctrl + s to save the changes

Then again select product “Basecamp lantern with legs”

Then change the field “Grouped” to

    Grouped product: Unchecked

Then click Ctrl + s to save the changes

*****

Log in WEB POS (online)

Create a receipt with below details

     Product: Basecamp lantern
    Qty: 1

Verify the price details in the web pos

Line 1:

    Product: Basecamp lantern
    Qty: 1
    Unit Price: 55.50
    Total Line Amount: 55.50
    Total Gross amount: 55.50

Tax Breakdown:

    Tax: Entregas IVA 21%
    Taxable Amount: 45.87
    Tax amount: 9.63

Total Gross Amount:

    Total Gross Amount: 55.50

Again search the product “Basecamp lantern” and add one more quantity

Line 1:

    Product: Basecamp lantern
    Qty: 1
    Unit Price: 55.50
    Total Line Amount: 55.50

Line 2:

    Product: Basecamp lantern
    Qty: 1
    Unit Price: 55.50
    Total Line Amount: 55.50

Tax Breakdown:

    Tax: Entregas IVA 21%
    Taxable Amount: 91.74
    Tax amount: 19.26

Total Gross Amount:

    Total Gross amount: 111.00

Again search the product “Basecamp lantern with legs” and add one more quantity


Defect: uncaught big decimal error appears
No tags attached.
png Uncaught BigDecimal error appears.png (188,782) 2014-07-03 11:54
https://issues.openbravo.com/file_download.php?file_id=7042&type=bug
png
Issue History
2014-07-03 11:54sureshbabuNew Issue
2014-07-03 11:54sureshbabuAssigned To => marvintm
2014-07-03 11:54sureshbabuFile Added: Uncaught BigDecimal error appears.png
2014-07-03 11:54sureshbabuRegression level => QA functional test
2014-07-03 11:54sureshbabuTriggers an Emergency Pack => No
2014-07-07 00:38szapataNote Added: 0068545
2014-07-17 23:20hgbotCheckin
2014-07-17 23:20hgbotNote Added: 0068716
2014-07-17 23:20hgbotStatusnew => resolved
2014-07-17 23:20hgbotResolutionopen => fixed
2014-07-17 23:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4a0e2d14692f91c2d4082b42e984b6dea57c922b [^]
2014-07-17 23:40szapataAssigned Tomarvintm => szapata
2014-07-17 23:40szapataNote Added: 0068718
2014-07-17 23:40szapataStatusresolved => new
2014-07-17 23:40szapataResolutionfixed => open
2014-07-24 23:41szapataStatusnew => scheduled
2014-07-24 23:41szapatafix_in_branch => pi
2014-07-24 23:43szapataReview Assigned To => Orekaria
2014-07-24 23:43szapataNote Added: 0068880
2014-07-24 23:43szapataStatusscheduled => closed
2014-07-24 23:43szapataResolutionopen => fixed

Notes
(0068545)
szapata   
2014-07-07 00:38   
Can't reproduce in my last update of pi. I'll keep trying.
(0068716)
hgbot   
2014-07-17 23:20   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4a0e2d14692f91c2d4082b42e984b6dea57c922b
Author: Salvador Zapata <salvador.zapata <at> gmail.com>
Date: Thu Jul 17 18:18:50 2014 -0300
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4a0e2d14692f91c2d4082b42e984b6dea57c922b [^]

fixed issue 27006: Offline approval allowed

---
M web/org.openbravo.retail.posterminal/js/model/terminal-model.js
---
(0068718)
szapata   
2014-07-17 23:40   
Commit not related to this issue.
Wrong commit message. sorry.
(0068880)
szapata   
2014-07-24 23:43   
Not reproducible anymore because seems to be fixed by this changeset
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ccff7d14525c23df107ff43132688069fbc98ddf [^]