Darstellung
VatKeyRule
Tabelle: ltt_vat_key_rule
Domain: VatKeyRule · com.reybex.domain.wws
Modul: FIN
Partner-Hinweise
- Daten liegen mandantengetrennt – bei SELECT fast immer
tenant_id = :mandantsetzen (Spalte ggf.TenantIdin älteren Tabellen). - Schreibende SQL (
INSERT/UPDATE/DELETE) nur in abgestimmten Export-/Report-Jobs (Transaktion BAS23) und nie ohne Freigabe durch reybex. - Für API-Integrationen bevorzugt die API statt direkter DB-Zugriffe.
Primärschlüssel
id
Spalten
| Spalte | SQL-Typ | NULL | Default | Beschreibung |
|---|---|---|---|---|
id | bigint auto_increment | Ja | — | Primärschlüssel (Domain: id) |
tenant_id | bigint | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
vat_key_id | bigint | Ja | — | Fremdschlüssel → vat key |
reduced_vat_key_id | bigint | Ja | — | Fremdschlüssel → reduced vat key |
country_id | bigint | Ja | — | Fremdschlüssel → country |
origin_country_id | bigint | Ja | — | Fremdschlüssel → origin country |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
date_created | datetime | Ja | — | Anlagezeitpunkt |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
is_eu | smallint | Ja | 0 | Boolean: Eu |
is_third_party | smallint | Ja | 0 | Boolean: Third Party |
ustdid_vat_key_id | bigint | Ja | — | Fremdschlüssel → ustdid vat key |
check_ustdid_remotely | smallint | Ja | 0 | check ustdid remotely |
valid_from | datetime | Ja | — | Gültig ab (Domain: validFrom) |
material_id | bigint | Ja | — | Fremdschlüssel → material |
mat_group_id | bigint | Ja | — | Fremdschlüssel → mat group |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
marktplace_id | bigint | Ja | — | Fremdschlüssel → marktplace |
amount | decimal(20, 2) | Ja | 0.00 | Domain-Feld amount |
is_smaller | smallint | Ja | 0 | Boolean: Smaller |
currency_id | bigint | Ja | — | Fremdschlüssel → currency |
zero_vat_key_id | bigint | Ja | — | Fremdschlüssel → zero vat key |
sales_doc_type_id | bigint | Ja | — | Fremdschlüssel → sales doc type |
book_obligatory_tax | smallint | Ja | 0 | book obligatory tax |
is_purchase | smallint | Ja | 0 | Boolean: Purchase |
verification_doc_type_id | bigint | Ja | — | Fremdschlüssel → verification doc type |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
vat_key_id | ltt_vat_key (id) |
zero_vat_key_id | ltt_vat_key (id) |
sales_doc_type_id | ltt_sales_doc_type (id) |
verification_doc_type_id | ltt_verification_doc_type (id) |
tenant_id | company (tenant_id) |
country_id | lt_country (id) |
reduced_vat_key_id | ltt_vat_key (id) |
origin_country_id | lt_country (id) |
ustdid_vat_key_id | ltt_vat_key (id) |