Reserve and write-off by deal
Updated
The module reserves goods when a deal reaches the reservation stage and writes them off from the warehouse at the write-off stage. The administrator sets the stages for each pipeline on the Accounting tab — see Settings. The manager sees everything on the Reserved tab of the deal card.
The deal’s warehouse
Section titled “The deal’s warehouse”- Goods are reserved and written off from the warehouse specified in the deal’s Warehouse field (on a portal with a Ukrainian structure, the field is named «Склад»). At the reservation stage the field is required.
- If the field is empty, the module takes the default warehouse from the «Warehouses» tab; it writes nothing to the deal itself. If no default warehouse is chosen either, no reserve is made and a comment arrives in the deal.
- Identical products from several lines of a deal are added together. Services are not reserved.
What happens at each stage
Section titled “What happens at each stage”| Where the deal is | What the module does |
|---|---|
| Before the reservation stage | there is no reserve; if there was one, it is released |
| From the reservation stage up to the write-off stage | reserves as much as needed, but no more than is available in the warehouse |
| The write-off stage and beyond | writes off all the deal’s goods as of the current date at the average cost |
| A reserve release stage, the lost stage, the deal is deleted | the reserve is released |
Write-off is all or nothing. If even one product is short, nothing is written off and a comment arrives in the deal. The deal waits: as soon as the stock arrives, the module writes it off itself and posts a comment about it. Do not write off such a deal with a separate «Write-off» document — the goods would be written off twice. To cancel the automatic write-off, move the deal off the write-off stage.
A deal created directly at the write-off stage (for example, by import) is not written off by the module on its own: it reserves the goods and asks you to click Write off.
Moving a deal back to an earlier stage after the write-off does not change stock. Goods return to the warehouse only through a document — with the Create return button.
The «Reserved» tab
Section titled “The «Reserved» tab”At the top are «Checked …» with the time of the last check and the «Written off» badge if the goods have already been written off.
- Reserved — a table: product, warehouse, «Required», «Reserved» and the status: «Reserved», «Partial» or «Short».
- Written-off goods — what has been written off for the deal and how much has already been returned.
- Available in other warehouses — where else there is available stock of the reserved products.
| Button | What it does |
|---|---|
| Reserve | checks the deal now and brings the reserve in line with its products and stage |
| Release reserve | releases the reserve. If the deal stays at a reservation stage, the next check (within 15 minutes) makes the reserve again |
| Write off | available only at the write-off stage, until the goods are written off: repeats the write-off |
| Create return | creates a return document — see below |
Changes to the products in a deal are not reserved instantly: Uspacy does not notify the module when the products change. The module checks the deal when you open the Reserved tab or change the deal’s stage or fields; after that, every 15 minutes for two hours, then hourly for the rest of the day, and then every night. Changing only the products (without the automatic amount recalculation, see below) does not start a new check by itself. A partial reserve is topped up as soon as stock arrives at the warehouse or is released from another deal’s reserve. If you chose the warehouse in the card while the tab was open, the reserve appears by itself.
To have the reserve updated right after the products change, tick «Automatically recalculate the deal amount according to the value of the products» on the deal’s Products tab. Uspacy then notifies the module of every product change, and the deal amount is calculated from the products.

Comments in the deal
Section titled “Comments in the deal”The module does not comment on a successful reserve. When something is wrong, a comment mentioning the responsible person arrives in the deal feed. It starts with «Warehouse:» and ends with «Details are on the «Reserved» tab.» Comments are written in the portal’s language: on a portal with a Ukrainian structure they are in Ukrainian, start with «Склад:» and end with «Деталі — вкладка «Резерв».»
| Comment | What it means |
|---|---|
| «Warehouse: no warehouse is specified in the deal, no reserve was made.» | fill in the «Warehouse» field |
| «Warehouse: not enough stock to reserve: Coffee beans (Main warehouse): 20 required, 17 available.» | what is available has been reserved |
| «Warehouse: write-off not completed — not enough stock: …» | the deal is waiting for stock and will be written off automatically |
| «Warehouse: the deal’s goods were written off automatically — the write-off that failed earlier has been completed.» | stock arrived, the deal was written off |
| «Warehouse: the deal is at the write-off stage, but the goods have not been written off — click «Write off».» | click Write off on the tab |
| «Warehouse: the reserve was reduced because of a backdated document change.» | a document in the past took the stock; the reserve was released from the newest deals |
| «Warehouse: the deal’s warehouse is not covered by the inventory accounting plan — no reserve is made in it.» | contact the portal administrator; a reserve made earlier in another warehouse stays |
| «Warehouse: write-off not completed — the deal is written off as of today, and the lock date is …» | the administrator changes the lock date; the deal is then written off automatically |
| «Warehouse: write-off not completed — no … rate for …» | there is no rate for today for the currency of the deal’s prices; the administrator adds it on the Exchange rates tab of the settings — the deal is then written off automatically |
| «Warehouse: the deal’s products were changed after the write-off — inventory accounting keeps what was written off earlier.» | inventory accounting does not change: return the goods with the Create return button or write off more with a «Write-off» document |
| «Warehouse: the deal’s goods have already been written off — changing the stage does not return them to the warehouse.» | the deal was moved back or to “Fail” (Провал) after the write-off; to return the goods, use Create return |
The deal’s revenue is counted in the accounting currency at the rate of the write-off day.
The module writes about the same problem once, not on every check. A deal without a responsible person gets the same comment without a mention. The Write off and Release reserve buttons work only for those who can edit the deal.
Customer returns
Section titled “Customer returns”- On the Reserved tab, click Create return. The button is there as long as the deal has goods that were written off and not yet returned.
- The module creates a document «Return for deal «…»» in the «Receipt» pipeline: the receipt type «Customer return», the deal, the warehouse and the products not yet returned. A link to it is in the message.
- Open the document, leave in the lines only what is being returned, and post it.
You cannot return more than was written off for the deal. Goods return to the warehouse at the write-off cost, and in the «Gross profit» report a return reduces the deal’s revenue and cost. Clicking the button again before you have posted the return gives a link to the same document: «The return document has already been created».