Package org.compiere.model
Class StandardTaxProvider
- java.lang.Object
-
- org.compiere.model.StandardTaxProvider
-
- All Implemented Interfaces:
ITaxProvider
public class StandardTaxProvider extends Object implements ITaxProvider
Standard tax provider- Author:
- Elaine
-
-
Constructor Summary
Constructors Constructor Description StandardTaxProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
calculateInvoiceTaxTotal(MTaxProvider provider, MInvoice invoice)
boolean
calculateOrderTaxTotal(MTaxProvider provider, MOrder order)
boolean
calculateRMATaxTotal(MTaxProvider provider, MRMA rma)
boolean
recalculateTax(MTaxProvider provider, MInvoiceLine line, boolean newRecord)
boolean
recalculateTax(MTaxProvider provider, MOrderLine line, boolean newRecord)
boolean
recalculateTax(MTaxProvider provider, MRMALine line, boolean newRecord)
boolean
updateHeaderTax(MTaxProvider provider, MInvoiceLine line)
boolean
updateHeaderTax(MTaxProvider provider, MOrderLine line)
boolean
updateHeaderTax(MTaxProvider provider, MRMALine line)
boolean
updateInvoiceTax(MTaxProvider provider, MInvoiceLine line)
boolean
updateOrderTax(MTaxProvider provider, MOrderLine line)
boolean
updateRMATax(MTaxProvider provider, MRMALine line)
String
validateConnection(MTaxProvider provider, ProcessInfo pi)
-
-
-
Field Detail
-
log
protected transient CLogger log
Logger
-
-
Method Detail
-
calculateOrderTaxTotal
public boolean calculateOrderTaxTotal(MTaxProvider provider, MOrder order)
- Specified by:
calculateOrderTaxTotal
in interfaceITaxProvider
-
updateOrderTax
public boolean updateOrderTax(MTaxProvider provider, MOrderLine line)
- Specified by:
updateOrderTax
in interfaceITaxProvider
-
recalculateTax
public boolean recalculateTax(MTaxProvider provider, MOrderLine line, boolean newRecord)
- Specified by:
recalculateTax
in interfaceITaxProvider
-
updateHeaderTax
public boolean updateHeaderTax(MTaxProvider provider, MOrderLine line)
- Specified by:
updateHeaderTax
in interfaceITaxProvider
-
calculateInvoiceTaxTotal
public boolean calculateInvoiceTaxTotal(MTaxProvider provider, MInvoice invoice)
- Specified by:
calculateInvoiceTaxTotal
in interfaceITaxProvider
-
updateInvoiceTax
public boolean updateInvoiceTax(MTaxProvider provider, MInvoiceLine line)
- Specified by:
updateInvoiceTax
in interfaceITaxProvider
-
recalculateTax
public boolean recalculateTax(MTaxProvider provider, MInvoiceLine line, boolean newRecord)
- Specified by:
recalculateTax
in interfaceITaxProvider
-
updateHeaderTax
public boolean updateHeaderTax(MTaxProvider provider, MInvoiceLine line)
- Specified by:
updateHeaderTax
in interfaceITaxProvider
-
calculateRMATaxTotal
public boolean calculateRMATaxTotal(MTaxProvider provider, MRMA rma)
- Specified by:
calculateRMATaxTotal
in interfaceITaxProvider
-
updateRMATax
public boolean updateRMATax(MTaxProvider provider, MRMALine line)
- Specified by:
updateRMATax
in interfaceITaxProvider
-
recalculateTax
public boolean recalculateTax(MTaxProvider provider, MRMALine line, boolean newRecord)
- Specified by:
recalculateTax
in interfaceITaxProvider
-
updateHeaderTax
public boolean updateHeaderTax(MTaxProvider provider, MRMALine line)
- Specified by:
updateHeaderTax
in interfaceITaxProvider
-
validateConnection
public String validateConnection(MTaxProvider provider, ProcessInfo pi) throws Exception
- Specified by:
validateConnection
in interfaceITaxProvider
- Throws:
Exception
-
-