From c3383717079101464e908f357dd7b06231e321e9 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Fri, 25 Jan 2008 22:52:48 +0000 Subject: [PATCH] Lots of refactoring for [ adempiere-Feature Requests-1877902 ] Implement JSR 223: Scripting callout Created MRuleFix bug [ 1871567 ] Wrong value in Payment document Thanks to Alejandro --- client/src/org/compiere/print/ReportCtl.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/org/compiere/print/ReportCtl.java b/client/src/org/compiere/print/ReportCtl.java index fdcaffe3a6..f13c2c6073 100644 --- a/client/src/org/compiere/print/ReportCtl.java +++ b/client/src/org/compiere/print/ReportCtl.java @@ -246,8 +246,14 @@ public class ReportCtl */ public static boolean startCheckPrint (int C_Payment_ID, boolean IsDirectPrint) { + + // afalcone - [ 1871567 ] Wrong value in Payment document + boolean ok = MPaySelectionCheck.deleteGeneratedDraft(Env.getCtx(), C_Payment_ID, null); + // + int C_PaySelectionCheck_ID = 0; MPaySelectionCheck psc = MPaySelectionCheck.getOfPayment(Env.getCtx(), C_Payment_ID, null); + if (psc != null) C_PaySelectionCheck_ID = psc.getC_PaySelectionCheck_ID(); else