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

Fix bug introduced in revision 2161 (NPE)
This commit is contained in:
Carlos Ruiz 2007-05-01 17:00:05 +00:00
parent c2faba83d5
commit b29b483ba1
1 changed files with 8 additions and 4 deletions

View File

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