Darstellung
AssetMove
Tabelle: asset_move
Domain: AssetMove · 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) |
asset_id | bigint | Ja | — | Fremdschlüssel → asset |
date | date | Ja | — | Domain-Feld date |
fin_year | int | Ja | — | Domain-Feld finYear |
fin_period | int | Ja | — | Domain-Feld finPeriod |
amount | decimal(20, 2) | Ja | — | Domain-Feld amount |
description | varchar(1000) | Nein | — | Beschreibung (Domain: description) |
asset_move_type_id | bigint | Nein | — | Fremdschlüssel → asset move type |
is_sell | smallint | Ja | 0 | Boolean: Sell |
sales_doc_type_id | bigint | Ja | — | Fremdschlüssel → sales doc type |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
material_id | bigint | Ja | — | Fremdschlüssel → material |
quantity | decimal(20, 2) | Ja | — | Menge |
profit_loss | decimal(20, 2) | Ja | — | Domain-Feld profitLoss |
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) |
asset_id | asset (id) |
asset_move_type_id | lt_asset_move_type (id) |
sales_doc_type_id | ltt_sales_doc_type (id) |
customer_id | customer (id) |
material_id | material (id) |