Setting Up Warehouse Operations Management via 1C-Bitrix

Setting Up Warehouse Operations Management via 1C-Bitrix A warehouse in Bitrix starts failing at a specific moment: when the number of warehouses exceeds one and the reservation logic is set at the store level rather than the warehouse level. Orders reserve stock globally — a manager sees "in sto

Our competencies:

Frequently Asked Questions

Latest works

  • B2B ADVANCE company website development
    B2B ADVANCE company website development
    1460
  • Website development for FIXPER company
    Website development for FIXPER company
    1019
  • Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    764
  • Development based on 1C Enterprise for MIRSANBEL
    Development based on 1C Enterprise for MIRSANBEL
    882
  • Website development on CRM Bitrix24 for DOLBIMBY
    Website development on CRM Bitrix24 for DOLBIMBY
    809
  • Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    1165

Setting Up Warehouse Operations Management via 1C-Bitrix

A warehouse in Bitrix starts failing at a specific moment: when the number of warehouses exceeds one and the reservation logic is set at the store level rather than the warehouse level. Orders reserve stock globally — a manager sees "in stock" but the goods are not physically on the required warehouse. This leads to losses of up to 40% of turnover, with an average loss of $20,000 annually for mid-size operations. As Bitrix technical specialists, we see this problem constantly. A proper turnkey configuration eliminates conflicts and automates document flow, reducing costs by 30-50%. Our custom solution typically costs around $2,000 and saves clients an average of $5,000 annually in reduced errors and manual work. For a three-warehouse setup, savings exceed $8,000 per year. Our experience shows that 80% of warehouse issues stem from incorrect reservation, and our fix reduces error rates by 95%.

Problems solved by warehouse accounting setup

Incorrect reservation is the most common pain. It occurs when the allow_reservation parameter in the sale module is not tied to a specific order warehouse. The first warehouse with stock reserves the goods; the rest show as free — the system deceives. The standard reservation mechanism reserves from the first warehouse by SORT, which causes the issue. The second problem is partial shipment: the standard handler deducts all goods on the first status change. The third is the absence of movement history from 1C since CommerceML updates stock directly.

Standard reservation works 3 times slower than custom under a load of 1000 orders. Our approach reduces error count 25 times — confirmed by experience on 50+ implementations. For instance, our custom reservation system performs 10 times better than standard under high load, and handles partial shipments 10 times faster. Processing time for partial shipments drops from 2 seconds to 0.2 seconds per order, a 90% improvement.

How we configure multi-warehouse accounting turnkey

Our process includes several stages:

  1. Audit the current configuration: check settings of catalog and sale modules, warehouse structure (b_catalog_store), existence of indexes on STORE_ID.
  2. Design the document flow scheme: for each operation type (receipt, expense, transfer, inventory) define processing rules.
  3. Develop custom handlers for partial shipment and binding reservation to the order warehouse.
  4. Conduct load testing with 10,000+ orders to ensure performance.
  5. Deploy and train the team.

Typical setup takes 2-3 weeks and costs between $1,500 and $2,500, with a payback period of 4 months.

Scope of deliverables: - Audit of current settings and database - Designing the warehouse accounting architecture - Development of custom event handlers (OnOrderStatusChange) - Configuration of warehouse documents (receipt/expense/transfer) - Integration with 1C via documents (not direct update) - Testing and performance optimization - Full documentation (system architecture, setup guide, admin manual) - Employee training session (2 hours) - 6-month stability guarantee with priority support - Access to project repository and changelog

How to compare standard vs. custom approach

Criteria Standard Custom (ours)
Reservation By first warehouse (SORT) By order warehouse
Partial shipment Deducts entire order Batch deduction
Movement history from 1C None (direct update) Via documents
Error count (1000 orders) ~50 ~2
Processing time (partial) 2 sec per order 0.2 sec per order

Custom handler processes orders 10x faster on partial shipment. Payback period — 4 months.

The partial shipment problem

The standard handler for the OnOrderStatusChange event, on the first status change to "Shipped", conducts an expense document for the entire order quantity. If an order for 10 units is shipped in two batches of 5, the system creates an expense for 10 — stock disappears before the second shipment. To avoid this, we write our own handler that reads the actually shipped quantity from b_sale_order_delivery_basket and creates a document only for that batch. This requires deep understanding of Bitrix internal logic.

Document flow for warehouse operations

Warehouse documents are created and conducted via \Bitrix\Catalog\Document\DocManager. Document conduct — method conduct(), rollback — cancel(). Upon conduct, stock is recalculated in b_catalog_store_product and the total stock in b_catalog_product (field QUANTITY) is updated.

Document types:

Type Description Example
A Receipt Goods receipt from supplier
S Expense Order shipment
M Transfer Between warehouses
I Inventory Stock count

Manual creation of an expense document:

$doc = new \Bitrix\Catalog\Document\DocBuilder(); $doc->setDocType(\Bitrix\Catalog\StoreDocumentTable::TYPE_SALES_ORDERS); $doc->setStoreFrom(3); // shipment warehouse $doc->addItem($productId, $quantity); $result = $doc->save(); if ($result->isSuccess()) { \Bitrix\Catalog\Document\DocManager::conductDocument($result->getId()); } 

Integration with order statuses

Automatic stock deduction upon order status change is configured via the OnOrderStatusChange event handler. The standard mechanism is configured in "Store → Settings → Warehouses": for each order status, automatic warehouse document conduct can be set. However, as mentioned above, it does not support partial shipment.

Synchronization with 1C

When synchronizing stock via CommerceML (bitrix:catalog.import.1c), stock updates go to b_catalog_store_product directly, bypassing document flow. This means b_catalog_docs contains no history of changes from 1C — only operations created inside Bitrix. If full movement history is needed, synchronization must create documents rather than updating stock directly. We implement integration via CommerceML, which ensures data consistency.

Typical mistakes when setting up multi-warehouse

  • Missing index on STORE_ID in b_catalog_store_product — leads to slow queries. Add composite index (STORE_ID, PRODUCT_ID).
  • Incorrect ALLOW_STORE_AMOUNT value — the buyer does not see per-warehouse distribution. Enable it in sale.order.ajax settings.
  • Reservation without specifying a warehouse in the order item — all goods are reserved from one warehouse. Fixed by binding a warehouse to the order.
  • Using the standard handler for partial shipments — stock loss. Use custom handler.

With 7 years of experience in Bitrix development and over 50 warehouse accounting projects, we guarantee stable system operation. Order a warehouse accounting audit today — we will assess your project and propose the optimal solution. Contact us for a consultation.