--HG--
branch : EDII
This commit is contained in:
hodianto 2019-08-30 19:17:52 +07:00
parent d5a007696b
commit 92a72fccbf
1 changed files with 7 additions and 5 deletions

View File

@ -78,11 +78,13 @@ public class MID_MRequisitionLine extends MRequisitionLine{
tax.delete(false, get_TrxName()); tax.delete(false, get_TrxName());
}else { }else {
tax = X_M_RequisitionTax.get(this, 2, true, get_TrxName()); tax = X_M_RequisitionTax.get(this, 2, true, get_TrxName());
tax.calculateTaxFromLines(); if(tax!=null) {
if(tax.getTaxAmt().signum() != 0) tax.calculateTaxFromLines();
tax.saveEx(); if(tax.getTaxAmt().signum() != 0)
else tax.saveEx();
tax.delete(false, get_TrxName()); else
tax.delete(false, get_TrxName());
}
tax = X_M_RequisitionTax.get(this, 2, false, get_TrxName()); tax = X_M_RequisitionTax.get(this, 2, false, get_TrxName());
tax.calculateTaxFromLines(); tax.calculateTaxFromLines();
if(tax.getTaxAmt().signum() != 0) if(tax.getTaxAmt().signum() != 0)