Skip to content

Custom business-rule inventory ​

This inventory starts with order import and carrier assignment because their rules influence downstream logistics. It is a coverage backlog, not an exhaustive list of every custom rule across Logidav or the whole Menzzo ecosystem. A source-reviewed page describes a pinned code revision, not the deployed state or a business-owner approval.

AreaEntry point or evidenceCurrent documentationNext investigation
New and existing orders, line initialization, customer availability and stock flagsSaleService::addOrder, addOrderItem, availability helpersOrder import and line-item rulesTrace connector overrides, input mappings and all event listeners.
Carrier selection and multi-parcel groupingcalculateSaleProductRealShippingMethod, checkAndSwitchSaleProductRealShippingMethodOrder-line carrier assignmentValidate active deployment, product data and carrier-business ownership; trace every recalculation caller and downstream labels.
Magento import cursor, status updates and stock mutationSaleCommand, UpdateSaleCommand, ProductQtyLogServiceSales import, stock updatesTrace connector-specific and replay behavior with current source evidence.
Delivery-mode change and pickup-to-deliveryDeliveryChangeService, PickupToDeliveryServiceDelivery-mode change rules covers the reviewed service conditions and carrier recalculation.Trace calling APIs, payment callbacks, pricing, failure handling and each transition end-to-end.
Product replacement and alert actionsSaleProductService and AlertController call the line calculatorRecalculation callers noted in carrier assignment.Trace eligibility, stock, price/tax effects, persisted state and any external side effects.
Order-level sale shipping method and product shipping amountsetRealShippingMethod, calculateSaleProductShippingAmountOrder import and line-item rules documents the reviewed base conditions.Trace every amount-event producer/listener and store/carrier price formula.
Carrier tickets, shipments and trackingCarrier controllers/services, shipment CSV importOrder and fulfillment interfaces, shipment generationTrace each carrier's validation, shipment/label lifecycle, retries, tracking and external responses.
Supplier and marketplace order logicConnector-specific services and order-created event listenersStores and marketplaces, supplier catalogsInventory service overrides and supplier-specific order/fulfillment branches; document actual business rules and exceptions.
Stock, availability and pricingQuantity log and product/price processorsStock updates, product syncTrace remaining supplier, marketplace and destination-specific policy and configuration.
Refunds, cancellation and SAVSAV, refund, payment and status pathsRefunds and SAVClose physical-return stock, financial idempotency and connector-specific gaps.

How to extend this inventory ​

For each workflow, identify the user or scheduled trigger, entry point and actual call chain; record condition precedence, inputs, state changes, events, external effects, failure/retry behavior, and the source commit. Link the rule page from its system, flow and troubleshooting entry points. Mark unreviewed branches and configuration as unknown, and separate code evidence from observed production behavior. Have the business owner validate the intended policy where the code has hard-coded thresholds or identifiers.

Internal developer documentation for Menzzo systems.