Purchase
Create a Missing Item During Purchase Entry
The purchase no-match action creates a real reusable item with only name, selling price and stock on hand, then adds a zero-cost line to the purchase. It is fast, but barcode, SKU, supplier, purchase cost, category, unit and complete tax setup still need deliberate review.
- Menu path
- Purchase -> Purchases -> New Purchase -> item search -> Create item
- Verified from
- Posnic demo and current POS source reviewed on 2026-09-08
Technical source evidence
frontend/static/script/js/modules/js/receiving_add.js no-result create action and callback line defaults, frontend/static/script/js/modules/js/quick_items.js popup fields validation itemPayload and createItem, frontend/modules/items_write.html complete item fields, frontend/static/script/js/modules/js/receiving_add.js editItemCompanyPriceReceiving company-price update
Search Before Creating
- Select the correct supplier first.
- Search the product's full name and common shortened name.
- Search or scan the known SKU and barcode.
- Check spelling, spacing, pack size and variant before selecting Create item.
- When a matching reusable item exists, select it instead of creating a near-duplicate.
- Use Create item only when this is genuinely a new catalog product.
Create the Compact Item
- Type the missing product name in purchase item search.
- Select Create item with the typed name from the no-match result.
- Confirm or correct Name; it is required and limited to 100 characters.
- Enter Selling price if the approved shelf price is known; blank saves as zero.
- Enter Stock on hand only when opening stock already existed before this purchase; blank saves as zero.
- Select Save item once and wait for Item saved.
- Confirm the new line appears on the purchase.
- Edit its Cost to the supplier's approved unit cost before saving the purchase.
What the Compact Dialog Saves
| Field/behavior | Saved default | Required follow-up |
|---|---|---|
| Name | Typed name after trimming. | Normalize brand, size and variant naming. |
| Selling and MRP | Both use entered Selling price, or zero. | Confirm actual selling price and MRP policy. |
| Stock on hand | Entered value, or zero. | Avoid counting the current purchase twice. |
| Purchase/company cost | Zero in the item payload and the inserted purchase line. | Edit the line cost; understand this updates stored Company Price. |
| Inventory tracking | Enabled. | Keep enabled for stock products; review for services. |
| Sales channel | Enabled. | Item becomes available to normal sale search. |
| Negative stock | Allowed. | Disable later when the shop must block out-of-stock sales. |
| Tax | May inherit the sale-page cached default when available; purchase creation commonly has no such cache. | Open the item and verify tax ID, percentage and inclusive/exclusive type. |
| Unit | Server/default behavior resolves an omitted unit, commonly quantity. | Set the real unit and any purchase pack conversion. |
| Barcode, SKU, category, supplier | Blank. | Complete before barcode use, reporting or supplier autofill. |
Avoid Double-Counting Opening Stock
| Situation | Stock on hand in popup | Purchase quantity |
|---|---|---|
| All stock arrived in this purchase | 0 | Enter the physically received quantity on the purchase line. |
| Existing shelf stock plus a new delivery | Enter only verified pre-existing stock. | Enter only the new delivery quantity. |
| Creating an order before delivery | Current verified stock only. | Enter ordered quantity; keep status Ordered until receipt. |
| Unknown current stock | 0 until counted. | Use the purchase for actual delivered quantity, then perform an approved inventory count if needed. |
Complete the Item After Creation
- Open Inventory -> Items and find the exact newly created name.
- Open Edit and confirm Company Price, Selling Price and MRP.
- Assign the supplier so future supplier search and Fill from supplier can find it.
- Set category and unit; configure purchase unit and conversion factor for packs when required.
- Enter a unique SKU and barcode, or use Same as SKU only under the shop's approved coding rule.
- Assign the correct tax rate and inclusive/exclusive treatment.
- Review inventory tracking, negative-stock permission and sales-channel visibility.
- Save and test one search/scan before processing more stock.
Duplicate and Failure Handling
- The item endpoint can return a duplicate conflict when name, barcode and all three prices match an existing item.
- A duplicate warning does not add a new item line; search for and select the existing record.
- Save item is disabled while the create request is active to reduce double submission.
- When creation fails, keep the purchase open, preserve the typed product evidence and retry only after checking the message.
- Do not alter the spelling merely to bypass duplicate detection.
Troubleshooting
| Problem | Likely reason | Controlled response |
|---|---|---|
| Create item option does not appear | Search still has a match, lookup is loading, or the request failed. | Wait, search exact codes and inspect the result before retrying. |
| Save does nothing | Name is empty after trimming. | Enter a meaningful product name. |
| New line total is zero | Quick-created purchase line starts with zero company cost. | Use the Cost edit with the approved supplier unit cost. |
| Item will not scan later | No barcode or SKU was created. | Complete unique codes on the item and test one scan. |
| Supplier autofill misses it | Compact creation leaves supplier blank. | Assign the item's supplier, then retry from a fresh purchase. |
| Tax is zero or wrong | Purchase popup had no reliable cached default or catalog tax was not completed. | Correct item tax and the current purchase line with accounting approval. |
| Stock is too high | Opening stock and received purchase quantity both included the same goods. | Audit inventory logs and use an approved count/adjustment correction. |
| Duplicate warning appears | A matching item already exists. | Cancel creation and select the existing item. |
Supervisor Checklist
- Existing catalog was searched thoroughly.
- Name clearly identifies brand, size and variant.
- Opening stock and purchase quantity do not overlap.
- Purchase cost is non-zero when the supplier charged for the item.
- Supplier, unit, category, tax, SKU and barcode are completed as required.
- Negative-stock and sales-channel defaults match shop policy.
- Saved purchase totals and inventory logs are verified.