Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0011223Openbravo ERP07. Sales managementpublic2009-11-02 16:302009-11-05 07:18
networkb 
harikrishnan 
urgentmajoralways
closedfixed 
5
2.40MP4 
2.40MP112.40MP11 
Core
No
0011223: 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.
blocks defect 00112142.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-03 08:11rafarodaTypedefect => backport
2009-11-03 08:11rafarodafix_in_branch => 2.40
2009-11-04 09:10hgbotCheckin
2009-11-04 09:10hgbotNote Added: 0021548
2009-11-04 09:10hgbotStatusscheduled => resolved
2009-11-04 09:10hgbotResolutionopen => fixed
2009-11-04 09:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/12fab69cabd7978117f30fdcba0f7576627a40b6 [^]
2009-11-04 13:22rafarodaAssigned Torafaroda => harikrishnan
2009-11-05 07:18arunkumarStatusresolved => closed
2009-11-05 07:18arunkumarNote Added: 0021572
2009-11-05 07:18arunkumarFixed in Version => 2.40MP11

Notes
(0021548)
hgbot   
2009-11-04 09:10   
Repository: erp/stable/2.40
Changeset: 12fab69cabd7978117f30fdcba0f7576627a40b6
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Wed Nov 04 12:50:59 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/12fab69cabd7978117f30fdcba0f7576627a40b6 [^]

Fixes issue 11223: 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
---
(0021572)
arunkumar   
2009-11-05 07:18   
Tested & Working fine