Skip to content

SalesHeadDocRule ​

Tabelle: ltt_sales_head_doc_rule
Domain: SalesHeadDocRule · com.reybex.domain.wws.sales
Modul: SAL

Partner-Hinweise ​

  • Daten liegen mandantengetrennt – bei SELECT fast immer tenant_id = :mandant setzen (Spalte ggf. TenantId in ä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.

→ Beispiel-SQLs (BAS23)

Primärschlüssel ​

  • id

Spalten ​

SpalteSQL-TypNULLDefaultBeschreibung
idbigint auto_incrementJa—Primärschlüssel (Domain: id)
from_doc_type_idbigintJa—Fremdschlüssel → from doc type
to_doc_type_idbigintJa—Fremdschlüssel → to doc type
calculate_pricesmallintJa0calculate price
date_createddatetimeJa—Anlagezeitpunkt
last_updateddatetimeJaCURRENT_TIMESTAMPLetzte Änderung
created_by_idbigintJa—Angelegt von (Benutzer-ID)
updated_by_idbigintJa—Geändert von (Benutzer-ID)
tenant_idbigintNein—Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId)
unique_namevarchar(20)Ja—unique name
is_customer_specificsmallintJa0Boolean: Customer Specific
is_disabledsmallintJa0Boolean: Disabled
sort_orderintJa—sort order
search_vat_keysmallintJa0search vat key
force_to_update_warehousesmallintJa0force to update warehouse
split_document_per_itemsmallintJa0split document per item
resolve_bomsmallintJa0resolve bom
is_manually_closedsmallintJa0Boolean: Manually Closed
over_referenced_quantity_percentagedecimal(20, 2)Ja0.00over referenced quantity percentage
ignore_quantity_on_item_copysmallintJa0ignore quantity on item copy
reset_new_document_on_copysmallintJa0reset new document on copy
recalculate_disposal_feessmallintJa0recalculate disposal fees

Fremdschlüssel ​

Spalte(n)Referenz
from_doc_type_idltt_sales_doc_type (id)
to_doc_type_idltt_sales_doc_type (id)
tenant_idcompany (tenant_id)

Nur für reybex-Partner. Nicht für Endkunden bestimmt.