Package org.compiere.model
Class StandardTaxProvider
java.lang.Object
org.compiere.model.StandardTaxProvider
- All Implemented Interfaces:
ITaxProvider
Standard tax calculation implementation
- Author:
- Elaine
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
calculateInvoiceTaxTotal
(MTaxProvider provider, MInvoice invoice) Calculate invoice tax totalboolean
calculateOrderTaxTotal
(MTaxProvider provider, MOrder order) Calculate order taxboolean
calculateRMATaxTotal
(MTaxProvider provider, MRMA rma) Calculate rma tax totalboolean
recalculateTax
(MTaxProvider provider, MInvoiceLine line, boolean newRecord) Re-calculate invoice tax for line (if line tax id change)boolean
recalculateTax
(MTaxProvider provider, MOrderLine line, boolean newRecord) Re-calculate order tax for line (if line tax id change)boolean
recalculateTax
(MTaxProvider provider, MRMALine line, boolean newRecord) Re-calculate rma tax for ram line (if line tax id change)boolean
updateHeaderTax
(MTaxProvider provider, MInvoiceLine line) Update invoice tax totalboolean
updateHeaderTax
(MTaxProvider provider, MOrderLine line) Update order tax totalboolean
updateHeaderTax
(MTaxProvider provider, MRMALine line) Update rma header totalboolean
updateInvoiceTax
(MTaxProvider provider, MInvoiceLine line) Update invoice tax for lineboolean
updateOrderTax
(MTaxProvider provider, MOrderLine line) Update order tax for lineboolean
updateRMATax
(MTaxProvider provider, MRMALine line) Update rma tax for rma linevalidateConnection
(MTaxProvider provider, ProcessInfo pi) Validate connection to online tax calculation service.
-
Field Details
-
log
Logger
-
-
Constructor Details
-
StandardTaxProvider
public StandardTaxProvider()
-
-
Method Details
-
calculateOrderTaxTotal
Description copied from interface:ITaxProvider
Calculate order tax- Specified by:
calculateOrderTaxTotal
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
updateOrderTax
Description copied from interface:ITaxProvider
Update order tax for line- Specified by:
updateOrderTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
recalculateTax
Description copied from interface:ITaxProvider
Re-calculate order tax for line (if line tax id change)- Specified by:
recalculateTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
updateHeaderTax
Description copied from interface:ITaxProvider
Update order tax total- Specified by:
updateHeaderTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
calculateInvoiceTaxTotal
Description copied from interface:ITaxProvider
Calculate invoice tax total- Specified by:
calculateInvoiceTaxTotal
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
updateInvoiceTax
Description copied from interface:ITaxProvider
Update invoice tax for line- Specified by:
updateInvoiceTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
recalculateTax
Description copied from interface:ITaxProvider
Re-calculate invoice tax for line (if line tax id change)- Specified by:
recalculateTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
updateHeaderTax
Description copied from interface:ITaxProvider
Update invoice tax total- Specified by:
updateHeaderTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
calculateRMATaxTotal
Description copied from interface:ITaxProvider
Calculate rma tax total- Specified by:
calculateRMATaxTotal
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
updateRMATax
Description copied from interface:ITaxProvider
Update rma tax for rma line- Specified by:
updateRMATax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
recalculateTax
Description copied from interface:ITaxProvider
Re-calculate rma tax for ram line (if line tax id change)- Specified by:
recalculateTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
updateHeaderTax
Description copied from interface:ITaxProvider
Update rma header total- Specified by:
updateHeaderTax
in interfaceITaxProvider
- Returns:
- true if success, false otherwise
-
validateConnection
Description copied from interface:ITaxProvider
Validate connection to online tax calculation service.- Specified by:
validateConnection
in interfaceITaxProvider
- Returns:
- error message or null
- Throws:
Exception
-