Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0006554Openbravo ERP02. Master data managementpublic2008-12-15 16:402009-03-02 06:46
networkb 
alostale 
immediateminoralways
closedfixed 
5
2.40 
pi 
Core
No
0006554: Purchase Invoie Price Adjustment Linked to Line Item of Sales Invoice
When creating a sales invoice line which uses price adjustment, a price adjustment is created in the line, but an extra price adjustment is also created in a purchase invoice line.

If we go to the sales invoice line and we check in the linked items, two Price Adjustments appear. One of the is associated to a sales invoice (the normal one). The other one is associated to a purchase invoice.

If we navigate to the line the Purchase price adjustment belong to, a line with the characteristics of the sales invoice line appears. If we try to go to the header, we appear in a new purchase invoice.


- To create a price adjustment (Master Data Management | Pricing)
- To add a price list in the price list tab
- To create a sales invoice line using the added price list
- Check the linked items (it is not needed to complete the invoice before)
platform1_sprint1
depends on backport 0006557 closed alostale Purchase Invoie Price Adjustment Linked to Line Item of Sales Invoice 
png price-adjustement-double.png (26,347) 2008-12-15 17:15
https://issues.openbravo.com/file_download.php?file_id=544&type=bug
png
Issue History
2008-12-15 16:40networkbNew Issue
2008-12-15 16:40networkbAssigned To => rafaroda
2008-12-15 16:40networkbsf_bug_id0 => 2431148
2008-12-15 16:40networkbRegression testing => No
2008-12-15 17:15rafarodaFile Added: price-adjustement-double.png
2008-12-15 17:15rafarodaStatusnew => scheduled
2008-12-15 17:15rafarodaAssigned Torafaroda => alostale
2008-12-15 17:15rafarodafix_in_branch => trunk
2008-12-16 10:40alostaleTag Attached: platform1_sprint1
2008-12-16 11:40alostaleNote Added: 0011402
2008-12-16 11:45svnbotCheckin
2008-12-16 11:45svnbotNote Added: 0011404
2008-12-16 11:45svnbotStatusscheduled => resolved
2008-12-16 11:45svnbotResolutionopen => fixed
2008-12-16 11:45svnbotsvn_revision => 11229
2009-01-02 11:35lakshmiNote Added: 0011843
2009-03-02 06:46sureshbabuStatusresolved => closed
2009-03-02 06:46sureshbabuNote Added: 0014183
2009-03-02 06:46sureshbabuFixed in Version => trunk

Notes
(0011402)
alostale   
2008-12-16 11:40   
In fact the problem is not that a extra price adjustment is created but it is displayed in a wrong way, it should only be displayed for the sales tab but it is also showed in the purchase one.

This bug affects not only to this tab but to all subtabs for tables that have both purchase and sales windows.

The solution for this bug is to check always recursively till the window header for data.
(0011404)
svnbot   
2008-12-16 11:45   
Repository: openbravo
Revision: 11229
Author: alostale
Date: 2008-12-16 11:45:28 +0100 (Tue, 16 Dec 2008)

fixed bug 0006554: Linked items do not work properly for subtabs
which parent tab is for a table that appears in multiple windows
(for example in sales and purchase windows).

Now it is checked the data not only in the tab but recursively
till the parent tab.

---
U trunk/src/org/openbravo/erpCommon/utility/UsedByLink.java
---

https://dev.openbravo.com/websvn/openbravo/?rev=11229&sc=1 [^]
(0011843)
lakshmi   
2009-01-02 11:35   
i have created the price adjustment for the business partner and product. In sales invoice, used that Bp and product but couldn't able to view the price adjustment in Linked Items
(0014183)
sureshbabu   
2009-03-02 06:46   
Rested in context http://79.125.56.185/openbravotrunk [^]
using user id :userA1