IDEMPIERE-1738: - at allocate, invoice_id don't set into env varial, because some callout is stop working
This commit is contained in:
parent
18e66c6035
commit
4740efdb90
|
@ -109,7 +109,7 @@ public class CalloutPaymentAllocate extends CalloutEngine
|
||||||
mTab.setValue("Amount", InvoiceOpen.subtract(DiscountAmt));
|
mTab.setValue("Amount", InvoiceOpen.subtract(DiscountAmt));
|
||||||
mTab.setValue("DiscountAmt", DiscountAmt);
|
mTab.setValue("DiscountAmt", DiscountAmt);
|
||||||
// reset as dependent fields get reset
|
// reset as dependent fields get reset
|
||||||
Env.setContext(ctx, WindowNo, "C_Invoice_ID", C_Invoice_ID.toString());
|
Env.setContext(ctx, WindowNo, mTab.getTabNo(), "C_Invoice_ID", C_Invoice_ID.toString());
|
||||||
mTab.setValue("C_Invoice_ID", C_Invoice_ID);
|
mTab.setValue("C_Invoice_ID", C_Invoice_ID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -147,7 +147,7 @@ public class CalloutPaymentAllocate extends CalloutEngine
|
||||||
if (isCalloutActive()) // assuming it is resetting value
|
if (isCalloutActive()) // assuming it is resetting value
|
||||||
return "";
|
return "";
|
||||||
// No Invoice
|
// No Invoice
|
||||||
int C_Invoice_ID = Env.getContextAsInt(ctx, WindowNo, "C_Invoice_ID");
|
int C_Invoice_ID = Env.getContextAsInt(ctx, WindowNo, mTab.getTabNo(), "C_Invoice_ID");
|
||||||
if (C_Invoice_ID == 0)
|
if (C_Invoice_ID == 0)
|
||||||
return "";
|
return "";
|
||||||
// Get Info from Tab
|
// Get Info from Tab
|
||||||
|
@ -173,8 +173,8 @@ public class CalloutPaymentAllocate extends CalloutEngine
|
||||||
// PayAmt - calculate write off
|
// PayAmt - calculate write off
|
||||||
if (colName.equals("Amount"))
|
if (colName.equals("Amount"))
|
||||||
{
|
{
|
||||||
WriteOffAmt = InvoiceAmt.subtract(Amount).subtract(DiscountAmt).subtract(OverUnderAmt);
|
OverUnderAmt = InvoiceAmt.subtract(Amount).subtract(DiscountAmt).subtract(WriteOffAmt);
|
||||||
mTab.setValue("WriteOffAmt", WriteOffAmt);
|
mTab.setValue("OverUnderAmt", OverUnderAmt);
|
||||||
}
|
}
|
||||||
else // calculate Amount
|
else // calculate Amount
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue