Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032544Retail ModulesDiscounts and Promotionspublic2016-03-23 18:122016-06-17 19:36
malsasua 
shivum039 
highmajoralways
closedfixed 
20Community Appliance
RR16Q1 
RR16Q3 
marvintm
No
0032544: automatic discounts are applied in backoffice purchase flow
If there is defined one discount of type "Price Adjustment" that it affects to product A, and you create a purchase invoice from good receipt using "Generate invoice from receipt", the invoice is created, and when the invoice is processed, the "price adjustment" discount is applied
in backoffice:
. in discount and promotions window: new record
 . type "price adjustment"
 . discount: 3 %
. in goods shipment window: new record
 . org: vall blanca store
 . bp: Outdoor Sports S.L
. new line:
 . product: Alpines
 . qty: 1
. complete good receipt
. execute process: "Generate invoice from receipt"
purchase invoice is created
. go to window purchase invoice, record: invoice created in previous step
 . total gross: 21.60
 . complete the invoice
total gross has changed from 21.6 to 20.95 (21.6 - 21.6*0.03). This is INCORRECT, the value should be 21.6
No tags attached.
related to defect 0033975 closed markmm82 Openbravo ERP Wrong Net Unit Price and pricestd in order and invoice lines when applying a discount of a percentage with decimals 
causes defect 0034103 closed markmm82 Openbravo ERP Incorrect prices are calculated in Purchase Orders/Invoices when exists discounts or promotions related to products. 
causes defect 0035335 closed marvintm Openbravo ERP Price Adjustments are not applied in Purchase Flow 
Issue History
2016-03-23 18:12malsasuaNew Issue
2016-03-23 18:12malsasuaAssigned To => Retail
2016-03-23 18:12malsasuaResolution time => 1461967200
2016-03-23 18:12malsasuaTriggers an Emergency Pack => No
2016-04-01 09:31shivum039Statusnew => acknowledged
2016-04-01 11:31OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=11606#r11606
2016-04-12 12:58shivum039Note Added: 0085573
2016-04-12 12:58shivum039Assigned ToRetail => shivum039
2016-04-12 12:58shivum039Statusacknowledged => scheduled
2016-04-15 14:56hgbotCheckin
2016-04-15 14:56hgbotNote Added: 0085673
2016-04-15 14:56hgbotStatusscheduled => resolved
2016-04-15 14:56hgbotResolutionopen => fixed
2016-04-15 14:56hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/168db990cb858ff372e875492cbe26014da34397 [^]
2016-04-25 19:38marvintmReview Assigned To => marvintm
2016-04-25 19:38marvintmStatusresolved => closed
2016-04-25 19:38marvintmFixed in Version => RR16Q3
2016-06-17 19:36hudsonbotCheckin
2016-06-17 19:36hudsonbotNote Added: 0087453
2016-09-26 13:17aferrazRelationship addedrelated to 0033975
2016-09-27 17:49aferrazRelationship addedcauses 0034103
2017-02-22 11:00ngarciaRelationship addedcauses 0035335

Notes
(0085573)
shivum039   
2016-04-12 12:58   
Trying To restrict the Discount to be applied to only Sales Flow by
Adding Logic to "m_promotion_adjustments()" Function
(0085673)
hgbot   
2016-04-15 14:56   
Repository: erp/devel/pi
Changeset: 168db990cb858ff372e875492cbe26014da34397
Author: Shivanand Madiwalar <shivanand.madiwalar <at> promantia.com>
Date: Fri Apr 15 18:06:06 2016 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/168db990cb858ff372e875492cbe26014da34397 [^]

Fixes issue 32544: Restricting the Automatic Discount being applying to the back office Purchase flow by filtering based on issotrx flag

---
M src-db/database/model/functions/M_PROMOTION_ADJUSTMENT.xml
---
(0087453)
hudsonbot   
2016-06-17 19:36   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/0dc7be081b1c [^]
Maturity status: Test