As per the recommendation put forth by @becht_robert, I expanded on it by doing the following:
I set up three accounts, which I named numerically (for ease in searching):
- For tracking VAT or “IVA” as an Asset account: 01050
- For tracking IDP or Petroleum Distribution Tax as an Expense Account: 0625
- For tracking the intermediate calculations as an Asset Account: 0901
Then the tax template is set up as follows:
ROW #1
Purpose: This row is where you input the gallons of fuel, to enable a calculation to be made with the number entered.
Consider Tax or Charge for: Valuation
Add or Deduct: Add
Type: Actual
Reference Row#:
Account Head: 0901
Cost Center: -
Description: U.S. Gallons
Rate: (U.S. Gallons entered above the Purchase Receipt or Purchase Invoice as a Quantity)
ROW #2
This row corrects the entry above to net the entry to 0 (zero). This row will not be used further.
Consider Tax or Charge for: Valuation
Add or Deduct: Add
Type: On Previous Row Amount
Reference Row#: 1
Account Head: 0901
Cost Center: -
Description: Correcting Row #1
Rate: -100
ROW #3
This row estimates the Tax to be calculated, using row #1 as reference. This row also considers deducting the tax from the total, so that this new total with the tax amount calculated here already deducted, can serve to estimate the VAT, as per this particular example. For premium Gasoline, a tax of Q4.70 per gallon has to be levied
Consider Tax or Charge for: Total
Add or Deduct: Deduct
Type: On Previous Row Amount
Reference Row#: 1
Account Head: 0625
Cost Center: -
Description: Petroleum Distribution Tax Value
Rate: 470
ROW #4
This row simply calculates the net value without VAT of the total remainder from row#3, after removing the petroleum tax. Since VAT = 12% and is included, the rate here is 1/1.12 or 89.2857. This value is now available to refer to in the following rows.
Consider Tax or Charge for: Valuation
Add or Deduct: Add
Type: On Previous Row Total
Reference Row#: 3
Account Head: 0901
Cost Center: -
Description: Value without tax for Premium Gasoline
Rate: 89.2857
ROW #5
Correction for the calculation made on row #4 above
Consider Tax or Charge for: Valuation
Add or Deduct: Add
Type: On Previous Row Amount
Reference Row#: 4
Account Head: 0901
Cost Center: -
Description: Correcting Row #4
Rate: -100
ROW #6
This row deducts the value of the VAT from the Total
Consider Tax or Charge for: Total
Add or Deduct: Deduct
Type: On Previous Row Amount
Reference Row#: 4
Account Head: 01050
Cost Center: -
Description: VAT 12%
Rate: 12
ROW #7
This row adds back the VAT tax to the tally for the purchase invoice.
Consider Tax or Charge for: Total
Add or Deduct: Add
Type: On Previous Row Amount
Reference Row#: 6
Account Head: 0901
Cost Center: -
Description: Adding back VAT, not affecting tax accounts.
Rate: 100
ROW #8
This row adds back the Petroleum Tax to the tally for the purchase invoice
Consider Tax or Charge for: Total
Add or Deduct: Add
Type: On Previous Row Amount
Reference Row#: 3
Account Head: 0901
Cost Center: -
Description: Adding Back Petroleum Tax
Rate: 100
The result from all of this is that only ONE additional data entry must be done with a Fuel Invoice. The Gallons in Tax Row 1, and then it calculates everything on its own. It isn’t by any means “elegant”, but the benefit is that one can leave this template preassembled, and those who enter the transactions just have to select the correct tax template for a new transaction, or simply duplicate an existing transaction.
@sofia, check it out and let me know if this works and if something is missing to net everything to zero.