Darstellung
AccountMapping
Tabelle: ltt_account_mapping
Domain: AccountMapping · 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) |
name | varchar(100) | Nein | — | Bezeichnung / Name (Domain: name) |
type | tinyint(1) | Nein | — | Purchase = 0, Sales = 1, Cash discount purchase - 2, Cash discount sales - 3 |
country_id | bigint | Ja | — | Fremdschlüssel → country |
vat_key_id | bigint | Ja | — | Fremdschlüssel → vat key |
material_id | bigint | Ja | — | Fremdschlüssel → material |
mat_group_id | bigint | Ja | — | Fremdschlüssel → mat group |
material_type_id | bigint | Ja | — | Fremdschlüssel → material type |
customer_group_id | bigint | Ja | — | Fremdschlüssel → customer group |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
target_account_id | bigint | Nein | — | Fremdschlüssel → target account |
is_eu | tinyint(1) | Ja | — | Boolean: Eu |
is_third_country | tinyint(1) | Ja | — | Boolean: Third Country |
is_third_party | tinyint(1) | Ja | — | Boolean: Third Party |
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 |
marktplace_id | bigint | Ja | — | Fremdschlüssel → marktplace |
discount_type_id | bigint | Ja | — | Fremdschlüssel → discount type |
sales_doc_type_id | bigint | Ja | — | Fremdschlüssel → sales doc type |
is_concern | smallint | Ja | 0 | Boolean: Concern |
service_type_id | bigint | Ja | — | Fremdschlüssel → service type |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
country_id | lt_country (id) |
target_account_id | account (id) |
marktplace_id | ltt_marktplace (id) |
discount_type_id | ltt_discount_type (id) |
sales_doc_type_id | ltt_sales_doc_type (id) |
service_type_id | ltt_service_type (id) |
tenant_id | company (tenant_id) |
vat_key_id | ltt_vat_key (id) |
material_id | material (id) |
mat_group_id | ltt_mat_group (id) |
material_type_id | ltt_material_type (id) |
customer_group_id | ltt_customer_group (id) |
customer_id | customer (id) |
profit_center_id | ltt_profit_center (id) |