Darstellung
AssetDeprecation
Tabelle: asset_deprecation
Domain: AssetDeprecation · 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 |
post_date | date | Ja | — | Domain-Feld postDate |
original_post_date | date | Ja | — | Domain-Feld originalPostDate |
fin_year | int | Ja | — | Domain-Feld finYear |
fin_period | int | Ja | — | Domain-Feld finPeriod |
year | int | Ja | — | Domain-Feld year |
month | int | Ja | — | Domain-Feld month |
deprecation_type | smallint | Ja | 0 | deprecation type |
amount | decimal(20, 2) | Ja | — | Domain-Feld amount |
cumulative_amount | decimal(20, 2) | Ja | — | Domain-Feld cumulativeAmount |
rest_amount | decimal(20, 2) | Ja | — | Domain-Feld restAmount |
is_booked | smallint | Ja | 0 | Boolean: Booked |
fin_item_id | bigint | Ja | — | Fremdschlüssel → fin item |
asset_move_id | bigint | Ja | — | Fremdschlüssel → asset move |
is_delete | smallint | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
is_transfer | smallint | Ja | 0 | Boolean: Transfer |
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) |
fin_item_id | fin_item (id) |
asset_move_id | asset_move (id) |