small comment

This commit is contained in:
Pablo Martin 2024-09-10 16:23:41 +02:00
parent 6136db8403
commit 8c96b96ee5

View file

@ -92,7 +92,7 @@ select
*/
(
(p.amount - (p.amount / (1 + vat.vat_rate)))
* vat.is_service_subject_to_vat::int
* vat.is_service_subject_to_vat::int -- Multiplying by this makes amount 0 if not taxable
)::decimal(19, 4) as tax_amount_in_txn_currency,
(
(p.amount - (p.amount / (1 + vat.vat_rate)))