From 595936672b85d1b5906e7ffb9e4639fc1b2e384b Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Tue, 30 Jan 2007 22:41:54 +0000 Subject: [PATCH] Solve bug 1648131 Negative Reserved Qty on Customer Material Return http://sourceforge.net/tracker/index.php?func=detail&aid=1648131&group_id=176962&atid=879332 --- base/src/org/compiere/model/CalloutInOut.java | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/base/src/org/compiere/model/CalloutInOut.java b/base/src/org/compiere/model/CalloutInOut.java index fa9ff5b845..f975d3390b 100644 --- a/base/src/org/compiere/model/CalloutInOut.java +++ b/base/src/org/compiere/model/CalloutInOut.java @@ -109,9 +109,28 @@ public class CalloutInOut extends CalloutEngine // Set Movement Type String DocBaseType = rs.getString("DocBaseType"); if (DocBaseType.equals("MMS")) // Material Shipments - mTab.setValue("MovementType", "C-"); // Customer Shipments + /**solve 1648131 bug vpj-cd e-evolution */ + //mTab.setValue("MovementType", "C-"); // Customer Shipments + { + boolean IsSOTrx = "Y".equals(Env.getContext(ctx, WindowNo, "IsSOTrx")); + if (IsSOTrx) + mTab.setValue("MovementType", "C-"); + else + mTab.setValue("MovementType", "V-"); + + } + /**END vpj-cd e-evolution */ else if (DocBaseType.equals("MMR")) // Material Receipts - mTab.setValue("MovementType", "V+"); // Vendor Receipts + /**solve 1648131 bug vpj-cd e-evolution */ + //mTab.setValue("MovementType", "V+"); // Vendor Receipts + { + boolean IsSOTrx = "Y".equals(Env.getContext(ctx, WindowNo, "IsSOTrx")); + if (IsSOTrx) + mTab.setValue("MovementType", "C+"); + else + mTab.setValue("MovementType", "V+"); + } + /**END vpj-cd e-evolution */ // DocumentNo if (rs.getString("IsDocNoControlled").equals("Y"))