Centurio Taispeántas ar an gcóras
🏛️ Ailtireacht ardán 🔑 Login
🏠 Gach mhodal / sales_billing / Tráchtáil ar líne (tráchtáil ar an ngnáth-samhraidh)
🚚

Tráchtáil ar líne (tráchtáil ar an ngnáth-samhraidh)

dropship sales_billing 🛡️ RLS Protected

Críochnú ar an margadh agus ar an margadh a bhaineann le táirgí a tháirgeadh.

Fachliche Bestimmung: Tá sé ina n-áirítear an t-airgead a bhaineann le cuairteoirí a bhfuil an t-airgead a fháil ar an suíomh agus a bhfuil an t-airgead a fháil ar an suíomh.

⚡ Cithruithe ar an obair

Cithfear an t-airgead a chur i bhfeidhm ar an gcinntí. dropship_lifecycle

Gníomhaíocht thráiteartha agus loigisticiúil an ghnó ar líne gan stóráil idirthréimhseach.

sequenceDiagram Customer->>ERP: Bestellt Artikel (Route: Dropship) ERP->>Supplier: PO (Lieferadresse: Kunde, Typ: dropship) Note over ERP: billing_released = False (Fakturasperre) Supplier->>Customer: Liefert Ware direkt aus Supplier-->>ERP: Sendungsnummer / Zustellnachweis ERP->>ERP: Status = delivered & billing_released = True ERP->>Customer: Ausgangsrechnung wird generiert
1. ROUTE_DETECTION
Cluiche
solvent_route a chinneadh gnó ar líne ar bhonn catagóir táirge nó ar bhonn iomarca suíomhanna.
Aktionen: Ag dul thar riachtanais stórála
2. PURCHASE_ORDER
Forbairt ordra
DropshipService a lánúineann seasamh de réir soláthraí agus a chruthaíonn PO le procurement_type='dropship'.
Aktionen: Cásán soláthair = Seoladh custaiméara
3. TRACKING
Rialuithe
soláthraí a chur in iúl uimhir a léiríonn agus seirbhísí loingseoireachta.
Aktionen: Staidéar 'in_transit'
4. DELIVERY_CONFIRM
Úinéireacht
Cinntíonn an t-ordú ar an gcustaiméir (POD).
Aktionen: Staidéar 'dearbh'
5. BILLING_RELEASE
Úinéireacht
Déanfar billing_released a chur ar True; déanfar billing_released a chur ar fáil.
Aktionen: sonrasc amach

Kundenauftrag → Abwicklung cascade:business.customer_order.fulfill

Cáskade (review_gated).

1. order
Verkaufsauftrag anlegen / bestätigen
sales
Aktionen: sales.create
2. issue
Clúdaíocht as an táirge
an t-ionad
Aktionen: stock.issue.create
3. tour
Cuairteanna ar an seachadadh a phleanáil
logistice
Aktionen: create_tour
4. project
tionscadal / cosanta
tionscadail
Aktionen: link_project
5. task
ordú a chur chun feidhme / a ríomh
tascanna
Aktionen: create_task

Verkaufsauftrag anlegen / bestätigen cascade_target:business.sales_order.create

Cáskade (review_gated).

1. cascade
Verkaufsauftrag anlegen / bestätigen

Benutzerbefehl: sales order agent plan:command_sales_order_agent

Cláir-chláir (durable_plan), tosaíocht: manual_command.

1. sales_order_agent
sales_order_agent
{"key": "execute_command", "label": "Befehl prüfen, ausführen oder zur Freigabe vorlegen", "adapter": "agent.execute", "agent": "sales_order_agent", "condition_fact": null}
Aktionen: sales_order_agent

🗄️ Mhodhanna sonraí & réimsí

DropshipLines dropship_lines RLS Aktiv
37 Criosanna / collaín

Tabelle dropship_lines

Feldname Cinntíocht Oibleagáid Schlüssel Treoir
item_type VARCHAR(24) Ja * - Feld item_type
item_id UUID Ja * - Feld item_id
quote_id UUID Nein FK ➔ quotes.id Feld quote_id
work_order_id UUID Nein FK ➔ work_orders.id Feld work_order_id
project_id UUID Nein FK ➔ projects.id Feld project_id
customer_id UUID Nein FK ➔ customers.id Feld customer_id
product_id UUID Nein FK ➔ products.id Feld product_id
description VARCHAR(255) Ja * - Feld description
quantity NUMERIC(14, 4) Ja * - Feld quantity
unit VARCHAR(16) Ja * - Feld unit
sales_net NUMERIC(14, 2) Ja * - Feld sales_net
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
purchase_id UUID Nein FK ➔ purchases.id Feld purchase_id
purchase_item_id UUID Nein FK ➔ purchase_items.id Feld purchase_item_id
cost_net NUMERIC(14, 2) Nein - Feld cost_net
ship_to TEXT Nein - Feld ship_to
status VARCHAR(16) Ja * - Feld status
carrier VARCHAR(120) Nein - Feld carrier
tracking_number VARCHAR(120) Nein - Feld tracking_number
tracking_url VARCHAR(512) Nein - Feld tracking_url
expected_delivery_date DATE Nein - Feld expected_delivery_date
shipped_at DATETIME Nein - Feld shipped_at
delivered_at DATETIME Nein - Feld delivered_at
proof_document_id UUID Nein FK ➔ documents.id Feld proof_document_id
billing_released BOOLEAN Ja * - Feld billing_released
release_reason VARCHAR(255) Nein - Feld release_reason
chain_review BOOLEAN Ja * - Feld chain_review
issue_note VARCHAR(500) Nein - Feld issue_note
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata
SalesAgents sales_agents RLS Aktiv
18 Criosanna / collaín

Tabelle sales_agents

Feldname Cinntíocht Oibleagáid Schlüssel Treoir
name VARCHAR(255) Ja * - Feld name
email VARCHAR(320) Nein - Feld email
phone VARCHAR(64) Nein - Feld phone
customer_id UUID Nein FK ➔ customers.id Feld customer_id
supplier_id UUID Nein FK ➔ suppliers.id Feld supplier_id
default_commission_percent NUMERIC(5, 2) Nein - Feld default_commission_percent
default_markup_percent NUMERIC(5, 2) Nein - Feld default_markup_percent
notes TEXT Nein - Feld notes
active BOOLEAN Ja * - Feld active
id UUID Nein PK Feld id
tenant_id UUID Ja * FK ➔ organizations.id Feld tenant_id
created_at DATETIME Ja * - Feld created_at
updated_at DATETIME Ja * - Feld updated_at
created_by UUID Nein - Feld created_by
updated_by UUID Nein - Feld updated_by
source_type VARCHAR(32) Nein - Feld source_type
source_id UUID Nein - Feld source_id
metadata JSONB Ja * - Feld metadata

🔌 Pointí tosaigh (UI& APIanna)

Art An modh Críoch/slighe Titel & Zweck Céadú
⚡ REST API DELETE /api/v1/sales/orders/{order_id}/items/{item_id}
delete_item
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API GET /api/v1/sales/orders
list_sales_orders
Semantic binding: inventory_only; mutation=False
sales
⚡ REST API GET /api/v1/sales/orders/{order_id}
get_sales_order
Semantic binding: inventory_only; mutation=False
sales
⚡ REST API GET /api/v1/sales/summary
sales_summary
Semantic binding: inventory_only; mutation=False
sales
⚡ REST API GET /portal/{slug}/bestellung
order_form
Semantic binding: inventory_only; mutation=False
sales
⚡ REST API GET /verkauf
sales_page
Semantic binding: inventory_only; mutation=False
sales
⚡ REST API GET /verkauf/{order_id}
sales_order_page
Semantic binding: inventory_only; mutation=False
sales
⚡ REST API PATCH /api/v1/sales/orders/{order_id}
update_sales_order
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API PATCH /api/v1/sales/orders/{order_id}/items/{item_id}
update_item
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders
create_sales_order
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/from-quote/{quote_id}
create_from_quote
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/{order_id}/cancel
cancel_sales_order
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/{order_id}/confirm
confirm_sales_order
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/{order_id}/invoice
invoice_sales_order
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/{order_id}/items
add_item
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/{order_id}/mark-delivered
mark_delivered
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /api/v1/sales/orders/{order_id}/start-delivery
start_delivery
Semantic binding: operator_surface; mutation=True
sales
⚡ REST API POST /portal/{slug}/bestellung
order_submit
Semantic binding: operator_surface; mutation=True
sales
🖥️ WEB-UI GET /quotes?status=dropship
Soláthraithe na n-airgead
Filtert Angebote mit Streckengeschäft-Positionen
quotes:read
🖥️ WEB-UI GET /purchasing#dropship
Glacadh
Rithí ceannais tiomnaithe le ciomrátaí agus le rianú
purchasing:read
⚡ REST API GET /api/v1/dropshipping
Cinntí a bhaineann le cúlra
Cinntíonna ar an gcinntíon
quotes:read
⚡ REST API POST /api/v1/dropshipping/{id}/assign-supplier
soláthraí
Cuirfidh sé soláthraí ar fáil agus cuirfidh sé ordú ceannais ar fáil
purchasing:write
⚡ REST API POST /api/v1/dropshipping/{id}/tracking
Cúltráil
Cuir in uimhir rianú agus cuir in_transit stádas
purchasing:write
⚡ REST API POST /api/v1/dropshipping/{id}/delivered
Deimhniú ar an seachadadh
Cuirfidh sé stádas ar fáil agus tabharfaidh sé an t-airgead
purchasing:write

🛡️ Rialacháin & Comhlíonadh

Dieses Modul unterliegt folgenden gesetzlichen, regulatorischen und Revisionsstandards:

  • UStG §25b (Gnó trianglaí laistigh den Chomhphobal)
  • GoBD (Factaíocht amháin tar éis an t-oibre a chur ar fáil)
Modhanna a bhaineann le:
➔ finance ➔ purchasing ➔ catalog ➔ customers ➔ suppliers