Channex Taxes v0.2.3 Taxes.Calculator View Source
Module with logic to calculate taxes based at Taxes tree
Link to this section Summary
Functions
Method to calculate taxes based at payload
and type of taxes
Method to calculate tax values
Method to calculate tax amounts
Method to get Net price from raw_price
by exclude inclusive taxes
Method to set total price into payload
Link to this section Functions
Link to this function
calculate_taxes(payload, arg2)
View Sourcecalculate_taxes(Taxes.Types.payload(), :atom) :: Taxes.Types.payload()
Method to calculate taxes based at payload
and type of taxes
Link to this function
calculate_taxes(taxes, price, acc, payload)
View Sourcecalculate_taxes(map(), float(), list(), Taxes.Types.payload()) :: list()
Method to calculate tax values
Link to this function
get_tax_amounts(taxes, acc, payload)
View Sourceget_tax_amounts(map(), map(), Taxes.Types.payload()) :: map()
Method to calculate tax amounts
Link to this function
set_net_price(payload)
View Sourceset_net_price(Taxes.Types.payload()) :: Taxes.Types.payload()
Method to get Net price from raw_price
by exclude inclusive taxes
Link to this function
set_total_price(payload)
View Sourceset_total_price(Taxes.Types.payload()) :: Taxes.Types.payload()
Method to set total price into payload