Add Tax to Purchase Order

--HG--
branch : EDII
This commit is contained in:
hodianto 2018-12-28 14:08:36 +07:00
parent 75310c0722
commit 34dd813eb9
1 changed files with 3 additions and 1 deletions

View File

@ -406,7 +406,9 @@ public class MID_CreateFromOrder extends CreateFrom {
}
}
orderLine.setLineNetAmt();
if(reqLine.get_ValueAsInt("C_Tax_ID") > 0) {
orderLine.setC_Tax_ID(reqLine.get_ValueAsInt("C_Tax_ID"));
}
if(orderLine.getC_Tax_ID()>0){
MTax tax = (MTax) orderLine.getC_Tax();
orderLine.set_ValueNoCheck("TotalLines", orderLine.getLineNetAmt()