Darstellung
PurPrice
Tabelle: pur_price
Domain: PurPrice · com.reybex.domain.wws.purchase
Modul: PUR
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) |
vendor_id | bigint | Nein | — | Fremdschlüssel → vendor |
material_id | bigint | Nein | — | Fremdschlüssel → material |
valid_from | datetime | Nein | — | Gültig ab (Domain: validFrom) |
valid_until | datetime | Nein | — | Gültig bis (Domain: validUntil) |
name | varchar(300) | Nein | — | Bezeichnung / Name (Domain: name) |
description | text | Ja | — | Beschreibung (Domain: description) |
vendor_mat_code | varchar(150) | Ja | — | Domain-Feld vendorMatCode |
vendor_mat_name | varchar(150) | Ja | — | Domain-Feld vendorMatName |
vendor_mat_description | text | Ja | — | Domain-Feld vendorMatDescription |
currency_id | bigint | Ja | — | Fremdschlüssel → currency |
price | decimal(20, 8) | Ja | 0.00000000 | Domain-Feld price |
price_unit | double | Ja | 0 | Domain-Feld priceUnit |
bonus | decimal(20, 8) | Ja | 0.00000000 | Domain-Feld bonus |
unit_id | bigint | Nein | — | Fremdschlüssel → unit |
min_order_quantity | decimal(20, 8) | Ja | 0.00000000 | Domain-Feld minOrderQuantity |
max_order_quantity | decimal(20, 8) | Ja | 0.00000000 | Domain-Feld maxOrderQuantity |
cost_center_id | bigint | Ja | — | Fremdschlüssel → cost center |
pur_department_id | bigint | Ja | — | Fremdschlüssel → pur department |
is_delete | tinyint(1) | Ja | — | Soft-Delete (0 = aktiv, 1 = gelöscht) |
is_released | tinyint(1) | Ja | — | Boolean: Released |
delivery_days | int | Ja | 0 | Domain-Feld deliveryDays |
vat_key_id | bigint | Ja | — | Fremdschlüssel → vat key |
is_standard_vendor | tinyint(1) | Ja | — | Domain-Feld isStandardVendor |
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) |
discount | decimal(3) | Ja | 0 | discount |
type | smallint | Ja | 0 | type |
lower_delivery_tolerance | decimal(20, 2) | Ja | — | Domain-Feld lowerDeliveryTolerance |
upper_delivery_tolerance | decimal(20, 2) | Ja | — | Domain-Feld upperDeliveryTolerance |
is_delivery_tolerance_ignored | smallint | Ja | 0 | Boolean: Delivery Tolerance Ignored |
attribute_code | varchar(5000) collate utf8mb4_general_ci | Ja | — | attribute code |
pur_account_id | bigint | Ja | — | Fremdschlüssel → pur account |
pur_cost_center_id | bigint | Ja | — | Fremdschlüssel → pur cost center |
distributor_id | bigint | Ja | — | Fremdschlüssel → distributor |
custom_fields | text collate utf8mb4_general_ci | Ja | — | Domain-Feld customFields |
is_master | smallint | Ja | 0 | Boolean: Master |
bulk_insert_id | varchar(50) | Ja | — | Domain-Feld bulkInsertId |
custom_costs | decimal(20, 8) | Ja | — | Domain-Feld customCosts |
production_time | smallint | Ja | 0 | Domain-Feld productionTime |
loading_time | smallint | Ja | 0 | loading time |
cargo_time | smallint | Ja | 0 | cargo time |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
distributor_id | customer (id) |
pur_account_id | account (id) |
pur_cost_center_id | cost_center (id) |
tenant_id | company (tenant_id) |
cost_center_id | cost_center (id) |
vendor_id | customer (id) |
currency_id | ltt_currency (id) |
unit_id | ltt_unit (id) |
currency_id | ltt_currency (id) |
pur_department_id | ltt_pur_department (id) |
vat_key_id | ltt_vat_key (id) |
material_id | material (id) |