Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013955Openbravo ERP03. Procurement managementpublic2010-07-14 12:342012-04-26 19:32
RenateNieuwkoop 
naiaramartinez 
normalminoralways
closedfixed 
5
2.50MP19 
 
Core
No
0013955: Requisition: When pricelist information is added to the header after the line was added, the prices do not get applied in line
Pricelist is not a mandatory field in requisitions, yet when you enter a pricelist before you enter a product, the price information will appear in the lines.

However, if initially the pricelist is not entered, but you first enter the line with the product, upon changing the header with the pricelist, the line doesn't get updated with prices.
To see the difference in behaviour:
A.
1. enter a requisition:
Procurement Management || Transactions || Requisition || Header
Vendor can be left blank, but make sure to select a pricelist
2. go to lines and enter a product that exists on that pricelist
you notice that a unit price and list price appear for the product.

B. Now the problem occurs when:
1. 1. enter a requisition:
Procurement Management || Transactions || Requisition || Header
Leave Vendor and pricelist blank
2. Go to lines and enter the same product as selected in scenario A.
save. The unit price and list price didn't get populated.
3. Go to header and add the same pricelist as in scenario A and save.
On the line the unit price and list price remain blank
When the header gets updated with a pricelist, this information should be populated in the lines also.
VMA-Reviewed
related to defect 0013039 closed mirurita Callout SL_RequisitionLine_Amt gets the standard and price precision from data in header instead of lines 
Issue History
2010-07-14 12:34RenateNieuwkoopNew Issue
2010-07-14 12:34RenateNieuwkoopAssigned To => adrianromero
2011-06-03 10:59dalsasuaAssigned Toadrianromero => dalsasua
2011-07-20 18:12dalsasuaAssigned Todalsasua => jonalegriaesarte
2012-02-15 19:05iciordiaAssigned Tojonalegriaesarte => vmromanos
2012-02-16 14:21vmromanosTag Attached: VMA-Reviewed
2012-02-16 16:13vmromanosRelationship addedrelated to 0013039
2012-04-23 15:29naiaramartinezAssigned Tovmromanos => naiaramartinez
2012-04-23 15:42naiaramartinezNote Added: 0047881
2012-04-24 11:29naiaramartinezNote Added: 0047905
2012-04-24 11:29naiaramartinezStatusnew => scheduled
2012-04-24 11:29naiaramartinezfix_in_branch => pi
2012-04-24 19:59hgbotCheckin
2012-04-24 19:59hgbotNote Added: 0047937
2012-04-24 19:59hgbotStatusscheduled => resolved
2012-04-24 19:59hgbotResolutionopen => fixed
2012-04-24 19:59hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/a1787a1d8fd00ccb1825bbd830f82b9e03736e64 [^]
2012-04-24 19:59hgbotCheckin
2012-04-24 19:59hgbotNote Added: 0047939
2012-04-25 09:11miruritaNote Added: 0047941
2012-04-25 09:11miruritaStatusresolved => closed
2012-04-26 19:32hudsonbotCheckin
2012-04-26 19:32hudsonbotNote Added: 0048089
2012-04-26 19:32hudsonbotCheckin
2012-04-26 19:32hudsonbotNote Added: 0048091

Notes
(0047881)
naiaramartinez   
2012-04-23 15:42   
Test Plan:
  Go to Requisition window.
  Create a header. Select a pricelist
  Create a line. Select a product. Select a pricelist.
  Notice that a net unit price and net list price appear for the product with the data of the lines pricelist.

  Create another line. Leave the pricelist blank.
  Notice that a net unit price and net list price appear for the product with the data of the header pricelist.

  So, if a pricelist exists in the line, the unit price and list price are populated with this data. If a pricelist doesn't exist in the line but exits in the header, the unit price and list price are populated with header's data.If there is no pricelist,the unit price and list price is not populated.
(0047905)
naiaramartinez   
2012-04-24 11:29   
The application is working as expected. If a pricelist exists in the line, the price unit will populated with this information. If pricelist doesn't exist in the line but exists in the header, the unit price and list price will populated with header's data.

But unit price and list price can be null, so if you complete the pricelist after having a line, those have not have to be populated with that data.
(0047937)
hgbot   
2012-04-24 19:59   
Repository: erp/devel/pi
Changeset: a1787a1d8fd00ccb1825bbd830f82b9e03736e64
Author: Naiara Martinez <naiara.martinez <at> openbravo.com>
Date: Mon Apr 23 15:27:42 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/a1787a1d8fd00ccb1825bbd830f82b9e03736e64 [^]

fixed bug 13955 Compare if the variable is null for avoiding the exception

---
M src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
---
(0047939)
hgbot   
2012-04-24 19:59   
Repository: erp/devel/pi
Changeset: 26d0c484a5cafa11ee3ae5bac4ed826368b7839c
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Tue Apr 24 19:58:20 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/26d0c484a5cafa11ee3ae5bac4ed826368b7839c [^]

Related to issue 13955: update license text year

---
M src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Product.java
---
(0047941)
mirurita   
2012-04-25 09:11   
code review + testing OK

selecting a price list in the header should not overwrite all the lines price list.
Price list selected at line level is more specific.

The price list information in the header is useful when creating a new line, if you do not select a price list in the line it will inherit the prices defined in the header price list.
(0048089)
hudsonbot   
2012-04-26 19:32   
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/70a717a9ffa1 [^]

Maturity status: Test
(0048091)
hudsonbot   
2012-04-26 19:32   
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/70a717a9ffa1 [^]

Maturity status: Test