Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011214Openbravo ERP07. Sales managementpublic2009-11-02 16:302009-11-06 00:00
networkb 
harikrishnan 
urgentmajoralways
closedfixed 
5
2.40MP4 
2.40MP112.50MP9 
Core
No
0011214: Create Lines from in Invoice does not take into account if a price adjustment is active or not.
A BP has an deactive price adjustment. If an invoice is created, its prices are correct.
However, if a good shipment is created for this BP and then its invoice is created using "Create lines from", prices are set, taking into account the deactivated price adjustment.

It also has been tested in MP10.
Go to Master Data Management > Price > Price Adjustment.
Create a new record.
Enter a name; as Discount %, 50;Included Business Partners, "All included".
Save it.
Go to Business Partner tab, and select a BP. (IE Sailor).
Go to Sales Management > Transactions > Sales Invoice.
Create a new one. As BP, select the one selected in Price Adjustment (in our case, Sailor).
Go to Lines tab.
Create a new record.
Select a product (IE, paint). See its price. It is the 50%.
Go back to Price Adjustment and deactivate it.
Go to Sales management > Transactions > Good Shipment.
Create a new record.
Select the same BP as Price Adjustment.
Go to its lines.
Select the same product as invoice (IE, paint).
Go back to Header and process it.
Go to Sales management > Transactions > Sales Invoice.
Create a new one.
Select the same BP as before.
Save it.
Press "Create lines from".
In the pop-up, select the shipment created before and check its lines.
Press OK.
Go to Lines tab. See its price. It is 50% and it should not.
No tags attached.
depends on backport 00112232.40MP11 closed harikrishnan Create Lines from in Invoice does not take into account if a price adjustment is active or not. 
Issue History
2009-11-02 16:30networkbNew Issue
2009-11-02 16:30networkbAssigned To => rafaroda
2009-11-03 08:11rafarodaPriorityimmediate => urgent
2009-11-03 08:11rafarodaStatusnew => scheduled
2009-11-03 08:11rafarodafix_in_branch => pi
2009-11-04 09:12hgbotCheckin
2009-11-04 09:12hgbotNote Added: 0021549
2009-11-04 09:12hgbotStatusscheduled => resolved
2009-11-04 09:12hgbotResolutionopen => fixed
2009-11-04 09:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9ada1ee674811355b5605600065d32b06fe2f9e7 [^]
2009-11-04 13:22rafarodaAssigned Torafaroda => harikrishnan
2009-11-05 08:36arunkumarStatusresolved => closed
2009-11-05 08:36arunkumarNote Added: 0021580
2009-11-05 08:36arunkumarFixed in Version => 2.50MP9
2009-11-06 00:00anonymoussf_bug_id0 => 2892916

Notes
(0021549)
hgbot   
2009-11-04 09:12   
Repository: erp/devel/pi
Changeset: 9ada1ee674811355b5605600065d32b06fe2f9e7
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Wed Nov 04 13:41:21 2009 +0530
URL: http://code.openbravo.com/erp/devel/pi/rev/9ada1ee674811355b5605600065d32b06fe2f9e7 [^]

Fixes Issue 11214: Create Lines from in Invoice does not take into account if a price adjustment is active or not.

---
M src-db/database/model/functions/M_GET_OFFER_PRICE.xml
---
(0021580)
arunkumar   
2009-11-05 08:36   
Tested & Working fine.