Package org.adempiere.model
Interface ITaxProvider
- All Known Implementing Classes:
StandardTaxProvider
public interface ITaxProvider
Tax provider interface
- Author:
- Elaine
-
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.
-
Method Details
-
calculateOrderTaxTotal
Calculate order tax- Parameters:
provider
-order
-- Returns:
- true if success, false otherwise
-
updateOrderTax
Update order tax for line- Parameters:
provider
-line
-- Returns:
- true if success, false otherwise
-
recalculateTax
Re-calculate order tax for line (if line tax id change)- Parameters:
provider
-line
-newRecord
-- Returns:
- true if success, false otherwise
-
updateHeaderTax
Update order tax total- Parameters:
provider
-line
-- Returns:
- true if success, false otherwise
-
calculateInvoiceTaxTotal
Calculate invoice tax total- Parameters:
provider
-invoice
-- Returns:
- true if success, false otherwise
-
updateInvoiceTax
Update invoice tax for line- Parameters:
provider
-line
-- Returns:
- true if success, false otherwise
-
recalculateTax
Re-calculate invoice tax for line (if line tax id change)- Parameters:
provider
-line
-newRecord
-- Returns:
- true if success, false otherwise
-
updateHeaderTax
Update invoice tax total- Parameters:
provider
-line
-- Returns:
- true if success, false otherwise
-
calculateRMATaxTotal
Calculate rma tax total- Parameters:
provider
-rma
-- Returns:
- true if success, false otherwise
-
updateRMATax
Update rma tax for rma line- Parameters:
provider
-line
-- Returns:
- true if success, false otherwise
-
recalculateTax
Re-calculate rma tax for ram line (if line tax id change)- Parameters:
provider
-line
-newRecord
-- Returns:
- true if success, false otherwise
-
updateHeaderTax
Update rma header total- Parameters:
provider
-line
-- Returns:
- true if success, false otherwise
-
validateConnection
Validate connection to online tax calculation service.- Parameters:
provider
-pi
-- Returns:
- error message or null
- Throws:
Exception
-