Darstellung
SalesCustomerPrice
Tabelle: sales_customer_price
Domain: SalesCustomerPrice · com.reybex.domain.wws.sales
Modul: SAL
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 |
marktplace_id | bigint | Ja | — | Fremdschlüssel → marktplace |
customer_id | bigint | Ja | — | Fremdschlüssel → customer |
name | varchar(500) | Ja | — | Bezeichnung / Name (Domain: name) |
long_description | text collate utf8mb4_unicode_ci | Ja | — | Domain-Feld longDescription |
material_id | bigint | Ja | — | Fremdschlüssel → material |
unit_id | bigint | Ja | — | Fremdschlüssel → unit |
price_unit | double | Ja | 0 | Domain-Feld priceUnit |
currency_id | bigint | Ja | — | Fremdschlüssel → currency |
valid_from | datetime | Ja | — | Gültig ab (Domain: validFrom) |
valid_until | datetime | Ja | — | Gültig bis (Domain: validUntil) |
is_delete | smallint | Ja | 0 | Soft-Delete (0 = aktiv, 1 = gelöscht) |
customer_mat_code | varchar(50) | Ja | — | Domain-Feld customerMatCode |
customer_mat_name | varchar(100) | Ja | — | Domain-Feld customerMatName |
min_order_quantity | double | Ja | 0 | Domain-Feld minOrderQuantity |
max_order_quantity | double | Ja | 0 | Domain-Feld maxOrderQuantity |
is_released | smallint | Ja | 0 | Boolean: Released |
vat_key_id | bigint | Ja | — | Fremdschlüssel → vat key |
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) |
price | double | Ja | 0 | Domain-Feld price |
attribute_code | varchar(5000) | Ja | — | Domain-Feld attributeCode |
is_price_disabled | smallint | Ja | 0 | Boolean: Price Disabled |
use_disposal_fee_special_surcharge_calculation | smallint | Ja | — | use disposal fee special surcharge calculation |
customer_note1 | varchar(255) | Ja | — | Domain-Feld customerNote1 |
customer_note2 | varchar(255) | Ja | — | Domain-Feld customerNote2 |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
unit_id | ltt_unit (id) |
material_id | material (id) |
currency_id | ltt_currency (id) |
customer_id | customer (id) |
vat_key_id | ltt_vat_key (id) |
profit_center_id | ltt_profit_center (id) |
marktplace_id | ltt_marktplace (id) |