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
This commit is contained in:
Carlos Ruiz 2008-01-25 22:52:48 +00:00
parent 652a22924f
commit c338371707
1 changed files with 6 additions and 0 deletions

View File

@ -246,8 +246,14 @@ public class ReportCtl
*/ */
public static boolean startCheckPrint (int C_Payment_ID, boolean IsDirectPrint) 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; int C_PaySelectionCheck_ID = 0;
MPaySelectionCheck psc = MPaySelectionCheck.getOfPayment(Env.getCtx(), C_Payment_ID, null); MPaySelectionCheck psc = MPaySelectionCheck.getOfPayment(Env.getCtx(), C_Payment_ID, null);
if (psc != null) if (psc != null)
C_PaySelectionCheck_ID = psc.getC_PaySelectionCheck_ID(); C_PaySelectionCheck_ID = psc.getC_PaySelectionCheck_ID();
else else