Skip to main content

Module service

Module service 

Source
Expand description

Application services

Generated by metaphor-schema. Do not edit manually.

Each entity service is a type alias over GenericCrudService.

Re-exports§

pub use picking_batch_service::PickingBatchService;
pub use delivery_note_service::DeliveryNoteService;
pub use delivery_note_item_service::DeliveryNoteItemService;
pub use inventory_company_setting_service::InventoryCompanySettingService;
pub use landed_cost_service::LandedCostService;
pub use landed_cost_line_service::LandedCostLineService;
pub use landed_cost_adjustment_line_service::LandedCostAdjustmentLineService;
pub use location_service::LocationService;
pub use stock_move_service::StockMoveService;
pub use stock_move_line_service::StockMoveLineService;
pub use operation_type_service::OperationTypeService;
pub use transfer_service::TransferService;
pub use route_service::RouteService;
pub use route_rule_service::RouteRuleService;
pub use reordering_rule_service::ReorderingRuleService;
pub use purchase_receipt_service::PurchaseReceiptService;
pub use purchase_receipt_item_service::PurchaseReceiptItemService;
pub use quant_service::QuantService;
pub use scrap_service::ScrapService;
pub use scrap_reason_tag_service::ScrapReasonTagService;
pub use stock_entry_service::StockEntryService;
pub use stock_entry_item_service::StockEntryItemService;
pub use stock_ledger_entry_service::StockLedgerEntryService;
pub use bin_service::BinService;
pub use stock_reconciliation_service::StockReconciliationService;
pub use stock_reconciliation_item_service::StockReconciliationItemService;
pub use package_type_service::PackageTypeService;
pub use storage_category_service::StorageCategoryService;
pub use storage_category_capacity_service::StorageCategoryCapacityService;
pub use putaway_rule_service::PutawayRuleService;
pub use lot_service::LotService;
pub use package_service::PackageService;
pub use warehouse_service::WarehouseService;
pub use stock_item_service::StockItemService;
pub use picking_batch_service::PickingBatchRowRules;
pub use delivery_note_service::DeliveryNoteRowRules;
pub use delivery_note_item_service::DeliveryNoteItemRowRules;
pub use landed_cost_service::LandedCostRowRules;
pub use landed_cost_line_service::LandedCostLineRowRules;
pub use landed_cost_adjustment_line_service::LandedCostAdjustmentLineRowRules;
pub use location_service::LocationRowRules;
pub use stock_move_service::StockMoveRowRules;
pub use stock_move_line_service::StockMoveLineRowRules;
pub use operation_type_service::OperationTypeRowRules;
pub use transfer_service::TransferRowRules;
pub use route_service::RouteRowRules;
pub use route_rule_service::RouteRuleRowRules;
pub use reordering_rule_service::ReorderingRuleRowRules;
pub use purchase_receipt_service::PurchaseReceiptRowRules;
pub use purchase_receipt_item_service::PurchaseReceiptItemRowRules;
pub use quant_service::QuantRowRules;
pub use scrap_service::ScrapRowRules;
pub use scrap_reason_tag_service::ScrapReasonTagRowRules;
pub use stock_entry_service::StockEntryRowRules;
pub use stock_entry_item_service::StockEntryItemRowRules;
pub use stock_ledger_entry_service::StockLedgerEntryRowRules;
pub use bin_service::BinRowRules;
pub use stock_reconciliation_service::StockReconciliationRowRules;
pub use stock_reconciliation_item_service::StockReconciliationItemRowRules;
pub use package_type_service::PackageTypeRowRules;
pub use storage_category_service::StorageCategoryRowRules;
pub use storage_category_capacity_service::StorageCategoryCapacityRowRules;
pub use putaway_rule_service::PutawayRuleRowRules;
pub use lot_service::LotRowRules;
pub use package_service::PackageRowRules;
pub use warehouse_service::WarehouseRowRules;
pub use stock_item_service::StockItemRowRules;
pub use inventory_reservation::HoldAckLine;
pub use inventory_reservation::HoldLine;
pub use inventory_reservation::ReservationError;
pub use inventory_reservation::ReservationService;
pub use inventory_events::InventoryEvent;
pub use inventory_events::InventoryEventSink;
pub use inventory_events::OrderpointTriggered;
pub use inventory_events::StockDelivered;
pub use inventory_events::StockMoved;
pub use inventory_events::StockReceived;
pub use inventory_events::StockReconciled;
pub use inventory_write_service::DeliveryLine;
pub use inventory_write_service::InventoryError;
pub use inventory_write_service::InventoryWriteService;
pub use inventory_write_service::NewDelivery;
pub use inventory_write_service::NewReceipt;
pub use inventory_write_service::NewReconciliation;
pub use inventory_write_service::NewStockItem;
pub use inventory_write_service::NewTransfer;
pub use inventory_write_service::NewWarehouse;
pub use inventory_write_service::ReceiptLine;
pub use inventory_write_service::ReconLine;
pub use inventory_write_service::SubmitOutcome;
pub use inventory_read::AvailabilityView;
pub use inventory_read::InventoryReadService;
pub use inventory_read::QuantAvailability;
pub use inventory_read::StockBalance;
pub use availability_scope::AvailabilityScopeError;
pub use availability_scope::AvailabilityScopePort;
pub use availability_scope::AvailabilityScopeRead;
pub use availability_scope::CheckoutDemand;
pub use availability_scope::CheckoutFreeQty;
pub use availability_scope::RefusingAvailabilityScopePort;
pub use availability_scope::ScopedAvailability;
pub use availability_scope::SoldOutVerdict;
pub use inventory_intake::DeliveryIntake;
pub use inventory_intake::DeliveryRequestLine;
pub use inventory_intake::DeliveryRequested;
pub use inventory_intake::ReceiptExpected;
pub use inventory_intake::ReceiptRequestLine;
pub use procurement_service::AssignSweepReport;
pub use procurement_service::MovePipeline;
pub use procurement_service::MovePipelineError;
pub use procurement_service::NewOrderpoint;
pub use procurement_service::NewRoute;
pub use procurement_service::NewRouteRule;
pub use procurement_service::ProcurementError;
pub use procurement_service::ProcurementRequest;
pub use procurement_service::ProcurementService;
pub use procurement_service::ReorderOutcome;
pub use inventory_move_engine::BackorderPolicy;
pub use inventory_move_engine::MoveAssignOutcome;
pub use inventory_move_engine::MoveDoneOutcome;
pub use inventory_move_engine::MoveGlDirective;
pub use inventory_move_engine::NewStockMove;

Modules§

availability_scope
The two-scope availability read (hand-authored, user-owned; see metaphor.codegen.yaml).
bin_service
Application service for Bin entities
delivery_note_item_service
Application service for DeliveryNoteItem entities
delivery_note_service
Application service for DeliveryNote entities
error
Service error types
inventory_batch
The picking-batch surface (hand-authored, user-owned) — the stock.picking.batch satellite (spec misc-features.md SB).
inventory_cancellation
The cancellation/reversal path (hand-authored, user-owned) — council 2026-07-29, finding #3.
inventory_company_setting_service
Application service for InventoryCompanySetting entities
inventory_delivery
The Delivery Note path: draft → submit → repost (hand-authored, user-owned).
inventory_events
Inventory domain events — the public extension surface (hand-authored, user-owned).
inventory_gl
Outbound GL-posting port (hand-authored, user-owned) — re-export of the shared contract.
inventory_intake
Inbound intake (hand-authored, user-owned) — the DeliveryRequested port the selling↔inventory delivery seam triggers on (docs/erp/modules/backbone-inventory.md §3, extension-guide).
inventory_masters
Warehouse + stock-item masters (hand-authored, user-owned).
inventory_move_engine
The converged stock-move engine (hand-authored, user-owned): _action_confirm / _action_assign / _action_done / _action_cancel over quant-grain reservation.
inventory_posture
The tenant’s valuation posting posture (hand-authored, user-owned).
inventory_read
Inventory read-models (hand-authored, user-owned) — the availability/stock-balance surface the brief names as consumed by selling + buying (docs/erp/modules/backbone-inventory.md:11,51-52).
inventory_receipt
The Purchase Receipt path: draft → submit → repost (hand-authored, user-owned).
inventory_reconciliation
The ONE adjustment door + the StockReconciliation voucher over it (hand-authored, user-owned).
inventory_reservation
The store-level reservation surface (hand-written; user-owned) — the checkout-intent ledger the register row asked for: intent + release verbs on the stock authority, checkout consumes them.
inventory_scrap
The scrap door (hand-authored, user-owned) — the stock.scrap satellite (spec stock-business-logic.md §8).
inventory_transfer
The transfer/picking surface (hand-authored, user-owned).
inventory_write_service
Validated write path + valuation engine for inventory (hand-authored, user-owned).
landed_cost_adjustment_line_service
Application service for LandedCostAdjustmentLine entities
landed_cost_line_service
Application service for LandedCostLine entities
landed_cost_service
Application service for LandedCost entities
landed_cost_service_custom
Landed-cost documents (hand-authored, user-owned): draft → validate → done, cancel from draft only (hand_set state machine, ADR-0016 document vocabulary).
location_service
Application service for Location entities
lot_service
Application service for Lot entities
operation_type_service
Application service for OperationType entities
package_service
Application service for Package entities
package_type_service
Application service for PackageType entities
picking_batch_service
Application service for PickingBatch entities
procurement_service
Procurement service (hand-authored, user-owned): stock.route / stock.rule / stock.warehouse.orderpoint — the pull/push procurement configuration and the reorder rung the daily scheduler drives (spec: docs/odoo/inventory/stock/stock-business-logic.md §6 routes/rules, §7 orderpoints + scheduler, §11 R6/R11, §12 T11).
purchase_receipt_item_service
Application service for PurchaseReceiptItem entities
purchase_receipt_service
Application service for PurchaseReceipt entities
putaway_rule_service
Application service for PutawayRule entities
quant_service
Application service for Quant entities
reordering_rule_service
Application service for ReorderingRule entities
route_rule_service
Application service for RouteRule entities
route_service
Application service for Route entities
scrap_reason_tag_service
Application service for ScrapReasonTag entities
scrap_service
Application service for Scrap entities
stock_entry_item_service
Application service for StockEntryItem entities
stock_entry_service
Application service for StockEntry entities
stock_item_service
Application service for StockItem entities
stock_ledger_entry_service
Application service for StockLedgerEntry entities
stock_move_line_service
Application service for StockMoveLine entities
stock_move_service
Application service for StockMove entities
stock_reconciliation_item_service
Application service for StockReconciliationItem entities
stock_reconciliation_service
Application service for StockReconciliation entities
storage_category_capacity_service
Application service for StorageCategoryCapacity entities
storage_category_service
Application service for StorageCategory entities
transfer_service
Application service for Transfer entities
warehouse_service
Application service for Warehouse entities

Structs§

AccountingPostEnvelope
The serialized GL-post envelope a producer emits. source_type discriminates the producer (“payment”, “gateway_fee”, “sales”, …); source_id is the producer document id accounting dedups on.
GlPostAck
Accounting’s ack: the resulting post + journal, and whether the idempotency key short-circuited.
GlPostLine
One debit/credit line of a GL post.
GlPostRejected
Why accounting rejected a post (e.g. a closed period). The producer leaves the document retryable.

Enums§

ServiceError
Standard service-layer error type.

Traits§

GlPostSink
The GL-posting seam. A composing service implements this over accounting’s PostingService; tests record. Producers never depend on backbone-accounting — they reach it only through this port.

Functions§

build_bin_service
A BinService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_delivery_note_item_service
A DeliveryNoteItemService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_delivery_note_service
A DeliveryNoteService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_inventory_company_setting_service
A InventoryCompanySettingService over repository: the way to build it, so its writes are served only with the rules the schema declares.
build_landed_cost_adjustment_line_service
A LandedCostAdjustmentLineService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_landed_cost_line_service
A LandedCostLineService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_landed_cost_service
A LandedCostService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_location_service
A LocationService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_lot_service
A LotService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_operation_type_service
A OperationTypeService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_package_service
A PackageService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_package_type_service
A PackageTypeService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_picking_batch_service
A PickingBatchService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_purchase_receipt_item_service
A PurchaseReceiptItemService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_purchase_receipt_service
A PurchaseReceiptService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_putaway_rule_service
A PutawayRuleService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_quant_service
A QuantService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_reordering_rule_service
A ReorderingRuleService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_route_rule_service
A RouteRuleService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_route_service
A RouteService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_scrap_reason_tag_service
A ScrapReasonTagService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_scrap_service
A ScrapService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_entry_item_service
A StockEntryItemService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_entry_service
A StockEntryService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_item_service
A StockItemService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_ledger_entry_service
A StockLedgerEntryService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_move_line_service
A StockMoveLineService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_move_service
A StockMoveService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_reconciliation_item_service
A StockReconciliationItemService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_stock_reconciliation_service
A StockReconciliationService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_storage_category_capacity_service
A StorageCategoryCapacityService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_storage_category_service
A StorageCategoryService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_transfer_service
A TransferService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.
build_warehouse_service
A WarehouseService over repository with its write guard attached: the way to build it, so its writes are served only with the rules the schema declares.

Type Aliases§

ServiceResult