details: https://code.openbravo.com/erp/devel/pi/rev/c2976ed10888
changeset: 21273:c2976ed10888
user: Pandeeswari Ramakrishnan <pandeeswari.ramakrishnan <at>
openbravo.com>
date: Thu Oct 03 12:31:10 2013 +0530
summary: Fixes Issue 24803: "Process failed during execution" error when
posting
diffstat:
src/org/openbravo/erpCommon/ad_forms/DocInOut.java | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diffs (25 lines):
diff -r df0dea56e2c8 -r c2976ed10888
src/org/openbravo/erpCommon/ad_forms/DocInOut.java
--- a/src/org/openbravo/erpCommon/ad_forms/DocInOut.java Fri Oct 11
09:59:28 2013 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/DocInOut.java Thu Oct 03
12:31:10 2013 +0530
@@ -234,6 +234,10 @@
log4j.error("No Account Asset for product: " + product.getName()
+ " in accounting schema: " + schema.getName());
}
+ if (!isConvertible(as, conn)) {
+ setMessageResult(conn, STATUS_NotConvertible, "error", null);
+ throw new IllegalStateException();
+ }
if (CostingStatus.getInstance().isMigrated() && line.transaction !=
null
&& !line.transaction.isCostCalculated()) {
Map<String, String> parameters =
getNotCalculatedCostParameters(line.transaction);
@@ -326,6 +330,10 @@
}
String costs = "0";
String strCosts = "0";
+ if (!isConvertible(as, conn)) {
+ setMessageResult(conn, STATUS_NotConvertible, "error", null);
+ throw new IllegalStateException();
+ }
if (product.isBookUsingPurchaseOrderPrice()) {
// If the Product is checked as book using PO Price, the Price of
the Purchase Order will
// be used to create the FactAcct Line
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits