Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 3

type_id type

1 Output tax
2 Input tax
3 Net tax position
4 Tax Payable
8 Tax Refundable
10 Balance Brought Forward

1 Output tax
2 Input tax
3 Net tax position
4 Tax Payable
8 Tax Refundable
10 Balance Brought Forward

1 Output tax
2 Input tax
3 Net tax position
4 Tax Payable
8 Tax Refundable
10 Balance Brought Forward
script
SELECT (SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=97 AND tax_return_id=tr.i
SELECT (SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=106 AND tax_return_id=tr
SELECT (( SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=97 AND tax_return_id=tr
SELECT (CASE WHEN ((SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=97 AND tax_
SELECT (CASE WHEN ((SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=106 AND tax
SELECT (CASE WHEN (SELECT TOP 1 cds.carry_forward_refund_balances FROM @schema.client_default_settings cds) = 1 THE

SELECT (SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3431 AND tax_return_id=t
SELECT (SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3439 AND tax_return_id=t
SELECT (( SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3431 AND tax_return_id
SELECT (CASE WHEN ((SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3431 AND t
SELECT (CASE WHEN ((SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3439 AND t
SELECT (CASE WHEN (SELECT TOP 1 cds.carry_forward_refund_balances FROM @schema.client_default_settings cds) = 1 THE

SELECT (SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3478 AND tax_return_id=t
SELECT (SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3486 AND tax_return_id=t
SELECT (( SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3478 AND tax_return_id
SELECT (CASE WHEN ((SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3478 AND t
SELECT (CASE WHEN ((SELECT TOP 1 submitted_value FROM @schema.vat_return_details WHERE return_box_id=3486 AND t
SELECT (CASE WHEN (SELECT TOP 1 cds.carry_forward_refund_balances FROM @schema.client_default_settings cds) = 1 THE
country_id return_type_id start_date end_date
78 1 NULL 31/12/2020
78 1 NULL 31/12/2020
78 1 NULL 31/12/2020
78 1 NULL 31/12/2020
78 1 NULL 31/12/2020
78 1 NULL 31/12/2020

78 1 1/1/2021 31/12/2021
78 1 1/1/2021 31/12/2021
78 1 1/1/2021 31/12/2021
78 1 1/1/2021 31/12/2021
78 1 1/1/2021 31/12/2021
78 1 1/1/2021 31/12/2021

78 1 1/1/2022 NULL
78 1 1/1/2022 NULL
78 1 1/1/2022 NULL
78 1 1/1/2022 NULL
78 1 1/1/2022 NULL
78 1 1/1/2022 NULL

You might also like