Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013133Openbravo ERP07. Sales managementpublic2010-04-27 09:252010-05-25 08:33
adrianromero 
harikrishnan 
highminoralways
closedfixed 
5
2.40MP12 
2.40MP13 
Core
No
0013133: m_get_offer error when using "create lines from" process
If m_get_offer function returns more than one row and you run "Create lines from" process, only first offer will be applied.
1. Master Data Management || Pricing || Price Adjustments || Adjustments: create 2 adjustments

a)name=adj1
start date=01/04/2010
end date=30/04/2010
discount%=10
bp category=not selected
product category=not selected
pricelist=all selected (choose Sales pricelist)
product=not selected
bp=all selected (choose mcgiver)

b)name=adj2
start date=01/04/2010
end date=30/04/2010
discount%=15
bp category=not selected
product category=not selected
pricelist=all selected (choose Purchase pricelist)
product=all selected (choose boots)
bp=not selected

2. Master Data Management || Product || Product >> Price : set 3 prices of Boots in pricelist_version "Sales 2006" to 42.

2. Sales Management || Transactions || Goods Shipment || Header : create shipment for
bp=mcgiver
org=Main
date=26/04/2010
product=boots
qty=1

3. Sales Management || Transactions || Sales Invoice || Header : create invoice for
bp=mcgiver
org=Main
date=26/04/2010
Create Lines From the previous shipment

4. Sales Management || Transactions || Sales Invoice || Header >> Lines >> Price Adjustments : navigate to Price Adjustment created for the invoice and realize that quantities are not correct.

If you refresh the product you can check that PriceAdjustment is recalculated correctly.
No tags attached.
blocks defect 00131322.40MP13 closed harikrishnan m_get_offer error when using "create lines from" process 
Issue History
2010-04-27 09:25adrianromeroNew Issue
2010-04-27 09:25adrianromeroAssigned To => adrianromero
2010-04-27 09:25adrianromeroIssue generated from0013132
2010-04-27 09:25adrianromeroRelationship addedblocks 0013132
2010-04-27 09:26adrianromeroStatusnew => scheduled
2010-04-27 09:26adrianromerofix_in_branch => pi
2010-05-01 13:03harikrishnanAssigned Toadrianromero => harikrishnan
2010-05-01 13:31hgbotCheckin
2010-05-01 13:31hgbotNote Added: 0026833
2010-05-01 13:31hgbotStatusscheduled => resolved
2010-05-01 13:31hgbotResolutionopen => fixed
2010-05-01 13:31hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.40/rev/c9425f3fe11ec53a6f68d7f8d4774bae313a6ce3 [^]
2010-05-01 13:31harikrishnanNote Added: 0026834
2010-05-25 08:33arunkumarNote Added: 0027692
2010-05-25 08:33arunkumarStatusresolved => closed

Notes
(0026833)
hgbot   
2010-05-01 13:31   
Repository: erp/stable/2.40
Changeset: c9425f3fe11ec53a6f68d7f8d4774bae313a6ce3
Author: Harikrishnan Raja <harikrishnan.raja <at> openbravo.com>
Date: Sat May 01 17:00:34 2010 +0530
URL: http://code.openbravo.com/erp/stable/2.40/rev/c9425f3fe11ec53a6f68d7f8d4774bae313a6ce3 [^]

Fixes Issue 13133: m_get_offer error when using \"create lines from\" process.

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Invoice_data.xsql
---
(0026834)
harikrishnan   
2010-05-01 13:31   
* Testing of the issue:
To test the issue, as Openbravo Admin, create a two price adjustments.If the invoice lines are created from "create lines from" then in price adjustments tab their should be two adjustments(Create price adjustments in such a way).
* Explanation of the changeset that fixes the issue:
In the CreateFrom class while copying the actual price offer price calculation is applied before.Now this calculation is applied.

* Other areas affected by the changeset:
The only areas affected by this change set are "Create Lines From " in sales invoice and purchase invoice.
(0027692)
arunkumar   
2010-05-25 08:33   
Tested working fine