Skip to content

PurItem ​

Tabelle: pur_item
Domain: PurItem · com.reybex.domain.wws.purchase
Modul: PUR

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)
tenant_idbigintJa—Mandanten-ID (Multi-Tenant – in Abfragen fast immer filtern) (Domain: tenantId)
pur_head_idbigintJa—Fremdschlüssel → pur head
reference_pur_item_idbigintJa—for example is referenced from Anfrage
item_numberintJa0Domain-Feld itemNumber
material_idbigintJa—Fremdschlüssel → material
namevarchar(200)Ja—Bezeichnung / Name (Domain: name)
long_descriptiontext collate utf8mb4_unicode_ciJa—Domain-Feld longDescription
short_descriptiontextJa—Domain-Feld shortDescription
quantitydecimal(20, 8)Ja0.00000000Menge
delivery_datedateJa—Domain-Feld deliveryDate
expiry_datedateJa—Domain-Feld expiryDate
pricedecimal(20, 8)Ja0.00000000price
price_unitdecimal(20, 8)Ja0.00000000price unit
bonusdecimal(20, 8)Ja0.00000000Domain-Feld bonus
unit_idbigintJa—Fremdschlüssel → unit
warehouse_idbigintJa—Fremdschlüssel → warehouse
stockplace_idbigintJa—Fremdschlüssel → stockplace
specialstock_idbigintJa—Fremdschlüssel → specialstock
batchnumvarchar(50)Ja—Domain-Feld batchnum
variantvarchar(100)Ja—Domain-Feld variant
vendor_mat_codevarchar(150)Ja—Domain-Feld vendorMatCode
vendor_mat_namevarchar(150)Ja—Domain-Feld vendorMatName
vendor_mat_descriptionvarchar(100)Ja—Domain-Feld vendorMatDescription
delivery_statusintJa00=offen, 1=teilweise gelief., 2=komplett, 3=überliefert
delivered_quantitydecimal(20, 8)Ja0.00000000Domain-Feld deliveredQuantity
is_completed_manuallysmallintJa0manuell die Bestellung abschließen
pur_overdraft_status_idbigintJa—Fremdschlüssel → pur overdraft status
invoice_statusintJa0Domain-Feld invoiceStatus
invoiced_quantitydecimal(20, 8)Ja0.00000000invoiced quantity
drop_shipping_sal_item_idbigintJa—if drop Shipping from sales module, here is the sales document item id
vat_key_idbigintJa—Fremdschlüssel → vat key
total_amountdecimal(20, 8)Ja0.00000000total amount
total_discount_amountdecimal(20, 8)Ja0.00000000total discount amount
nett_amountdecimal(20, 8)Ja0.00000000nett amount
vat_amountdecimal(20, 8)Ja0.00000000vat amount
gross_amountdecimal(20, 8)Ja0.00000000gross amount
cost_center_idbigintJa—Fremdschlüssel → cost center
sal_item_requirements_idbigintJa—Fremdschlüssel → sal item requirements
prod_order_component_requirements_idbigintJa—Fremdschlüssel → prod order component requirements
internal_order_numbervarchar(25)Ja—Domain-Feld internalOrderNumber
internal_order_itemvarchar(25)Ja—Domain-Feld internalOrderItem
vendor_order_numbervarchar(200)Ja—Domain-Feld vendorOrderNumber
date_createddatetimeJa—Anlagezeitpunkt
last_updateddatetimeJaCURRENT_TIMESTAMPLetzte Änderung
created_by_idbigintJa—Angelegt von (Benutzer-ID)
updated_by_idbigintJa—Geändert von (Benutzer-ID)
item_codevarchar(100)Ja—Domain-Feld itemCode
positionintJa0Domain-Feld position
ref_item_idbigintJa—Fremdschlüssel → ref item
is_deletesmallintJa0Soft-Delete (0 = aktiv, 1 = gelöscht)
volumedecimal(30, 8)Ja0.00000000volume
widthdecimal(30, 8)Ja0.00000000width
depthdecimal(30, 8)Ja0.00000000depth
heightdecimal(30, 8)Ja0.00000000height
lengthdecimal(30, 8)Ja0.00000000length
proposal_idbigintJa—Fremdschlüssel → proposal
confirmed_delivery_datedatetimeJa—Domain-Feld confirmedDeliveryDate
image_to_vendor_datedatetimeJa—Domain-Feld imageToVendorDate
image_to_sales_datedatetimeJa—Domain-Feld imageToSalesDate
image_to_release_datedatetimeJa—Domain-Feld imageToReleaseDate
is_image_assigned_to_vendorsmallintJa0Boolean: Image Assigned To Vendor
is_image_assigned_to_salessmallintJa0Boolean: Image Assigned To Sales
is_image_releasedsmallintJa0Boolean: Image Released
ref_open_quantitydecimal(20, 8)Ja0.00000000ref open quantity
is_third_partysmallintJa0Boolean: Third Party
dun_levelintJa0dun level
last_dun_datedateJa—Domain-Feld lastDunDate
remind_levelintJa0remind level
last_remind_datedateJa—Domain-Feld lastRemindDate
confirmation_remind_levelintJa0confirmation remind level
last_confirmation_remind_datedateJa—Domain-Feld lastConfirmationRemindDate
warehouse_unit_idbigintJa—Fremdschlüssel → warehouse unit
warehouse_unit_quantitydecimal(30, 8)Ja0.00000000warehouse unit quantity
warehouse_unit_exchange_ratiodecimal(40, 8)Ja1.00000000warehouse unit exchange ratio
individual_datedatetimeJa—Domain-Feld individualDate
customer_order_numbervarchar(100)Ja—Domain-Feld customerOrderNumber
container_numbervarchar(100)Ja—Domain-Feld containerNumber
variant_codevarchar(1000)Ja—Domain-Feld variantCode
is_virtual_materialsmallintJa0Boolean: Virtual Material
is_verification_manually_closedsmallintJa0Boolean: Verification Manually Closed
attribute_codevarchar(5000) collate utf8mb4_general_ciJa—Domain-Feld attributeCode
attribute_jsonvarchar(10000)Ja—Domain-Feld attributeJson
specialstockvarchar(20)Ja—specialstock
pur_order_item_status_idbigintJa—Fremdschlüssel → pur order item status
request_change_datedatetimeJa—Domain-Feld requestChangeDate
request_datedateJa—request date
open_freight_quantitydecimal(20, 8)Ja—open freight quantity
transfer_sales_item_idbigintJa—Fremdschlüssel → transfer sales item
open_freight_order_quantitydecimal(20, 8)Ja—Domain-Feld openFreightOrderQuantity
open_freight_invoice_quantitydecimal(20, 8)Ja—Domain-Feld openFreightInvoiceQuantity
base_amountdecimal(30, 8)Ja0.00000000base amount
head_proportiondecimal(20, 8)Ja0.00000000head proportion
head_proportion_discount_amountdecimal(30, 8)Ja0.00000000head proportion discount amount
purchase_commenttextJa—Domain-Feld purchaseComment
order_descriptionvarchar(200)Ja—Domain-Feld orderDescription
is_pre_selectedsmallintJa0Boolean: Pre Selected
incoming_good_quantitydecimal(20, 8)Ja—Domain-Feld incomingGoodQuantity
is_price_set_manuallysmallintJa0Boolean: Price Set Manually
cargo_ready_datedateJa—Domain-Feld cargoReadyDate
estimated_departure_datedateJa—Domain-Feld estimatedDepartureDate
estimated_arrival_datedateJa—Domain-Feld estimatedArrivalDate

Fremdschlüssel ​

Spalte(n)Referenz
pur_order_item_status_idltt_pur_order_status (id)
pur_head_idpur_head (id)
warehouse_idltt_warehouse (id)
stockplace_idltt_stockplace (id)
tenant_idcompany (tenant_id)
ref_item_idpur_item (id)
proposal_idproposal (id)
warehouse_unit_idltt_unit (id)
cost_center_idcost_center (id)
vat_key_idltt_vat_key (id)
unit_idltt_unit (id)
reference_pur_item_idpur_item (id)
material_idmaterial (id)

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