[ 1703207 ] Issue when push button Paymenet Rule fo Order Complete

https://sourceforge.net/tracker/index.php?func=detail&aid=1703207&group_id=176962&atid=879332
This commit is contained in:
vpj-cd 2007-04-19 15:03:14 +00:00
parent 7c09038c6d
commit 6741b60d70
1 changed files with 4 additions and 3 deletions

View File

@ -1026,15 +1026,16 @@ public class VPayment extends CDialog
if(invoice == null && C_Invoice_ID != 0) if(invoice == null && C_Invoice_ID != 0)
{ {
invoice = new MInvoice (Env.getCtx(), C_Invoice_ID, null); invoice = new MInvoice (Env.getCtx(), C_Invoice_ID, null);
}
invoice.setC_CashLine_ID(cl.getC_CashLine_ID()); invoice.setC_CashLine_ID(cl.getC_CashLine_ID());
invoice.save(); invoice.save();
}
if(order == null && C_Order_ID != 0) if(order == null && C_Order_ID != 0)
{ {
order = new MOrder (Env.getCtx(), C_Order_ID, null); order = new MOrder (Env.getCtx(), C_Order_ID, null);
}
order.setC_CashLine_ID(cl.getC_CashLine_ID()); order.setC_CashLine_ID(cl.getC_CashLine_ID());
order.save(); order.save();
}
log.config("Update Order & Invoice with CashLine"); log.config("Update Order & Invoice with CashLine");
} }
else else