Setting up warehouse accounting in 1C-Bitrix

Our company is engaged in the development, support and maintenance of Bitrix and Bitrix24 solutions of any complexity. From simple one-page sites to complex online stores, CRM systems with 1C and telephony integration. The experience of developers is confirmed by certificates from the vendor.
Our competencies:
Development stages
Latest works
  • image_website-b2b-advance_0.png
    B2B ADVANCE company website development
    1175
  • image_bitrix-bitrix-24-1c_fixper_448_0.png
    Website development for FIXPER company
    811
  • image_bitrix-bitrix-24-1c_development_of_an_online_appointment_booking_widget_for_a_medical_center_594_0.webp
    Development based on Bitrix, Bitrix24, 1C for the company Development of an Online Appointment Booking Widget for a Medical Center
    564
  • image_bitrix-bitrix-24-1c_mirsanbel_458_0.webp
    Development based on 1C Enterprise for MIRSANBEL
    747
  • image_crm_dolbimby_434_0.webp
    Website development on CRM Bitrix24 for DOLBIMBY
    655
  • image_crm_technotorgcomplex_453_0.webp
    Development based on Bitrix24 for the company TECHNOTORGKOMPLEKS
    976

Configuring Warehouse Management in 1C-Bitrix

Without warehouse management, an e-commerce store on Bitrix operates in "just a showcase" mode — stock is not tracked, reservation doesn't work, managers don't know if goods exist physically. Warehouse management setup includes the catalog module in stock management and links it to the sale module via reservation mechanism.

Enabling Warehouse Management

Shop → Catalog → Settings → "Warehouse" Tab:

  • Use warehouses — enable
  • Warehouse operation mode — "Warehouse" (track by warehouses) or "Without warehouse" (common stock)
  • Auto-reserve on order — recommended to enable
  • Remove reserve on order cancellation — enable

Stock data stored in b_catalog_store_product table (stock by warehouses) and b_catalog_product (field QUANTITY — total stock when working without warehouses).

Creating Warehouses

Shop → Catalog → Warehouses → Add Warehouse:

Each warehouse has fields: name, XML_ID (for 1C synchronization), address, contacts, activity. XML_ID critical on 1C exchange — used for warehouse matching on stock import.

Creating warehouse programmatically:

\Bitrix\Catalog\StoreTable::add([
    'TITLE'      => 'Main Warehouse',
    'XML_ID'     => 'STORE_MAIN',
    'ADDRESS'    => 'Warehouse St., 1',
    'ACTIVE'     => 'Y',
    'SORT'       => 100,
]);

Stock and Reserves

Difference between stock and available quantity:

  • QUANTITY — physical stock
  • QUANTITY_RESERVED — reserved under orders
  • Available = QUANTITY − QUANTITY_RESERVED

On order placement Bitrix automatically creates reserve in b_sale_order_reserve table. Reserve removal on order cancellation or when moving to "shipped" status (depends on settings).

Threshold and Restriction Setup

In product card (module catalog), "Trade Catalog" tab:

  • Allow purchase of negative quantity — for on-demand products only
  • Don't track quantity — for services and intangible items
  • Quantity step and Minimum quantity — for wholesale items

Execution Timeline

Basic warehouse management setup with one warehouse — 2–4 hours. Multi-warehouse setup with shipment rules — separate task, takes 4–8 hours.