[PENGADAAN] : Create From Invoice
This commit is contained in:
parent
470f1d8748
commit
5af500caf8
|
|
@ -527,6 +527,10 @@ public abstract class MID_CreateFromInvoice extends CreateFrom {
|
|||
if (inoutLine != null)
|
||||
{
|
||||
invoiceLine.setShipLine(inoutLine); // overwrites
|
||||
invoiceLine.set_ValueNoCheck("Construction_C_Order_ID", inoutLine.get_Value("Construction_C_Order_ID") != null ? inoutLine.get_ValueAsInt("Construction_C_Order_ID") : null);
|
||||
invoiceLine.set_ValueNoCheck("SAP_ExpenseCode_ID", inoutLine.get_Value("SAP_ExpenseCode_ID") != null ? inoutLine.get_ValueAsInt("SAP_ExpenseCode_ID") : null);
|
||||
invoiceLine.set_ValueNoCheck("C_Project_ID", inoutLine.get_Value("C_Project_ID") != null ? inoutLine.get_ValueAsInt("C_Project_ID") : null);
|
||||
invoiceLine.set_ValueNoCheck("C_ProjectPhase_ID", inoutLine.get_Value("C_ProjectPhase_ID") != null ? inoutLine.get_ValueAsInt("C_ProjectPhase_ID") : null);
|
||||
}
|
||||
else {
|
||||
log.fine("No Receipt Line");
|
||||
|
|
@ -534,6 +538,10 @@ public abstract class MID_CreateFromInvoice extends CreateFrom {
|
|||
if (orderLine != null)
|
||||
{
|
||||
invoiceLine.setOrderLine(orderLine); // overwrites
|
||||
invoiceLine.set_ValueNoCheck("Construction_C_Order_ID", orderLine.get_Value("Construction_C_Order_ID") != null ? orderLine.get_ValueAsInt("Construction_C_Order_ID") : null);
|
||||
invoiceLine.set_ValueNoCheck("SAP_ExpenseCode_ID", orderLine.get_Value("SAP_ExpenseCode_ID") != null ? orderLine.get_ValueAsInt("SAP_ExpenseCode_ID") : null);
|
||||
invoiceLine.set_ValueNoCheck("C_Project_ID", orderLine.get_Value("C_Project_ID") != null ? orderLine.get_ValueAsInt("C_Project_ID") : null);
|
||||
invoiceLine.set_ValueNoCheck("C_ProjectPhase_ID", orderLine.get_Value("C_ProjectPhase_ID") != null ? orderLine.get_ValueAsInt("C_ProjectPhase_ID") : null);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue