app ledger¶
aeat app ledger add¶
Add one manual ledger transaction in the active profile
Paraméterek
- --date
Booked date (YYYY-MM-DD) Kapcsoló, kötelező.
- --amount
Transaction amount in the transaction currency (decimal, e.g. 1200.50). Kapcsoló, kötelező.
- --direction
Transaction direction (INCOMING / OUTGOING / INTERNAL_TRANSFER) Kapcsoló, kötelező.
- --description
Non-blank narrative Kapcsoló, kötelező.
- --value-date
Value date (YYYY-MM-DD) Kapcsoló, opcionális.
- --currency
Three-letter ISO 4217 currency code Kapcsoló, opcionális.
- --counterparty
Counterparty descriptor Kapcsoló, opcionális.
- --classification
Business classification (BUSINESS / PERSONAL / MIXED / …) Kapcsoló, opcionális.
- --business-pct
Business-use share from 0 to 1; only for MIXED rows. Omit for fully BUSINESS rows. Kapcsoló, opcionális.
- --category-id
Deductible-expense category id (expense transactions only; income needs no category) Kapcsoló, opcionális.
- --taxable-base
IVA-exclusive base amount Kapcsoló, opcionális.
- --iva-rate
Optional IVA rate as a decimal fraction Kapcsoló, opcionális.
- --iva-amount
Optional IVA amount on the row Kapcsoló, opcionális.
- --iva-category
Explicit IVA category override for this transaction (e.g. intra_community_supply, export_third_country_zero_rated, export_assimilated_zero_rated, domestic_not_subject) Kapcsoló, opcionális.
- --deduction-kind
Exact source of the input-IVA deduction (for example domestic_current). Required for the input cuota to be deducted; the taxonomy is not inferred. Kapcsoló, opcionális.
- --counterparty-country
Country where the counterparty is established (ISO 3166-1 alpha-2, e.g. US, DE). Establishment only; use –counterparty-identification-state for VAT identification. Kapcsoló, opcionális.
- --counterparty-identification-state
Member State whose VAT number the counterparty trades under (Ley 37/1992 art. 25 exempts on this, not on where it is established) Kapcsoló, opcionális.
- --recargo-amount
Recargo de equivalencia cuota charged on this sale to a recargo-regime retailer (LIVA art. 161); aggregated into the Modelo 303 recargo cuota by IVA rate tier Kapcsoló, opcionális.
- --irpf-category
IRPF-specific category key Kapcsoló, opcionális.
- --usage-ratio-id
Configured usage-ratio id, not arbitrary prose. Inspect the configured ratios and eligible categories before creating or assigning one; the row’s –category-id must already carry that ratio. Kapcsoló, opcionális.
- --prorrata-reference
IVA prorrata substrate reference Kapcsoló, opcionális.
- --art-104-tres-exclusion
Operator-declared LIVA art. 104.Tres denominator exclusion (foreign permanent establishment or non-habitual real-estate/financial operation); excludes the operation from both terms of the prorrata ratio. Kapcsoló, opcionális.
- --input-classification
Operator-declared LIVA art. 106 prorrata-especial per-input use classification (exclusively_deductible: deducted in full; exclusively_non_deductible: no deduction; common: deducted at the general prorrata percentage); meaningful only for input rows in a bucket under prorrata especial. Kapcsoló, opcionális.
- --sector
Differentiated-sector id (LIVA arts. 9.1.c / 101) to which this input belongs; it must match an already declared sector. Kapcsoló, opcionális.
- --purchase-invoice-evidence-id
Canonical purchase-invoice evidence id Kapcsoló, opcionális.
- --attachment-id
Supplementary attachment id (repeatable) Kapcsoló, opcionális.
- --notes
Operator notes stored with the transaction Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
- --idempotency-key
Stable key for this logical add: passing the same key again is a safe no-op, so retries do not duplicate the row. Omit it to append a deliberate duplicate. Kapcsoló, opcionális.
- --source-jurisdiction
Two-letter ISO 3166-1 alpha-2 country code identifying the regulatory source jurisdiction of the income or expense (e.g. ES for Spanish-source, FR for French-source). Required for IRNR scope and the Art. 93 LIRPF Beckham filter. Kapcsoló, opcionális.
aeat app ledger allocate¶
Record business/private proportionality for a ledger transaction
Paraméterek
- transaction_id
Ledger transaction id to allocate Argumentum, kötelező.
- --business-pct
Business-use share from 0 to 1 for MIXED/proportional rows; do not use ledger allocate for a fully BUSINESS row. Kapcsoló, kötelező.
- --category-id
Deductible-expense category id (expense transactions only; income needs no category) Kapcsoló, opcionális.
- --usage-ratio-id
Configured usage-ratio id, not arbitrary prose. Inspect the configured ratios and eligible categories before creating or assigning one; the row’s –category-id must already carry that ratio. Kapcsoló, opcionális.
- --prorrata-reference
IVA prorrata reference for IVA workflows Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger archive¶
Archive one ledger transaction in the active profile
Paraméterek
- transaction_id
Ledger transaction id to archive Argumentum, kötelező.
- --reason
Reason recorded in lifecycle history Kapcsoló, opcionális.
- --yes
Confirm archiving the ledger transaction Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger attach¶
Attach existing evidence to a ledger transaction.
Paraméterek
- transaction_id
Ledger transaction id to attach evidence to Argumentum, kötelező.
- --purchase-invoice-evidence-id
Existing purchase-invoice evidence id supporting the transaction. Kapcsoló, opcionális.
- --attachment-id
Secure attachment id to link to the transaction; repeat for multiple attachments Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger bienes-inversion declare¶
Declare one capital good tracked for IVA regularización.
Paraméterek
- identifier
Stable register identifier. Argumentum, kötelező.
- --description
Human description of the good. Kapcsoló, kötelező.
- --acquisition-year
Year the good was acquired. Kapcsoló, kötelező.
- --acquisition-ledger-id
Nincs leírás. Kapcsoló, kötelező.
- --cuota-soportada
Total input IVA borne on acquisition (positive). Kapcsoló, kötelező.
- --prorrata-inicial
Definitive deduction percentage of the acquisition year (0-100). Kapcsoló, kötelező.
- --kind
Regularisation window: mueble (4yr) or inmueble (9yr). Kapcsoló, kötelező.
- –art108-elegible / –no-art108-elegible
Whether the good qualifies as a bien de inversión under LIVA art. 108. Kapcsoló, opcionális.
- --sector
Nincs leírás. Kapcsoló, opcionális.
- --disposal-year
Optional art-110 disposal year. Kapcsoló, opcionális.
- --disposal-regime
Disposal regime (sujeta_no_exenta or exenta_o_no_sujeta); required with –disposal-year. Kapcsoló, opcionális.
aeat app ledger bienes-inversion list¶
List every tracked capital good on the active profile register.
aeat app ledger categories¶
List the category ids accepted by –category-id and –irpf-category
aeat app ledger check¶
Probe ledger transactions in the addressed profile (defaults to the active profile) and report anomaly rows aggregated across every period a transaction touches, plus any invoice link the invoice and transaction catalogues disagree about. Local-only; never contacts AEAT.
Paraméterek
- --bucket-id
Bucket id to probe (defaults to the active profile). Kapcsoló, opcionális.
- --period
Optional filing period as an AEAT token: 1T-4T (quarters), 0A (annual), 01-12 (months). Combine with –year to match ledger status. Kapcsoló, opcionális.
- --year
Filing year for –period (e.g. 2024). Kapcsoló, opcionális.
aeat app ledger classify¶
Classify one ledger transaction in the active profile
Paraméterek
- transaction_id
Ledger transaction id to classify Argumentum, opcionális.
- --classification
Business classification state for the transaction Kapcsoló, opcionális.
- --file
Path to a CSV file with columns transaction_id, classification[, category_id, business_pct, usage_ratio_id, taxable_base, iva_rate, iva_amount, iva_category, irpf_category]. Kapcsoló, opcionális.
- --business-pct
Business-use share from 0 to 1; required with –classification MIXED, rejected for any other classification, and omitted for fully BUSINESS rows Kapcsoló, opcionális.
- --category-id
Deductible-expense category id (expense transactions only; income needs no category) Kapcsoló, opcionális.
- --taxable-base
Taxable base amount Kapcsoló, opcionális.
- --iva-rate
IVA rate as a decimal, for example 0.21 Kapcsoló, opcionális.
- --iva-amount
IVA amount Kapcsoló, opcionális.
- --irpf-category
IRPF category id. Net-paid professional invoices use actividad_economica; net-paid rents use arrendamiento_local or arrendamiento_vivienda_afecto. Royalties and SGAE income are capital mobiliario under LIRPF art. 25.4 when the taxpayer is not the author, and actividad economica under LIRPF art. 27 when they are and carry on the activity. Consult the ledger category catalogue for all ids. Kapcsoló, opcionális.
- --m210-tipo-renta-code
Official two-digit Modelo 210 tipo-de-renta code. Kapcsoló, opcionális.
- --m210-gross-income-amount
Explicit gross income for the Modelo 210 source projection. Kapcsoló, opcionális.
- --m210-applicable-rate
Applicable Modelo 210 rate as a decimal fraction, for example 0.24. Kapcsoló, opcionális.
- --m210-payer-mode
One payer or the explicit code-35 multiple-payer exception. Kapcsoló, opcionális.
- --m210-payer-id
Stable payer identity for a single-payer Modelo 210 component. Kapcsoló, opcionális.
- --m210-asset-or-right-id
Stable property or right identity for the Modelo 210 renta. Kapcsoló, opcionális.
- --iva-category
Explicit IVA category override for this transaction (e.g. intra_community_supply, export_third_country_zero_rated, export_assimilated_zero_rated, domestic_not_subject) Kapcsoló, opcionális.
- --deduction-kind
Exact source of the input-IVA deduction (for example domestic_current). Required for the input cuota to be deducted; the taxonomy is not inferred. Kapcsoló, opcionális.
- --counterparty-country
Country where the counterparty is established (ISO 3166-1 alpha-2, e.g. US, DE). Establishment only; use –counterparty-identification-state for VAT identification. Kapcsoló, opcionális.
- --counterparty-identification-state
Member State whose VAT number the counterparty trades under (Ley 37/1992 art. 25 exempts on this, not on where it is established) Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
- --reaffirm
Reaffirm the classification of an already-classified transaction. Kapcsoló, opcionális.
- --llm
Ask the on-host local reader to classify the transaction; preview by default, persist with –apply. Kapcsoló, opcionális.
- --apply
Persist the LLM suggestion with llm: provenance instead of only previewing it. Kapcsoló, opcionális.
- --saturate
Saturate via LLM: also select the IVA category and derive the rate, base, and IVA amount. Kapcsoló, opcionális.
- --read-evidence
Read the transaction’s attached evidence on-host and feed it to the classifier. Kapcsoló, opcionális.
- --vision-model
Override the local Ollama vision model for an image/scanned-invoice read (e.g. qwen2.5vl:7b); defaults to the configured model. Kapcsoló, opcionális.
- --auto-split
Read the attached invoice and, when it is multi-component, split it into per-line base/IVA children; otherwise classify it in place (requires –read-evidence). Kapcsoló, opcionális.
- --reject
Record an explicit rejection of the LLM suggestion as an audit event, without classifying the row (cannot be combined with –apply). Kapcsoló, opcionális.
- --reason
Free-text reason recorded as the transaction notes and as the classification decision’s provenance reason (visible on ledger view), or with a –reject decision. Kapcsoló, opcionális.
aeat app ledger counterparty confirm¶
Confirm where a counterparty is established and which State VAT-identifies it.
Paraméterek
- tax_identifier
The counterparty’s tax identifier as printed on the document. Argumentum, kötelező.
- --scope
The IVA territory the counterparty is established in. Kapcsoló, opcionális.
- --identification-state
Member State that VAT-identifies the counterparty. A different fact from –scope: art. 25 exempts on this, not on where the party is established. Kapcsoló, opcionális.
- --country-code
Country the identifier is stated under, when it is not Spanish. Kapcsoló, opcionális.
- --note
What the answer rests on, in your own words. Recorded, never consulted. Kapcsoló, opcionális.
- --actor
Operator identifier recorded as having made the assertion. Kapcsoló, opcionális.
aeat app ledger counterparty view¶
Show what the VAT-identification ladder would answer for this counterparty based on what is confirmed so far.
Paraméterek
- tax_identifier
The counterparty’s tax identifier as printed on the document. Argumentum, kötelező.
- --country-code
Country the identifier is stated under, when it is not Spanish. Kapcsoló, opcionális.
- --evidenced-scope
Territory a document in hand places this party in. Supply it to ask what the ladder will answer for that document, which is the only way to see a disagreement with what you confirmed before a confirm refuses on it. Kapcsoló, opcionális.
aeat app ledger counterparty withdraw¶
Withdraw what was confirmed about a counterparty, stating the earlier answer was wrong.
Paraméterek
- tax_identifier
The counterparty’s tax identifier as printed on the document. Argumentum, kötelező.
- --country-code
Country the identifier is stated under, when it is not Spanish. Kapcsoló, opcionális.
aeat app ledger detach¶
Detach attachments from a ledger transaction without deleting their bytes.
Paraméterek
- transaction_id
Ledger transaction id (or an unambiguous prefix). Argumentum, kötelező.
- --attachment-id
Id of the attachment to detach; repeatable. Kapcsoló, opcionális.
- --actor
Actor recorded on the lifecycle event. Kapcsoló, opcionális.
aeat app ledger evidence add¶
Register purchase invoice evidence from a PDF or image
Paraméterek
- source_path
Path to the invoice PDF or image Argumentum, kötelező.
- --supplier
Supplier name Kapcsoló, opcionális.
- --invoice-number
Supplier invoice number Kapcsoló, opcionális.
- --invoice-date
Invoice issue date in ISO 8601 (YYYY-MM-DD), e.g. 2026-01-15. Kapcsoló, opcionális.
- --taxable-base
Invoice taxable base Kapcsoló, opcionális.
- --iva-rate
Applied IVA rate as a decimal Kapcsoló, opcionális.
- --iva-amount
Invoice IVA amount Kapcsoló, opcionális.
- --notes
Internal notes about the evidence Kapcsoló, opcionális.
- --idempotency-key
Your own key for this attachment. Repeating the command with the same key returns the record it already created instead of adding a second one, and refuses if the document behind the key changed. Without a key the command adds a new record every time, because the same file can legitimately be attached twice. Kapcsoló, opcionális.
aeat app ledger evidence attachment-queue¶
List Drive attachments awaiting invoice review.
aeat app ledger evidence attachment-view¶
Inspect stored attachment metadata and provenance.
Paraméterek
- attachment_id
Content-addressed attachment identifier. Argumentum, kötelező.
aeat app ledger evidence batch¶
Ingest every document in a directory (or each –file) into evidence and a reviewable draft, one typed result row per document.
Paraméterek
- directory
Directory whose files are ingested. Combine with or replace by repeated –file. Argumentum, opcionális.
- --kind
Invoice kind: issued (a customer owes you) or received (you owe a supplier) Kapcsoló, kötelező.
- --file
One document to ingest. Repeat once per document; combines with a directory. Kapcsoló, opcionális.
aeat app ledger evidence confirm¶
Re-extract evidence on-host and confirm it into a real catalogue Invoice.
Paraméterek
- --kind
Invoice kind: issued (a customer owes you) or received (you owe a supplier) Kapcsoló, kötelező.
- --evidence-id
Purchase invoice evidence record id to extract from. Kapcsoló, opcionális.
- --attachment-id
Linked attachment id to extract from (alternative to –evidence-id). Kapcsoló, opcionális.
- --counterparty-nif
Override the extracted supplier tax id. Kapcsoló, opcionális.
- --counterparty-name
Counterparty display name (no extraction heuristic yet; normally required). Kapcsoló, opcionális.
- --invoice-number
Override the extracted invoice number. Kapcsoló, opcionális.
- --invoice-date
Override the extracted invoice date (YYYY-MM-DD). Kapcsoló, opcionális.
- --taxable-base
Override the extracted taxable base. Kapcsoló, opcionális.
- --iva-rate
Override the extracted IVA rate (omit to keep the extracted value). Kapcsoló, opcionális.
- --country-code
Counterparty ISO 3166-1 alpha-2 country code. Required: it routes both informativas, so it is never assumed. Kapcsoló, kötelező.
- --currency
ISO-4217 currency code. Kapcsoló, opcionális.
- --operation-type
Modelo 349 clave for an entrega intracomunitaria. Required when the document states an intra-community supply: the category cannot say whether it followed an exempt importation. Kapcsoló, opcionális.
- --supply-nature
State whether the operation is a supply of goods or of services. The place-of-supply rules differ, so a document that does not say leaves the treatment unresolved. Kapcsoló, opcionális.
- --invoice-class
Declare the invoice class when the document does not state one. A rectificativa is read from the document where it names the invoice it corrects, so this is the override for documents that do not. Kapcsoló, opcionális.
- --rectifies
Number of the invoice this rectificativa corrects. Required by RD 1619/2012 art. 6.1.a.2 alongside its own series, and read from the document where one is named. Kapcsoló, opcionális.
- --series
Numbering series the invoice was issued in. RD 1619/2012 art. 6.1.a.2 obliges a rectificativa into its own series, so declaring that class needs one; read from the document where it states one. Kapcsoló, opcionális.
- --notes
Internal notes about the evidence Kapcsoló, opcionális.
- --resolve
Answer one blocking finding: <finding-id>=<choose|supply|attest>:<value-or-reason>. For choose, name the reading by its value or by the digest review showed. Repeat once per finding; there is no bulk flag. Kapcsoló, opcionális.
aeat app ledger evidence consent list¶
List every off-host dispatch and the artefacts derived from one.
aeat app ledger evidence extract¶
Read an invoice PDF’s fields on-host into a reviewable draft.
Paraméterek
- --evidence-id
Purchase invoice evidence record id to extract from. Kapcsoló, opcionális.
- --attachment-id
Linked attachment id to extract from (alternative to –evidence-id). Kapcsoló, opcionális.
- --off-host-provider
Send this document to a hosted model instead of reading it on-host. Kapcsoló, opcionális.
- --acknowledge-off-host
Acknowledge, for this one read, that the document leaves this machine. Kapcsoló, opcionális.
aeat app ledger evidence list¶
List registered purchase invoice evidence
aeat app ledger evidence pull¶
Fetch a Drive document link and store its bytes as encrypted evidence on a ledger row.
Paraméterek
- transaction_id
Ledger transaction id. Argumentum, kötelező.
- --source
Link source: gmail, google_drive, or url. Kapcsoló, kötelező.
- --reference
The document link reference. Kapcsoló, kötelező.
- --note
Optional note. Kapcsoló, opcionális.
- --actor
Operator label. Kapcsoló, opcionális.
aeat app ledger evidence pull-all¶
Bulk-fetch every PDF/image invoice in a Drive folder and store each as encrypted evidence, unlinked to any transaction.
Paraméterek
- --folder
Drive folder URL or bare folder id to bulk-fetch invoice PDFs/images from. Kapcsoló, kötelező.
- --note
Optional note recorded on every fetched attachment. Kapcsoló, opcionális.
aeat app ledger evidence remove¶
Delete purchase invoice evidence
Paraméterek
- evidence_id
Evidence id (exact match) Argumentum, kötelező.
- --yes
Confirm deleting the evidence Kapcsoló, opcionális.
aeat app ledger evidence review list¶
List pending extraction drafts awaiting human review.
Paraméterek
- --reason
Show only drafts blocked for this reason. Kapcsoló, opcionális.
- --finding
Show only drafts whose document failed this deterministic check. Kapcsoló, opcionális.
- --advisory
Show only drafts carrying this non-blocking advisory. These stop nothing, so they are otherwise met only by opening each document. Kapcsoló, opcionális.
- --blocking
Show only drafts that cannot be confirmed until a finding is answered. Kapcsoló, opcionális.
aeat app ledger evidence review view¶
Show every reviewable field of a pending draft, along with its blocking findings.
Paraméterek
- reference
Evidence or attachment reference the pending draft was read from. Argumentum, kötelező.
aeat app ledger evidence update¶
Update purchase invoice evidence details
Paraméterek
- evidence_id
Evidence id (exact match) Argumentum, kötelező.
- --supplier
Nincs leírás. Kapcsoló, opcionális.
- --invoice-number
Nincs leírás. Kapcsoló, opcionális.
- --invoice-date
Nincs leírás. Kapcsoló, opcionális.
- --taxable-base
Nincs leírás. Kapcsoló, opcionális.
- --iva-rate
Nincs leírás. Kapcsoló, opcionális.
- --iva-amount
Nincs leírás. Kapcsoló, opcionális.
- --notes
Nincs leírás. Kapcsoló, opcionális.
aeat app ledger evidence view¶
Show purchase invoice evidence
Paraméterek
- evidence_id
Evidence id (exact match) Argumentum, kötelező.
aeat app ledger exclude¶
Mark one reviewed ledger transaction as deliberately excluded from filing.
Paraméterek
- transaction_id
Ledger transaction id. Argumentum, kötelező.
- --reason
Optional note recording why the row is excluded. Kapcsoló, opcionális.
- --yes
Confirm the reviewed-excluded decision. Kapcsoló, opcionális.
- --actor
Operator label. Kapcsoló, opcionális.
aeat app ledger export¶
Export canonical ledger rows from the active profile
Paraméterek
- --output
Path to write the exported ledger file Kapcsoló, kötelező.
- --export-format
Export serialization format Kapcsoló, opcionális.
- --include-inactive
Include archived and stashed ledger transactions Kapcsoló, opcionális.
- --period
Filing period as an AEAT token: 1T-4T (quarters), 0A (annual), 01-12 (months). Combine with –year to choose the year. Kapcsoló, opcionális.
- --year
Filing year for –period (e.g. 2024). Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger history¶
Emit the chronological bucket-event chain for one ledger transaction id
Paraméterek
- transaction_id
Ledger transaction id (or unambiguous hex prefix) to inspect Argumentum, kötelező.
- --include-split-siblings
Expand the chain to include events for every split sibling that shares a split_group_id with this transaction Kapcsoló, opcionális.
aeat app ledger import¶
Import bank statements or records into the accounting ledger
Paraméterek
- --file
Path to the bank statement file or directory Kapcsoló, kötelező.
- --provider
Statement format provider. Kapcsoló, kötelező.
- --dry-run
Run the import in dry-run mode (without saving) Kapcsoló, opcionális.
- --verify
Verify entries after import Kapcsoló, opcionális.
- --verify-source
Original file used to verify imported rows. Kapcsoló, opcionális.
- --verbose
Show detailed information during import Kapcsoló, opcionális.
- --period
Filing period as an AEAT token: 1T-4T (quarters), 0A (annual), 01-12 (months). Combine with –year to choose the year. Kapcsoló, opcionális.
- --year
Filing year for –period (e.g. 2024). Kapcsoló, opcionális.
aeat app ledger inventory create¶
Create an inventory ledger for one activity and tax year
Paraméterek
- actividad_id
Economic activity identifier Argumentum, kötelező.
- --year
Tax year Kapcsoló, kötelező.
- --valuation-method
Valuation method (fifo or pmp) Kapcsoló, kötelező.
- --opening-stock
Opening stock value Kapcsoló, opcionális.
aeat app ledger inventory list¶
List inventory ledgers in the active profile
aeat app ledger inventory movement add¶
Add a purchase, sale, or adjustment movement to the ledger
Paraméterek
- --actividad-id
Economic activity identifier Kapcsoló, kötelező.
- --year
Tax year Kapcsoló, kötelező.
- --movement-id
Movement id within the ledger Kapcsoló, kötelező.
- --date
Movement date (YYYY-MM-DD) Kapcsoló, kötelező.
- --kind
Movement kind (opening, purchase, cogs or count) Kapcsoló, kötelező.
- --quantity
Movement quantity, positive or negative Kapcsoló, kötelező.
- --unit-cost
Unit cost for purchase movements Kapcsoló, opcionális.
- --taxable-base
Taxable base linked to the movement Kapcsoló, opcionális.
- --acquisition-cost-stdin
Read the complete acquisition-cost JSON object from stdin Kapcsoló, opcionális.
aeat app ledger inventory valuation preview¶
Preview closing stock and cost of sales
Paraméterek
- --actividad-id
Economic activity identifier Kapcsoló, kötelező.
- --year
Tax year Kapcsoló, kötelező.
aeat app ledger invoice add¶
Create a linkable reconciliation invoice in the catalogue.
Paraméterek
- --kind
Invoice kind: issued (a customer owes you) or received (you owe a supplier) Kapcsoló, kötelező.
- --counterparty-name
Nincs leírás. Kapcsoló, kötelező.
- --invoice-number
Nincs leírás. Kapcsoló, kötelező.
- --invoice-date
Invoice issue date in ISO 8601 (YYYY-MM-DD), e.g. 2026-01-15. Kapcsoló, kötelező.
- --taxable-base
Nincs leírás. Kapcsoló, kötelező.
- --country-code
Counterparty ISO 3166-1 alpha-2 country code. Required: it routes both informativas, so it is never assumed. Kapcsoló, kötelező.
- --iva-rate
Nincs leírás. Kapcsoló, opcionális.
- --currency
Nincs leírás. Kapcsoló, opcionális.
- --operation-type
M349 operation key: E supplies of goods, M supplies after an exempt import, H the same via a fiscal representative, A acquisitions of goods, T triangular supplies, S services supplied, I services acquired, R call-off-stock transfers, D call-off-stock returns, C call-off-stock substitutions Kapcsoló, opcionális.
- --operation-date
Date the entrega or prestacion took place (YYYY-MM-DD). This is the LIVA art. 75 devengo date that decides which period declares the cuota; without it the invoice date stands in for it. Kapcsoló, opcionális.
- --retention-rate
RIRPF art. 95.1 retención fraction withheld by the payer (0.15 for the general 15%, or 0.07 during the inicio-de-actividad window). Requires –retention-amount; a rate alone is refused. Kapcsoló, opcionális.
- --retention-amount
Amount of IRPF retención withheld by the payer, in euros. May be supplied alone, or alongside –retention-rate. Kapcsoló, opcionális.
- --invoice-class
Invoice class. A rectificativa also requires –rectifies-invoice-number naming the invoice it corrects. Kapcsoló, opcionális.
- --counterparty-nif
Nincs leírás. Kapcsoló, opcionális.
- --series
Invoice numbering series, when the issuer uses one. Kapcsoló, opcionális.
- --rectifies-invoice-number
Number of the invoice this rectificativa corrects. Kapcsoló, opcionális.
- --recargo
Recargo de equivalencia charged on top of the cuota (LIVA art. 161). It rides inside the invoice total, unlike a retencion. Kapcsoló, opcionális.
- --iva-category
IVA treatment of the operation. Required for a renta income calculation to ground it. Kapcsoló, opcionális.
- --notes
Nincs leírás. Kapcsoló, opcionális.
aeat app ledger invoice import¶
Bulk-create catalogue invoices from a CSV or XLSX file.
Paraméterek
- --file
Path to a CSV or XLSX file of invoice rows (counterparty_nif, counterparty_name, invoice_number, invoice_date, taxable_base, and optional iva_rate/retencion_amount/retencion_rate/currency/country_code/notes). A retencion_rate is accepted only beside its retencion_amount. Kapcsoló, kötelező.
- --kind
Invoice kind: issued (a customer owes you) or received (you owe a supplier) Kapcsoló, kötelező.
- --country
Counterparty country (ISO 3166-1 alpha-2) for the whole import. Required only when the file carries no country_code column; ignored for rows that state their own. It asserts this country for EVERY such row, so a book mixing domestic and foreign counterparties needs the column instead. Kapcsoló, opcionális.
aeat app ledger invoice list¶
List reconciliation catalogue invoices.
Paraméterek
- --kind
Invoice kind: issued (a customer owes you) or received (you owe a supplier) Kapcsoló, opcionális.
aeat app ledger invoice remove¶
Delete one reconciliation catalogue invoice.
Paraméterek
- invoice_id
Catalogue invoice id (or unambiguous prefix). Argumentum, kötelező.
- --yes
Confirm deleting the invoice Kapcsoló, opcionális.
aeat app ledger invoice update¶
Update business invoice details
Paraméterek
- invoice_id
Catalogue invoice id (or unambiguous prefix). Argumentum, kötelező.
- --counterparty-name
Nincs leírás. Kapcsoló, opcionális.
- --counterparty-country
Nincs leírás. Kapcsoló, opcionális.
- --notes
Nincs leírás. Kapcsoló, opcionális.
- --iva-category
IVA treatment of the operation. Required for a renta income calculation to ground it. Kapcsoló, opcionális.
- --operation-type
M349 operation key: E supplies of goods, M supplies after an exempt import, H the same via a fiscal representative, A acquisitions of goods, T triangular supplies, S services supplied, I services acquired, R call-off-stock transfers, D call-off-stock returns, C call-off-stock substitutions Kapcsoló, opcionális.
- --operation-date
Date the entrega or prestacion took place (YYYY-MM-DD). This is the LIVA art. 75 devengo date that decides which period declares the cuota; without it the invoice date stands in for it. Kapcsoló, opcionális.
- --retention-rate
RIRPF art. 95.1 retención fraction withheld by the payer (0.15 for the general 15%, or 0.07 during the inicio-de-actividad window). Requires –retention-amount; a rate alone is refused. Kapcsoló, opcionális.
- --retention-amount
Amount of IRPF retención withheld by the payer, in euros. May be supplied alone, or alongside –retention-rate. Kapcsoló, opcionális.
- --invoice-class
Invoice class. A rectificativa also requires –rectifies-invoice-number naming the invoice it corrects. Kapcsoló, opcionális.
- --series
Invoice numbering series, when the issuer uses one. Kapcsoló, opcionális.
- --rectifies-invoice-number
Number of the invoice this rectificativa corrects. Kapcsoló, opcionális.
aeat app ledger invoice view¶
Show one reconciliation catalogue invoice by id or unambiguous prefix.
Paraméterek
- invoice_id
Catalogue invoice id (or unambiguous prefix). Argumentum, kötelező.
aeat app ledger invoice wizard¶
Guided, non-interactive manual entry when extraction is unavailable.
Paraméterek
- --kind
Invoice kind: issued (a customer owes you) or received (you owe a supplier) Kapcsoló, kötelező.
- --counterparty-nif
Nincs leírás. Kapcsoló, kötelező.
- --counterparty-name
Nincs leírás. Kapcsoló, kötelező.
- --invoice-number
Nincs leírás. Kapcsoló, kötelező.
- --invoice-date
Invoice issue date in ISO 8601 (YYYY-MM-DD), e.g. 2026-01-15. Kapcsoló, kötelező.
- --taxable-base
Nincs leírás. Kapcsoló, kötelező.
- --country-code
Counterparty ISO 3166-1 alpha-2 country code. Required: it routes both informativas, so it is never assumed. Kapcsoló, kötelező.
- --iva-rate
Nincs leírás. Kapcsoló, opcionális.
- --currency
Nincs leírás. Kapcsoló, opcionális.
- --operation-type
M349 operation key: E supplies of goods, M supplies after an exempt import, H the same via a fiscal representative, A acquisitions of goods, T triangular supplies, S services supplied, I services acquired, R call-off-stock transfers, D call-off-stock returns, C call-off-stock substitutions Kapcsoló, opcionális.
- --operation-date
Date the entrega or prestacion took place (YYYY-MM-DD). This is the LIVA art. 75 devengo date that decides which period declares the cuota; without it the invoice date stands in for it. Kapcsoló, opcionális.
- --retention-rate
RIRPF art. 95.1 retención fraction withheld by the payer (0.15 for the general 15%, or 0.07 during the inicio-de-actividad window). Requires –retention-amount; a rate alone is refused. Kapcsoló, opcionális.
- --retention-amount
Amount of IRPF retención withheld by the payer, in euros. May be supplied alone, or alongside –retention-rate. Kapcsoló, opcionális.
- --invoice-class
Invoice class. A rectificativa also requires –rectifies-invoice-number naming the invoice it corrects. Kapcsoló, opcionális.
- --series
Invoice numbering series, when the issuer uses one. Kapcsoló, opcionális.
- --rectifies-invoice-number
Number of the invoice this rectificativa corrects. Kapcsoló, opcionális.
- --recargo
Recargo de equivalencia charged on top of the cuota (LIVA art. 161). It rides inside the invoice total, unlike a retencion. Kapcsoló, opcionális.
- --iva-category
IVA treatment of the operation. Required for a renta income calculation to ground it. Kapcsoló, opcionális.
- --notes
Nincs leírás. Kapcsoló, opcionális.
aeat app ledger link¶
Bind a ledger transaction to a reconciliation-catalogue invoice in one atomic call. Refuses cross-bucket links. Local-only; never contacts AEAT.
Paraméterek
- transaction_id
Ledger transaction id (SHA-256 or unambiguous prefix). Argumentum, kötelező.
- --invoice-id
Invoice id to bind bidirectionally to the transaction. Kapcsoló, kötelező.
- --by
Operator label recorded on bucket events. Kapcsoló, opcionális.
aeat app ledger list¶
List ledger transactions in the active profile
Paraméterek
- --filter
Filter rows by status, period (a bare AEAT token, e.g. period=1T) plus year (e.g. year=2026), classification, issue, import, direction (ingreso/gasto), or text. To filter by organisational group label use the separate –group option. Kapcsoló, opcionális.
- --period
Filing period as an AEAT token: 1T-4T (quarters), 0A (annual), 01-12 (months). Combine with –year to choose the year. Kapcsoló, opcionális.
- --year
Filing year for –period (e.g. 2024). Kapcsoló, opcionális.
- --limit
Maximum rows to show (default: all rows). Kapcsoló, opcionális.
- --offset
Skip this many rows before listing (default: 0). Kapcsoló, opcionális.
- --group
Show only rows in this group label. Kapcsoló, opcionális.
- --by-group
Section the listing by group label. Kapcsoló, opcionális.
- --sort-by
Sort the listed rows by this field (date, amount, description, created_at, modified_at, …). Kapcsoló, opcionális.
- --sort-order
Sort order: asc (ascending) or desc (descending). Kapcsoló, opcionális.
- --hide-llm-rejected
Hide rows whose most recent LLM suggestion was rejected (a reviewed-and-declined row drops out of the pending queue). Kapcsoló, opcionális.
aeat app ledger llm-diagnostics¶
Report existing LLM usage, cost, and classification-confidence metrics.
Paraméterek
- --since
Inclusive lower ISO date (YYYY-MM-DD) bound on usage records. Kapcsoló, opcionális.
- --until
Inclusive upper ISO date (YYYY-MM-DD) bound on usage records. Kapcsoló, opcionális.
- --low-confidence-below
Confidence floor below which a classification counts as low-confidence. Kapcsoló, opcionális.
aeat app ledger merge¶
Re-merge a complete cohort of split children into a fresh transaction
Paraméterek
- --child-id
One child id (or unambiguous prefix) to merge. Repeat for every sibling in the cohort; partial merges are refused. Kapcsoló, opcionális.
- --reason
Reason recorded in the bucket-event payload and lifecycle history Kapcsoló, opcionális.
- --yes
Confirm the merge (archives every child and the parent, persists a fresh content-addressed merged transaction) Kapcsoló, opcionális.
- --actor
Operator name recorded on the LEDGER_TRANSACTION_MERGED event Kapcsoló, opcionális.
aeat app ledger participation rebuild¶
Rebuild the participation index for the active bucket.
aeat app ledger preflight¶
Report missing ledger facts (category, taxable base, IVA amount/rate, currency, proportionality reference) for the active profile’s transactions in a given period. Local-only; never contacts AEAT.
Paraméterek
- --period
Filing period as an AEAT token: 1T-4T (quarters), 0A (annual), 01-12 (months). Combine with –year to choose the year. Kapcsoló, kötelező.
- --year
Filing year (e.g. 2024). Kapcsoló, kötelező.
aeat app ledger prorrata declare-sector¶
Declare one differentiated sector (LIVA arts. 9.1.c / 101): the operator’s art. 9.1.c partition, never inferred from the ledger.
Paraméterek
- --sector-id
Stable sector id the register entries and ledger rows reference. Kapcsoló, kötelező.
- --letra
LIVA art. 9.1.c letra (a/b/c/d) that makes this sector differentiated. Kapcsoló, kötelező.
- --activity-code
CNAE / IAE activity code grouped into this sector (repeatable, at least one). Kapcsoló, opcionális.
aeat app ledger prorrata elect-especial¶
Elect prorrata especial for an ejercicio (LIVA art. 103.Dos.1): per-input deduction routes by –input-classification on each ledger row.
Paraméterek
- --ejercicio
Filing year the election covers. Kapcsoló, kötelező.
- --percentage
Common-use deduction percentage 0-100 (LIVA art. 106.Uno regla 3.a / art. 104.Dos). Kapcsoló, kötelező.
- --evidence-reference
Operator-held evidence for an option exercised in this ejercicio; omit to record an explicit continuation of the regime already in force. Kapcsoló, opcionális.
- --provenance
LIVA art. 105 source of the provisional percentage. Kapcsoló, opcionális.
- --reference
AEAT authorisation (art. 105.Dos) or inicio proposal (art. 105.Tres) reference. Kapcsoló, opcionális.
- --sector
Differentiated-sector id this entry covers; omit for the whole-entity entry. Kapcsoló, opcionális.
aeat app ledger prorrata elect-general¶
Elect prorrata general for an ejercicio (LIVA art. 104): one deduction percentage applies to every deducible cuota.
Paraméterek
- --ejercicio
Filing year the election covers. Kapcsoló, kötelező.
- --percentage
Provisional deduction percentage 0-100 (LIVA art. 104.Uno + 105.Uno). Kapcsoló, kötelező.
- --provenance
LIVA art. 105 source of the provisional percentage. Kapcsoló, opcionális.
- --reference
AEAT authorisation (art. 105.Dos) or inicio proposal (art. 105.Tres) reference. Kapcsoló, opcionális.
- --sector
Differentiated-sector id this entry covers; omit for the whole-entity entry. Kapcsoló, opcionális.
aeat app ledger prorrata list¶
List every register entry and declared differentiated sector on the active profile.
aeat app ledger prorrata revoke-especial¶
Revoke prorrata especial for an ejercicio after a prior-year especial state (LIVA art. 103.Dos.1).
Paraméterek
- --ejercicio
Filing year the election covers. Kapcsoló, kötelező.
- --evidence-reference
Evidence reference for the current-period prorrata-especial option or revocation. Kapcsoló, kötelező.
- --percentage
Provisional deduction percentage 0-100 (LIVA art. 104.Uno + 105.Uno). Kapcsoló, kötelező.
- --provenance
LIVA art. 105 source of the provisional percentage. Kapcsoló, opcionális.
- --reference
AEAT authorisation (art. 105.Dos) or inicio proposal (art. 105.Tres) reference. Kapcsoló, opcionális.
- --sector
Differentiated-sector id this entry covers; omit for the whole-entity entry. Kapcsoló, opcionális.
aeat app ledger prorrata seed¶
Seed the ejercicio’s provisional prorrata from the prior year’s definitive percentage (LIVA art. 105.Uno), read from the stamped prior Modelo 303 settlement observation.
Paraméterek
- --ejercicio
Filing year whose provisional percentage is being seeded or settled. Kapcsoló, kötelező.
- --sector
Differentiated-sector id this entry covers; omit for the whole-entity entry. Kapcsoló, opcionális.
aeat app ledger prorrata seed-sector¶
Seed one differentiated sector’s provisional prorrata from that sector’s own prior-year definitive held in the register (LIVA arts. 101.Uno / 105.Uno).
Paraméterek
- --ejercicio
Filing year whose provisional percentage is being seeded or settled. Kapcsoló, kötelező.
- --sector-id
Stable sector id the register entries and ledger rows reference. Kapcsoló, kötelező.
aeat app ledger prorrata settle-sector¶
Settle one differentiated sector’s year-end definitive prorrata from that sector’s own annual operation volumes (LIVA art. 105.Cuatro).
Paraméterek
- --ejercicio
Filing year whose provisional percentage is being seeded or settled. Kapcsoló, kötelező.
- --sector-id
Stable sector id the register entries and ledger rows reference. Kapcsoló, kötelező.
- --con-derecho-volume
The sector’s annual volume of operations with a right to deduct (LIVA art. 104, art. 104.Tres exclusions already applied). Kapcsoló, kötelező.
- --sin-derecho-volume
The sector’s annual volume of operations with no right to deduct (LIVA art. 104, art. 104.Tres exclusions already applied). Kapcsoló, kötelező.
aeat app ledger ratios eligible¶
List categories that accept a specific ratio
Paraméterek
- --year
Filing year whose category profiles supply the statutory ratios. Defaults to the current year. Kapcsoló, opcionális.
- –output-language / –language
Output language for the response text (es, en, ca, hu). Kapcsoló, opcionális.
aeat app ledger ratios list¶
List category ratios in the active profile
Paraméterek
- --year
Filing year whose category profiles supply the statutory ratios. Defaults to the current year. Kapcsoló, opcionális.
- –output-language / –language
Output language for the response text (es, en, ca, hu). Kapcsoló, opcionális.
aeat app ledger ratios set¶
Set or replace the ratio for a category
Paraméterek
- --year
Filing year whose category profiles supply the statutory ratios. Defaults to the current year. Kapcsoló, opcionális.
- category
Spending category id (e.g. vehiculo_combustible) Argumentum, kötelező.
- ratio
Applicable ratio between 0 and 1 Argumentum, kötelező.
- –output-language / –language
Output language for the response text (es, en, ca, hu). Kapcsoló, opcionális.
aeat app ledger ratios unset¶
Remove the specific ratio for a category
Paraméterek
- category
Category id whose ratio you want to clear Argumentum, kötelező.
- –output-language / –language
Output language for the response text (es, en, ca, hu). Kapcsoló, opcionális.
aeat app ledger ratios validate¶
Validate ratios against eligible categories and bounds
Paraméterek
- –output-language / –language
Output language for the response text (es, en, ca, hu). Kapcsoló, opcionális.
aeat app ledger remove¶
Remove one ledger transaction from the active profile
Paraméterek
- transaction_id
Ledger transaction id to remove Argumentum, kötelező.
- --reason
Reason recorded in removal history Kapcsoló, opcionális.
- --dry-run
Report removal effects without deleting the ledger transaction Kapcsoló, opcionális.
- --yes
Confirm deletion of the ledger transaction Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger reset¶
Reset the active profile’s ledger catalogue
Paraméterek
- --reason
Reason recorded in reset history Kapcsoló, opcionális.
- --dry-run
Report reset effects without clearing the ledger catalogue Kapcsoló, opcionális.
- --yes
Confirm clearing the active ledger catalogue Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger restore¶
Restore one stashed or archived ledger transaction to active
Paraméterek
- transaction_id
Ledger transaction id to restore to active Argumentum, kötelező.
- --reason
Reason recorded in lifecycle history Kapcsoló, opcionális.
- --yes
Confirm restoring the ledger transaction to active Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger review¶
Interactive review and validation of ledger entries
Paraméterek
- record_id
Ledger transaction id (or unambiguous hex prefix) Argumentum, opcionális.
- --filter
Filter rows by status, period (a bare AEAT token, e.g. period=1T) plus year (e.g. year=2026), issue, import, classification, text, or direction Kapcsoló, opcionális.
- --verbose
Show detailed information during review Kapcsoló, opcionális.
aeat app ledger rule add¶
Add a classification rule that auto-classifies matching transactions.
Paraméterek
- --description-pattern
Regex pattern matched (case-insensitive) against transaction description. Kapcsoló, kötelező.
- --classification
Target classification for matching transactions. Kapcsoló, kötelező.
- --category-id
Optional spending category to apply. Kapcsoló, opcionális.
- --priority
Numeric priority; lower value is evaluated first (default 100). Kapcsoló, opcionális.
- --actor
Operator identifier recorded in the rule provenance. Kapcsoló, opcionális.
aeat app ledger rule apply¶
Apply stored classification rules to unclassified ACTIVE transactions.
Paraméterek
- --reaffirm
Also re-classify transactions that were manually classified. Kapcsoló, opcionális.
- --dry-run
Show what would be classified without persisting changes. Kapcsoló, opcionális.
- --actor
Operator identifier recorded in the rule provenance. Kapcsoló, opcionális.
aeat app ledger rule list¶
List stored classification rules ordered by priority.
aeat app ledger split¶
Redistribute one parent transaction into N child transactions whose amounts sum to the parent amount exactly
Paraméterek
- transaction_id
Parent transaction id (or unambiguous hex prefix) to split Argumentum, kötelező.
- --child-amount
One child amount as a non-negative magnitude in the parent’s currency. Repeat once per child; the count must match –child-description. Kapcsoló, opcionális.
- --child-description
One child narrative. Repeat once per child; the count must match –child-amount. Kapcsoló, opcionális.
- --llm
Propose an evidence-driven N-way split with the given LLM provider. Kapcsoló, opcionális.
- --apply
Persist the proposed –llm split (requires –yes); without it the proposal is previewed only. Kapcsoló, opcionális.
- --read-evidence
Read the transaction’s attached invoice on-host and feed it to the –llm split proposer. Kapcsoló, opcionális.
- --vision-model
Override the local Ollama vision model for an image/scanned-invoice read (e.g. qwen2.5vl:7b); defaults to the configured model. Kapcsoló, opcionális.
- --reason
Reason recorded in the bucket-event payload and lifecycle history Kapcsoló, opcionális.
- --yes
Confirm the split (transitions the parent to SPLIT and persists N child transactions) Kapcsoló, opcionális.
- --actor
Operator name recorded on the LEDGER_TRANSACTION_SPLIT event Kapcsoló, opcionális.
aeat app ledger stash¶
Stash one ledger transaction in the active profile
Paraméterek
- transaction_id
Ledger transaction id to stash Argumentum, kötelező.
- --reason
Reason recorded in lifecycle history Kapcsoló, opcionális.
- --yes
Confirm stashing the ledger transaction Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger status¶
Summarize ledger state and calculation readiness for the active profile
Paraméterek
- --period
Filing period as an AEAT token: 1T-4T (quarters), 0A (annual), 01-12 (months). Combine with –year to choose the year. Kapcsoló, opcionális.
- --year
Filing year for –period (e.g. 2024). Kapcsoló, opcionális.
aeat app ledger track¶
Show the event lineage for one ledger transaction
Paraméterek
- transaction_id
Ledger transaction id to inspect Argumentum, kötelező.
aeat app ledger update¶
Update one ledger transaction with full-replace field semantics
Paraméterek
- transaction_id
Ledger transaction id (or unambiguous hex prefix) to update Argumentum, kötelező.
- --date
New booked date (YYYY-MM-DD) Kapcsoló, opcionális.
- --value-date
New value date (YYYY-MM-DD) Kapcsoló, opcionális.
- --amount
New non-negative amount magnitude (full replace) Kapcsoló, opcionális.
- --direction
New transaction direction Kapcsoló, opcionális.
- --currency
New three-letter ISO 4217 currency code Kapcsoló, opcionális.
- --counterparty
New counterparty descriptor Kapcsoló, opcionális.
- --description
New narrative Kapcsoló, opcionális.
- --taxable-base
New IVA-exclusive base amount Kapcsoló, opcionális.
- --iva-rate
New IVA rate as a decimal fraction Kapcsoló, opcionális.
- --iva-amount
New IVA amount Kapcsoló, opcionális.
- --irpf-category
New IRPF-specific category key Kapcsoló, opcionális.
- --notes
New operator notes Kapcsoló, opcionális.
- --group
Assign an organisational group label (pass an empty string to clear). Kapcsoló, opcionális.
- --actor
Operator name recorded on the bucket event Kapcsoló, opcionális.
aeat app ledger view¶
View one ledger transaction in the active profile
Paraméterek
- transaction_id
Ledger transaction id (or unambiguous hex prefix) Argumentum, kötelező.