Darstellung
DiscountType
Tabelle: ltt_discount_type
Domain: DiscountType · com.reybex.domain.wws
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) |
source | smallint | Ja | 0 | 0=Einkauf,1=Verkauf |
name | varchar(50) | Ja | — | Bezeichnung / Name (Domain: name) |
code | varchar(50) | Ja | — | Code / Kurzkennzeichen (Domain: code) |
is_head_discount | tinyint(1) | Ja | — | Domain-Feld isHeadDiscount |
is_item_discount | tinyint(1) | Ja | — | Domain-Feld isItemDiscount |
amount_or_percentage | smallint | Ja | 0 | 0= amount, 1=percentage |
is_changeable | tinyint(1) | Ja | — | generate amnount or rate is changeable in document |
default_rate | double | Ja | 0 | default rate |
default_amount | double | Ja | 0 | default amount |
base_amount_type | smallint | Ja | 0 | 0=auf Netto, 1=Brutto |
account_id | bigint | Ja | — | Fremdschlüssel → account |
is_default | tinyint(1) | Ja | 0 | Boolean: Default |
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) |
unique_name | varchar(20) | Ja | — | unique name |
is_customer_specific | smallint | Ja | 0 | Boolean: Customer Specific |
is_shipping_cost | smallint | Ja | 0 | Boolean: Shipping Cost |
is_klarna_invoice_cost | smallint | Ja | 0 | Boolean: Klarna Invoice Cost |
is_gift_wrap_cost | smallint | Ja | 0 | Boolean: Gift Wrap Cost |
is_promotion_discount | smallint | Ja | 0 | Boolean: Promotion Discount |
is_cash_discount | smallint | Ja | 0 | Boolean: Cash Discount |
is_disposal_fee | smallint | Ja | 0 | Boolean: Disposal Fee |
is_rounding | smallint | Ja | 0 | Boolean: Rounding |
to_print | smallint | Ja | 1 | to print |
edi_type | varchar(5) | Ja | — | Domain-Feld ediType |
is_cash_on_delivery_cost | smallint | Ja | 0 | Boolean: Cash On Delivery Cost |
is_disabled | smallint | Ja | 0 | Boolean: Disabled |
sort_order | int | Ja | — | sort order |
purchase_default_rate | decimal(20, 8) | Ja | — | purchase default rate |
purchase_default_amount | decimal(20, 8) | Ja | — | purchase default amount |
is_hidden_in_cash_register | smallint | Ja | 0 | Boolean: Hidden In Cash Register |
is_voucher | smallint | Ja | 0 | Boolean: Voucher |
is_not_cash_discountable | smallint | Ja | 0 | Boolean: Not Cash Discountable |
dont_calculate_in_provision | smallint | Ja | 0 | dont calculate in provision |
is_not_transferable_to_credit_note | smallint | Ja | 0 | Boolean: Not Transferable To Credit Note |
is_bonus | tinyint(1) | Ja | 0 | Boolean: Bonus |
dont_import_into_pur_item | smallint | Ja | 0 | dont import into pur item |
Fremdschlüssel
| Spalte(n) | Referenz |
|---|---|
tenant_id | company (tenant_id) |
account_id | account (id) |