Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0013265Openbravo ERP03. Procurement managementpublic2010-05-07 12:072010-05-18 21:44
psarobe 
dalsasua 
immediatemajorhave not tried
closedfixed 
5
 
2.50MP17 
Core
No
0013265: Not possible to change the quantity in a purchase invoice line
This is the scenario:
1. I have a goods receipt of qty=15
2. I create a purchase invoice based on that Goods receipt but I only want to invoiced 10
3. So I create the header and click the "Create lines from" button. I select the newly created goods receipt. Select the line and click OK
4. Please notice that in the matched invoice window there is still no entry for this. (Correct)
5. Then I move to "lines" tab and change the qty from 15 to 10. I cannot do it. An error message appears. This is not correct

So the logic behind this should be:

1. If the m_inoutline_id is null then there is no problem
2. If the m_inoutline_id is not null then:
   2.1 If not exists the couple c_invoiceline_id/m_inoutline_id in the m_matchinv table then I should be able to change the Qty
   2.2 If exists then I cannot change it

1. Create a goods receipt. Qty 15
2. Create a purchase invoice based on the above goods receipt using create lines from.
3. Move to lines tab and change the qty =10. Save

Current result: An error appears and this is wrong

Expected behaviour: You should be able to change the qty

No tags attached.
Issue History
2010-05-07 12:07psarobeNew Issue
2010-05-07 12:07psarobeAssigned To => dalsasua
2010-05-07 12:09dalsasuaStatusnew => scheduled
2010-05-07 12:09dalsasuafix_in_branch => pi
2010-05-07 12:11psarobefix_in_branchpi =>
2010-05-07 12:11psarobeSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=348#r348
2010-05-07 13:33hgbotCheckin
2010-05-07 13:33hgbotNote Added: 0027052
2010-05-07 13:33hgbotStatusscheduled => resolved
2010-05-07 13:33hgbotResolutionopen => fixed
2010-05-07 13:33hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/15c44cf2da0c23c167ae78cd0440a0523c836cb8 [^]
2010-05-10 11:50psarobeNote Added: 0027092
2010-05-10 11:50psarobeStatusresolved => closed
2010-05-10 11:50psarobeFixed in Version => 2.50MP16
2010-05-11 00:00anonymoussf_bug_id0 => 2999641
2010-05-11 18:20jpabloaeFixed in Version2.50MP16 => 2.50MP17
2010-05-18 21:44hudsonbotCheckin
2010-05-18 21:44hudsonbotNote Added: 0027500

Notes
(0027052)
hgbot   
2010-05-07 13:33   
Repository: erp/devel/pi
Changeset: 15c44cf2da0c23c167ae78cd0440a0523c836cb8
Author: David Alsasua <david.alsasua <at> openbravo.com>
Date: Fri May 07 13:33:13 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/15c44cf2da0c23c167ae78cd0440a0523c836cb8 [^]

Fixes issue 13265: Not possible to change the quantity

---
M src-db/database/model/triggers/C_INVOICELINE_TRG.xml
---
(0027092)
psarobe   
2010-05-10 11:50   
Tested working fine
(0027500)
hudsonbot   
2010-05-18 21:44   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/15c44cf2da0c [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/aa11838d5f80 [^]
Tests: http://builds.openbravo.com/view/devel-int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.17380.obx [^]