Darstellung
FinOpenItem
Tabelle: fin_open_item
Domain: FinOpenItem · com.reybex.domain.wws.fin
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 | Ja | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
profit_center_id | bigint | Ja | — | Fremdschlüssel → profit center |
op_date | date | Ja | — | Domain-Feld opDate |
doc_date | date | Ja | — | Belegdatum |
post_date | date | Ja | — | Buchungsdatum |
paymcond_id | bigint | Ja | — | Fremdschlüssel → paymcond |
paym_type_id | bigint | Ja | — | Fremdschlüssel → paym type |
due_date | date | Ja | — | Domain-Feld dueDate |
dunning_date | date | Ja | — | Domain-Feld dunningDate |
fin_doc_type_id | bigint | Ja | — | Fremdschlüssel → fin doc type |
fin_doc_number | varchar(50) | Ja | — | Domain-Feld finDocNumber |
invoice_number | varchar(50) | Ja | — | Domain-Feld invoiceNumber |
sales_head_id | bigint | Ja | — | sales document |
verification_head_id | bigint | Ja | — | verification document |
postway | smallint | Ja | 0 | postway |
account_type_id | bigint | Ja | — | Fremdschlüssel → account type |
account_id | bigint | Ja | — | Fremdschlüssel → account |
offset_account_id | bigint | Ja | — | Personenkonto |
gl_account_type_id | bigint | Ja | — | Mitbuchkonto Typ H |
gl_account_id | bigint | Ja | — | Mitbuchkonto 1400 oder 1600 |
amount | decimal(20, 2) | Ja | 0.00 | amount |
open_amount | decimal(20, 2) | Ja | 0.00 | open amount |
currency_id | bigint | Ja | — | Fremdschlüssel → currency |
fc_amount | decimal(20, 2) | Ja | 0.00 | fc amount |
fc_open_amount | decimal(20, 2) | Ja | 0.00 | fc open amount |
fc_currency_id | bigint | Ja | — | Fremdschlüssel → fc currency |
fc_exchange_rate | decimal(20, 8) | Ja | 0.00000000 | fc exchange rate |
dunning_level_id | bigint | Ja | — | Fremdschlüssel → dunning level |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
op_text | text | Ja | — | Domain-Feld opText |
payment_type_id | bigint | Ja | — | Fremdschlüssel → payment type |
cash_disc_amount1 | decimal(20, 2) | Ja | — | cash disc amount1 |
cash_disc_date1 | date | Ja | — | Domain-Feld cashDiscDate1 |
cash_disc_amount2 | decimal(20, 2) | Ja | — | cash disc amount2 |
cash_disc_date2 | date | Ja | — | Domain-Feld cashDiscDate2 |
cash_disc_amount3 | decimal(20, 2) | Ja | — | cash disc amount3 |
cash_disc_date3 | date | Ja | — | Domain-Feld cashDiscDate3 |
lock_dunning | tinyint(1) | Ja | — | lock dunning |
is_canceled | smallint | Ja | 0 | Boolean: Canceled |
cancel_date | date | Ja | — | Domain-Feld cancelDate |
external_invoice_no | varchar(1000) | Ja | — | Domain-Feld externalInvoiceNo |
bank_transaction_id | bigint | Ja | — | Fremdschlüssel → bank transaction |
date_created | datetime | Ja | — | Anlagezeitpunkt |
created_by_id | bigint | Ja | — | Angelegt von (Benutzer-ID) |
last_updated | datetime | Ja | CURRENT_TIMESTAMP | Letzte Änderung |
updated_by_id | bigint | Ja | — | Geändert von (Benutzer-ID) |
description | varchar(1000) | Ja | — | Beschreibung (Domain: description) |
fin_period | int | Ja | 0 | Domain-Feld finPeriod |
fin_year | int | Ja | 0 | Domain-Feld finYear |
is_currency_difference | smallint | Ja | 0 | Boolean: Currency Difference |
internal_info | text | Ja | — | Domain-Feld internalInfo |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
customer_id | customer (id) |
fin_doc_type_id | ltt_fin_doc_type (id) |
dunning_level_id | ltt_dunning_level (id) |
tenant_id | company (tenant_id) |
gl_account_id | account (id) |
payment_type_id | ltt_payment_type (id) |
verification_head_id | verification_head (id) |
gl_account_type_id | ltt_account_type (id) |
bank_transaction_id | bank_transaction (id) |
account_type_id | ltt_account_type (id) |
account_id | account (id) |
currency_id | ltt_currency (id) |
fc_currency_id | ltt_currency (id) |
sales_head_id | sales_head (id) |
profit_center_id | ltt_profit_center (id) |
paymcond_id | ltt_paymcond (id) |
offset_account_id | account (id) |