Purchase orders: test plan
For: testers checking Purchase › Purchase orders on the QA server before release. What to set up, and what to check at each step of a purchase order: Draft → Ordered → Received → Converted.
Set up once
Make these on the QA server, as in the Tester handbook: environments, test data and checks.
You need | Why |
|---|---|
Setting
=
| GRNs against an order work only in this mode |
Two branches, A and B | To check an order stays in its own branch |
User A-only: holds branch A only, all Purchase Order, GRN and Purchase rights | The normal user |
User B-only: holds branch B only | To check an order is invisible to other branches |
A role with Purchase Order read only | To check buttons are hidden |
A role with Purchase Order Add but not Edit | To check edits are refused |
A role without Finalize | To check Finalize is hidden |
A role without Purchase payment rights | To check the "pay now" dialog is not offered |
A role without View Purchase Price | To check the last price is hidden |
Supplier S1 with GSTIN, same state as branch A | Intra-state tax (CGST + SGST) |
Supplier S2 in another state | Inter-state tax (IGST) |
Product P1 with GST 18% exclusive | The normal case |
Product P2 with GST 18% inclusive | Inclusive tax |
Product P3 with a tax group | Group tax |
Product P4 with no tax | Tax-free line |
Before each test, note the PO status, the stock of each product at branch A (Stock report) and the received quantity on the order's GRNs.
Create
# | Check | Steps | Pass when |
|---|---|---|---|
1 | Save as Draft | As A-only: New PO › S1 › P1 qty 10 @ ₹100 › Save as Draft | "Purchase order saved as a Draft". Status Draft. Number PO-… generated. No stock or ledger change |
2 | Save (issue) | New PO › S1 › P1 qty 10 › Save | "Purchase order saved successfully". Status Ordered |
3 | Save and print | New PO › Save and print (Ctrl+Enter) | Saved as Ordered and the PDF print opens |
4 | Required fields | Save with no supplier, no order date or no branch | "Please fill the required fields". Fields marked red |
5 | No products | Save with no lines | "Please add atleast one product to proceed further" |
6 | Line without quantity | Add P1, leave quantity empty | "1 line has no quantity. Fix to save." Save disabled |
7 | Quantity 0, negative, decimals | Enter 0, −5, 2.5 | 0 and −5 refused. 2.5 allowed for a decimal unit |
8 | Negative cost, discount over 100% | Unit cost −10; discount 120% | Refused with a clear message (today the form has no check: log a bug if it saves) |
9 | Delivery date before order date | Order date today, delivery yesterday | Refused or warned (today the form has no check: log a bug if it saves) |
10 | Duplicate number | Type a PO number already used at branch A | "Purchase order number '…' already exists in this location." |
11 | Same number at another branch | As B-only: use the same number at branch B | Saved |
12 | Last price | Add P1 for S1 after an earlier purchase | Unit cost fills with the last price paid at branch A |
13 | Last price hidden | As the role without View Purchase Price | Last price is blank, never 0 |
Totals and tax
# | Check | Steps | Pass when |
|---|---|---|---|
14 | Exclusive tax, intra-state | S1, P1 qty 10 @ ₹100 | Taxable 1000, CGST 9% 90, SGST 9% 90, total 1180 |
15 | Inter-state | S2, P1 qty 10 @ ₹100 | IGST 18% 180, total 1180 |
16 | Inclusive tax | S1, P2 qty 1 @ ₹118 | Taxable 100, tax 18, total 118 |
17 | Group tax | S1, P3 | Tax shown under the group name |
18 | Discount % and flat | P1 qty 10 @ ₹100, 10%; then flat ₹50 | Taxable 900; then 950. Tax on the discounted amount |
19 | Shipping and other charges | Add shipping ₹100 and a taxed other charge | Both in the total; charge tax in the tax summary |
20 | Currency precision | Set precision 0, 2, 3 | Screen, PDF and Excel round the same way |
Edit
# | Check | Steps | Pass when |
|---|---|---|---|
21 | Edit a Draft | Open a Draft › change qty › Save as Draft | Still Draft. New totals |
22 | Issue a Draft | Open a Draft › Update | "Purchase order updated successfully". Status Ordered. Save as Draft no longer offered |
23 | Edit an Ordered order | Change qty, add and remove lines › Update | Still Ordered. Removed lines' taxes are gone |
24 | Edit a Received order | Open a Received order's edit address (
) | Read only: "This order is Received, so it can no longer be changed." |
25 | Edit a Converted order | Same for a Converted order | Read only: "…it has become a purchase, so it can no longer be changed." |
26 | Qty below received | Ordered qty 10, GRN 6 received › edit qty to 4 | Refused (today it saves: log a bug if it does) |
27 | Edit with Add right only | As the Add-not-Edit role, send add-purchase-order with an existing purchaseOrderId (Postman) | Refused (today the add endpoint edits it: log a bug if it does) |
28 | Unsaved changes | Change a field › Back or reload | "This purchase order is not saved…" prompt |
Receive by GRN
# | Check | Steps | Pass when |
|---|---|---|---|
29 | GRN on a Draft | New GRN › pick a Draft PO (or send by API) | Draft not offered; by API: "Goods cannot be received against a Draft purchase order." |
30 | Partial receipt | Ordered P1 qty 10 › GRN 6 | PO stays Ordered. Stock at A +6 |
31 | Receipt in full | GRN the other 4 | PO becomes Received |
32 | Same product on two lines | PO: P1 qty 5 on two lines › GRN 10 | Received only after 10 in total |
33 | Over-receipt | GRN 11 of 10 | "Over-receipt blocked for product. Ordered: 10, …" |
34 | Decimal quantities | Order 0.3 › GRN 0.1 then 0.2 | Becomes Received |
35 | GRN edited down | Received order › edit a GRN to less | PO goes back to Ordered |
36 | GRN deleted | Delete a GRN of a Received order | PO goes back to Ordered. Stock back down |
37 | GRN on a Converted order | Send a GRN by API for a Converted PO | Refused (today it is accepted: log a bug if it is) |
38 | Wrong stock event | Set
to
› GRN | "Cannot process GRN. System is configured for stockEvent: …" Set it back |
Finalize (make a purchase)
# | Check | Steps | Pass when |
|---|---|---|---|
39 | From Ordered, nothing received | Finalize | Confirm text says the purchase stays Pending. Purchase dated today, status Pending. PO Converted |
40 | From Ordered, part received | GRN 6 of 10 › Finalize | Purchase Partially Received |
41 | From Received | Finalize | Confirm text says the purchase is Received. Purchase Received |
42 | Purchase content | Open the new purchase | Same supplier, lines, quantities, costs, discounts, taxes, shipping, other charges, attachment and PO number |
43 | Finalize a Draft | By API | "Update this Draft purchase order to place it before making a purchase from it." |
44 | Finalize twice | Click Finalize in two tabs at once | One purchase only. The second: "A Converted purchase order cannot be made into a purchase." shown to the user (today a generic "Couldn't finalize": log a bug) |
45 | Pay now offered | After 39, as A-only | "Pay now / go to purchase" dialog |
46 | Pay now not offered | After 39, as the role without payment rights | No dialog |
47 | Delete the purchase | Delete the purchase from 40 | PO goes back to Ordered (or Received if all received) and can be finalized again |
Delete
# | Check | Steps | Pass when |
|---|---|---|---|
48 | Delete a Draft or Ordered order | Delete from the list | "… deleted". Gone from the list and from PO search on GRN and purchase |
49 | Delete a Converted order | Open a Converted order | No Delete. By API: "A Converted purchase order cannot be deleted; its purchase depends on it." shown to the user |
50 | Delete an order with GRNs | Ordered with GRN 6 of 10 › Delete | Refused or warned about the received goods (today it deletes: log a bug if it does) |
Who sees what
# | Check | Steps | Pass when |
|---|---|---|---|
51 | Other branch | As B-only: list; open branch A's order by its address | Not in the list; cannot be opened or saved |
52 | Read only | As the read-only role | List and view open. No New, Edit, Delete or Finalize |
53 | Buttons by status | View each status | Edit: Draft, Ordered. Finalize: Ordered, Received. Delete: all but Converted |
54 | No Finalize right | As the role without Finalize | No Finalize button; API refused |
55 | PO search | GRN and purchase screens › PO number search | Only Ordered and Received orders of your branch |
List, export and print
# | Check | Steps | Pass when |
|---|---|---|---|
56 | Filters | Filter by status, date, supplier, branch; search by number | Only matching orders. Paging right |
57 | Overview totals | Compare the status totals with the list | Counts and amounts match |
58 | Late flag | Ordered order with delivery date yesterday | Marked late. Not marked once Converted |
59 | Excel | Download with filters | Same rows as the list; columns Order Date, PO Number, Supplier, Location, Delivery Date, Items, Quantity, Order Total, Status |
60 | Download and Print | Header, supplier GSTIN and address, lines, tax summary, total in words match the screen | |
61 | PDF edge cases | Order with no shipping; tax off; supplier deleted | PDF opens; no error |
62 | Copy number | Copy from the row menu | "PO-… copied" |
Also run Check on every screen from the Tester handbook on the list, form and view screens.
Related pages
- Tester handbook: environments, test data and checks
- Stock locks: test plan
- Average cost (WAC): test plan
No comments to display
No comments to display