Darstellung
TransactionAssignItem
Tabelle: transaction_assign_item
Domain: TransactionAssignItem · com.reybex.domain.banking
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) |
type | varchar(20) | Ja | — | type |
amount | decimal(15, 2) | Ja | 0.00 | amount |
open_amount | decimal(15, 2) | Ja | 0.00 | open amount |
cash_discount | decimal(15, 2) | Ja | 0.00 | cash discount |
fin_open_item_id | bigint | Ja | — | Fremdschlüssel → fin open item |
sales_head_id | bigint | Ja | — | Fremdschlüssel → sales head |
verification_head_id | bigint | Ja | — | Fremdschlüssel → verification head |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
account_id | bigint | Ja | — | Fremdschlüssel → account |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
cost_center_id | bigint | Ja | — | Fremdschlüssel → cost center |
currency_difference | decimal(15, 2) | Ja | 0.00 | currency difference |
fc_currency_difference | decimal(15, 2) | Ja | 0.00 | fc currency difference |
exchange_rate | decimal(30, 20) | Ja | 0.00000000000000000000 | exchange rate |
vat_key_id | bigint | Ja | — | Fremdschlüssel → vat key |
is_complete | smallint | Ja | 0 | Boolean: Complete |
is_created_from_table | smallint | Ja | 0 | Boolean: Created From Table |
is_created_from_split | smallint | Ja | 0 | Boolean: Created From Split |
bank_transaction_id | bigint | Ja | — | Fremdschlüssel → bank transaction |
is_amount_matched | smallint | Ja | 0 | Boolean: Amount Matched |
description | varchar(500) | Ja | — | Beschreibung (Domain: description) |
book_obligatory_tax | smallint | Ja | 0 | book obligatory tax |
payment_type_id | bigint | Ja | — | Fremdschlüssel → payment type |
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) |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
cost_center_id | cost_center (id) |
vat_key_id | ltt_vat_key (id) |
verification_head_id | verification_head (id) |
bank_transaction_id | bank_transaction (id) |
payment_type_id | ltt_payment_type (id) |
fin_open_item_id | fin_open_item (id) |
sales_head_id | sales_head (id) |
customer_id | customer (id) |
account_id | account (id) |
profit_center_id | ltt_profit_center (id) |