Darstellung
FinPostStockItem
Tabelle: fin_post_stock_item
Domain: FinPostStockItem · 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 | Nein | — | Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId) |
fin_post_stock_id | bigint | Ja | — | Fremdschlüssel → fin post stock |
account_id | bigint | Ja | — | Fremdschlüssel → account |
gl_account_id | bigint | Ja | — | Fremdschlüssel → gl account |
stock_post_price_type | varchar(50) | Ja | 'purPrice' | stock post price type |
use_customer | smallint | Ja | 0 | use customer |
postway | smallint | Ja | 0 | postway |
add_vat_key | smallint | Ja | 0 | add vat key |
add_sales_vat_key | smallint | Ja | 0 | add sales vat key |
is_check_customer_country | smallint | Ja | 0 | Boolean: Check Customer Country |
customer_country_type | smallint | Ja | 0 | customer country type |
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) |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
fin_post_stock_id | fin_post_stock (id) |
account_id | account (id) |
gl_account_id | account (id) |