tax_declarations
In short
Tax declarations sent from Pennylane. This table includes the tax declarations created in Pennylane, such as CVAE, corporate tax, VAT, tax returns, and DECLOYER.
Tax Declarations include all tax declarations created in Pennylane such as CVAE, IS, VAT, Tax return, DECLOYER. Currently these declarations are generated by accounting users and sent to the tax administration via Télédec.
Filter key(s)
company_id
declaration_period_start_at
Sorting key
ClickHouse skips blocks only when the filter starts with this key, in this order. When the first column is `company_id`, put `company_id` in every query. Read a fleet one company at a time, or in batches of `company_id`. Do not run one query with no company filter. List only the columns you need. `SELECT *` reads columns you will not use.
company_id, id
Available columns
id
Int64
Unique ID of the fiscal déclarations on Pennylane.
company_id
Int64
Unique ID of the company on Pennylane, referring to companies.id.
company_name
String
Company's display name on Pennylane.
declaration_type
LowCardinality(Nullable(String))
Type of the declaration:
- TVA
- DAS2
- IS
- CVAE
- RCM
- Liasse
form
Nullable(String)
Form number of the declaration.
declaration_id
Nullable(Int64)
ID of the declaration on Télédec.
declaration_period_start_at
Nullable(Date)
Start date of the declaration period.
declaration_period_end_at
Nullable(Date)
End date of the declaration period.
declaration_status
LowCardinality(Nullable(String))
Status of the declaration. Possible values:
- created
- sent
- accepted
- rejected
- error
is_declaration_validated
Nullable(Bool)
true if the declaration is validated, "false" otherwise.
is_payment_validated
Nullable(Bool)
true if the payment is validated, "false" otherwise.
payment_amount
Nullable(Decimal(15, 2))
Amount of the payment displayed on the tax declaration.
reason_for_rejection
Nullable(String)
When the declaration status is in error, reason provided by Télédec for the rejection of the declaration.
direction
LowCardinality(Nullable(String))
Direction of the declaration.
rof
Nullable(String)
Tax office reference (ROF) of the declaration.
reg_no
Nullable(String)
Company registration number (SIREN) on the declaration.
deadline_on
Nullable(Date)
Filing deadline of the tax declaration.
reference
Nullable(Int64)
Reference of the declaration.
dgfip_process_number
Nullable(String)
Process number assigned by the tax authority.
dgfip_reference
Nullable(String)
Reference assigned by the tax authority.
dgfip_declared_at
Nullable(DateTime64(6, 'UTC'))
Time the declaration was sent to the tax authority.
status_label
Nullable(String)
Label of the declaration status.
teledec_login
Nullable(String)
Teledec login used to file the declaration.
error_code
Nullable(String)
Error code returned when the declaration failed.
owner_id
Nullable(Int64)
Identifier of the user who owns the declaration.
pennylane_reference
Nullable(String)
Pennylane reference of the declaration.
forms_status
Nullable(String)
Status of the declaration forms.
created_at
DateTime64(6, 'UTC')
Creation date of the declaration within Pennylane.
updated_at
DateTime64(6, 'UTC')
Last update date of the document associated with the bookkeeping entry.
synchronized_at
DateTime64(6, 'UTC')
Timestamp of the last time this row version was written in ClickHouse.