Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0026293
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] 07. Sales managementminoralways2014-04-16 01:192014-07-01 04:30
ReporterVictorVillarView Statuspublic 
Assigned ToAtulOpenbravo 
PriorityhighResolutionfixedFixed in Version3.0PR14Q3
StatusclosedFix in branchpiFixed in SCM revisionfe6da6cee966
ProjectionnoneETAnoneTarget Version3.0PR14Q3
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionpiSCM revision 
Review Assigned TodaniOpenbravo
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0026293: Unable to add exploded BOM to invoice from order when order has multiple shipments

DescriptionThe error is occurring because the when the order is shipped on multiple shipments, the invoice gets a line added for each shipment.
The query to insert the invoice line bom componetns is doing a sub select to find the bom parent in the invoice. Because it has been
added twice (due to 2 shipments) the sub select returns 2 values and insert fails.
Steps To Reproduce1) Create a BOM product with 2 components and mark product as not stocked (so that it is exploded)
2) Create a sales order for 2 units of the BOM product (will end up with 3 lines on the order for 2 units each)
3) Create a shipment for one unit of the BOM from the order
4) Create a shipment for second unit of the BOM from the order
5) Create an invoice and try to create lines from the original sales order

You will get the following error:
Exception:org.postgresql.util.PSQLException: ERROR: more than one row returned by a subquery used as an expression
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0068448)
hgbot (developer)
2014-06-30 16:12

Repository: erp/devel/pi
Changeset: fe6da6cee966c36a5e2a7a05146a7e54242dfb12
Author: Daniel Ruiz <daniel.ruiz <at> openbravo.com>
Date: Mon Jun 30 16:11:53 2014 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fe6da6cee966c36a5e2a7a05146a7e54242dfb12 [^]

Fixes issue 26293: Unable to add exploded BOM to invoice from order when multiple shipments

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom.java
---
(0068449)
daniOpenbravo (developer)
2014-06-30 16:32

Verified.
(0068468)
hudsonbot (developer)
2014-07-01 04:30

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/a4db5fde5ca2 [^]
Maturity status: Test

- Issue History
Date Modified Username Field Change
2014-04-16 01:19 VictorVillar New Issue
2014-04-16 01:19 VictorVillar Assigned To => dmiguelez
2014-04-16 01:19 VictorVillar Modules => Core
2014-04-16 01:19 VictorVillar Resolution time => 1403733600
2014-04-16 01:19 VictorVillar Triggers an Emergency Pack => No
2014-04-16 01:20 VictorVillar Assigned To dmiguelez => jonalegriaesarte
2014-04-16 01:20 VictorVillar Issue Monitored: networkb
2014-04-16 01:46 eintelau Issue Monitored: eintelau
2014-04-28 16:57 jonalegriaesarte Assigned To jonalegriaesarte => pramakrishnan
2014-06-28 13:35 AtulOpenbravo Assigned To pramakrishnan => AtulOpenbravo
2014-06-28 13:35 AtulOpenbravo Status new => scheduled
2014-06-28 13:35 AtulOpenbravo fix_in_branch => pi
2014-06-30 16:12 hgbot Checkin
2014-06-30 16:12 hgbot Note Added: 0068448
2014-06-30 16:12 hgbot Status scheduled => resolved
2014-06-30 16:12 hgbot Resolution open => fixed
2014-06-30 16:12 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fe6da6cee966c36a5e2a7a05146a7e54242dfb12 [^]
2014-06-30 16:32 daniOpenbravo Review Assigned To => daniOpenbravo
2014-06-30 16:32 daniOpenbravo Note Added: 0068449
2014-06-30 16:32 daniOpenbravo Status resolved => closed
2014-06-30 16:32 daniOpenbravo Fixed in Version => PR14Q3
2014-07-01 04:30 hudsonbot Checkin
2014-07-01 04:30 hudsonbot Note Added: 0068468


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker