Purchase
Attach, Open and Remove Purchase Documents
Purchase attachments keep supplier paperwork beside the saved transaction. Posnic accepts PDF and image files up to 10 MB on purchase orders and received purchases.
- Menu path
- Purchase -> Purchases -> open purchase -> Attachments
- Verified from
- Posnic demo and current POS source reviewed on 2026-09-08
Technical source evidence
frontend/modules/purchaseOrders.html po_attach_file and po_view_attachments, frontend/static/script/js/modules/js/receiving_add.js renderAttachments upload and remove handlers, api/src/routes/receivings.routes.js purchase attachment routes, api/src/middleware/upload.js documentUpload, api/src/controllers/receivings.controller.js addAttachment and removeAttachment
Choose the Right Evidence
| Document | Attach when | Verify before upload |
|---|---|---|
| Supplier invoice | The supplier's billed quantities, values or tax must be retained with the purchase. | Supplier, invoice number, date, totals and tax belong to this purchase. |
| Supplier purchase order | The supplier returned or issued its own order document. | The document is the final version and names the correct branch or buyer. |
| Delivery note | Received quantities need dispatch or delivery evidence. | The note matches the shipment and receiving date. |
| Payment proof | Shop policy requires bank, card or transfer evidence. | Sensitive information is redacted according to company policy. |
| Product or damage image | A visible condition must support a receiving discrepancy or return. | The image is clear, necessary and linked to the correct transaction. |
Attach a File While Creating or Editing
- Open Purchase -> Purchases and choose New Purchase, or open an editable purchase and select Edit.
- Select the supplier and confirm the purchase lines before attaching evidence.
- In the right-hand purchase details, select Attach invoice.
- Choose the correct PDF or image from the device.
- Check the filename and document content before saving the purchase.
- Complete the remaining purchase fields and save once.
- Reopen the saved purchase and confirm the attachment appears under Attachments.
Attach a File to a Saved Purchase
- Open Purchase -> Purchases.
- Find the transaction by purchase number, supplier, date or status and open it.
- Verify the supplier, purchase number, item lines and total so evidence is not filed against the wrong record.
- Under Attachments, select Attach a file.
- Choose one supported file no larger than 10 MB.
- Wait for the Attached confirmation; do not close the document while upload is in progress.
- Confirm the original filename and approximate file size appear in the attachment list.
File Rules and Stored Metadata
| Rule | Current Posnic behavior | Operator implication |
|---|---|---|
| Accepted formats | PDF, JPEG/JPG, PNG and WebP. | Convert office documents or unsupported images to an approved format before attaching. |
| Maximum size | 10 MB per selected file. | Compress or split a larger scan without making important text unreadable. |
| Filename | The original name is shown, limited to 120 characters; storage uses a regenerated name. | Use a meaningful original filename, but do not rely on it as the only transaction identity. |
| Metadata | Posnic records size, MIME type, uploader identity and upload date. | Use the purchase record and staff access as the audit trail. |
| Record types | The same endpoint supports purchase orders and received purchases. | Paperwork can stay with the transaction before and after stock is received. |
| Permissions | Purchase / Receiving Write is required to add or remove. | Read-only employees should ask an authorized stock or purchasing user. |
Open and Check an Attachment
- Open the saved purchase and locate Attachments below the purchase details.
- Select the attachment filename; Posnic opens it in a new browser tab.
- Confirm the displayed document is complete, legible and belongs to the open purchase.
- Compare quantities, invoice total, tax and dates with the Posnic purchase.
- Return to the purchase tab without editing stock merely because the external document differs.
- Resolve mismatches through the approved edit, return, void or accounting workflow.
Remove the Wrong Attachment
The red remove control removes the file from the purchase list immediately. The current interface does not show a confirmation dialog, so verify the filename before selecting it.
- Remove only a duplicate, illegible or wrongly filed document.
- Do not remove evidence merely because the purchase was returned or voided.
- Upload the correct replacement and verify it opens before removing the bad copy when practical.
- Removal does not alter purchase lines, totals, status, stock or tax.
- The server retains the physical file for support recovery even after its listing is removed; recovery is not an operator self-service action.
Troubleshooting
| Problem | Likely reason | Controlled response |
|---|---|---|
| That file is over 10MB | The selected file exceeds the client limit. | Compress or split it, check readability and attach an approved file under 10 MB. |
| Only PDF and image files can be attached | The server rejected the MIME type. | Export the document as PDF, JPEG, PNG or WebP; renaming the extension is not a conversion. |
| Attach a file is missing or disabled | The employee lacks Purchase / Receiving Write access. | Ask an administrator to review the role; do not share another employee's login. |
| Could not attach the file | Authentication, network, server storage or request processing failed. | Keep the source file, refresh once, reopen the purchase and retry once; report the exact message if it repeats. |
| Filename appears but will not open | The stored URL is unavailable or the browser blocked the new tab. | Allow the trusted Posnic origin to open the tab, then ask support to inspect storage if the URL still fails. |
| Wrong attachment was removed | The remove control has no confirmation or the wrong filename was selected. | Stop changing the record, note the purchase and filename, and ask support about retained-file recovery. |
| Attachment is on the wrong purchase | Document identity was not checked before upload. | Upload it to the correct purchase, verify it, then remove the wrong listing with authorization. |
Daily Evidence Check
- Review purchases with invoice mismatch warnings before close.
- Confirm required supplier invoices and delivery notes open and remain legible.
- Match external invoice totals and tax to the saved purchase or record the approved variance.
- Keep payment-card, bank and personal data out of attachments unless policy explicitly requires and protects it.
- Include missing or removed evidence in the manager's purchase review.