convert currency after subtracting in local currency
This commit is contained in:
parent
3973f0a4a6
commit
88e13182a5
1 changed files with 4 additions and 6 deletions
|
|
@ -30,12 +30,10 @@ select
|
|||
case
|
||||
when bt.line_amount_tax_inclusiveness = 'Inclusive'
|
||||
then
|
||||
(j.line_amount_local_curr::numeric * bt.exchange_rate_to_gbp)::numeric(
|
||||
18,
|
||||
4
|
||||
) - (j.tax_amount_local_curr::numeric * bt.exchange_rate_to_gbp)::numeric(
|
||||
18, 4
|
||||
)
|
||||
(
|
||||
(j.line_amount_local_curr::numeric - j.tax_amount_local_curr::numeric)
|
||||
* bt.exchange_rate_to_gbp
|
||||
)::numeric(18, 4)
|
||||
when bt.line_amount_tax_inclusiveness = 'Exclusive'
|
||||
then
|
||||
(j.line_amount_local_curr::numeric * bt.exchange_rate_to_gbp)::numeric(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue