Openbravo Issue Tracking System - Retail Modules
View Issue Details
0027079Retail ModulesDiscounts and Promotionspublic2014-07-15 13:122015-05-26 08:08
emartinez 
marvintm 
normalminorsometimes
newopen 
5
 
 
No
0027079: [RR14Q3] Distribute Between line option is not working well in Discounts and Promotions
If i create a 3x2 of different product and check "distribute between line" and "apply to lowest price", in web pos it does not distribute between line (but chooses correctly the product with lowest price). But in backoffice it does distribute, but between all lines.

So if I add 2 products of 65.5 and one of 89.9, in web pos the discount is applied over 65.5 so ticket total in the end is 155.40€

And in backoffice, the discount is applied over the three lines, by an amount of 19.42
1) 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 if there is any then deactivate all those records

2) 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 IV)
Starting date: 01-01-2012
Priority: 40
Apply Next Discount/Promotion: No
Included Products: Only those defined
X: 3
Y: 2
Discount Subtype: Apply to Lowest Price
Distribute between line: Checked

3. In Products tab:

Product: Solar Charger
Product: Solar Charger all terrain
Product configuration:

4. Log in ERP as Group -Admin-The White Valley Group. Go to product window. Then select product “Solar charger”. Then change the field “Grouped” to

Grouped: Unchecked
Then click Ctrl + s to save the changes

5. Then again select product “Solar Charger all terrain”. Then change the field “Grouped” to

Grouped product: Unchecked
Then click Ctrl + s to save the changes

6. Log in WEB POS (online). Create a receipt with below details

 Product: Solar Charger
Qty: 1
Verify the price details in the web pos

Line 1:

Product: Solar charger
Qty: 1
Unit Price: 65.50
Total Line Amount: 65.50
Total Gross amount: 65.50
Tax Breakdown:

Tax: Entregas IVA 21%
Taxable Amount: 54.13
Tax amount: 11.37
Total Gross Amount:

Total Gross Amount: 65.50
 

7. Again search the product “Solar charger” and add one more quantity

Line 1:

Product: Solar charger
Qty: 1
Unit Price: 65.50
Total Line Amount: 65.50

Line 2:

Product: Solar charger
Qty: 1
Unit Price: 65.50
Total Line Amount: 65.50
Tax Breakdown:

Tax: Entregas IVA 21%
Taxable Amount: 108.26
Tax amount: 22.74
Total Gross Amount:

Total Gross amount: 131.00

8. Again search the product “Solar charger all terrain” and add one more quantity

Line 1:

Product: Solar charger
Qty: 1
Unit Price: 65.50
Total Line Amount: 65.50

Line 2:

Product: Solar charger
Qty: 1
Unit Price: 65.50
Total Line Amount: 65.50
-- Discount 3X 2 of diff product (Re-Factor IV): -65.5

Line 3:

Product: Solar charger all terrain
Qty: 1
Unit Price: 89.90
Total Line Amount: 89.90
Tax Breakdown:

Tax: Entregas IVA 21%
Taxable Amount: 128.43
Tax amount: 26.97
Total Gross Amount:

Total Gross amount: 155.40
Then to complete the receipt, tap on the “Total” amount

Verify “155.40 € remaining to pay.” text appears on the right hand side of the terminal, along with “Tick” button
Then Tap on Ok (Tick) button

Then verify

“Exact amount paid.” text appears
Cash “155.40 with close(X) icon
To complete the receipt, tap on the “Done” button


--> The discount should be distributed in both lines of 65.50, not just in one.
--> Now if you go to the backoffice, you will see that the discount has been distributed in all three lines (should be only distributed in the two lines of lowest price).

See screenshots attached.
No tags attached.
zip Solar.zip (347,002) 2014-07-15 13:12
https://issues.openbravo.com/file_download.php?file_id=7056&type=bug
Issue History
2014-07-15 13:12emartinezNew Issue
2014-07-15 13:12emartinezAssigned To => marvintm
2014-07-15 13:12emartinezFile Added: Solar.zip
2014-07-15 13:12emartinezTriggers an Emergency Pack => No
2014-07-21 16:02emartinezDescription Updatedbug_revision_view_page.php?rev_id=6107#r6107
2015-05-26 08:08sureshbabuNote Added: 0077728

Notes
(0077728)
sureshbabu   
2015-05-26 08:08   
Retested @ RR15Q2.1 ...at WEB POS now the discount is distributed in both lines. but at ERP(backend) the discount is wrongly distributed in any all the three lines