Purchase returns: test plan
For: testers checking Purchases › Purchase returns on the QA server: the return list, creating a return from a purchase, stock and supplier settlement, tax, and the journals that post. What to set up and what to check at each step.
Set up once
Make these on the QA server, as in the Tester handbook: environments, test data and checks.
- A user with all Purchase returns rights, and one role with Read only.
- Purchases already received (GRN where the location needs it) with stock on hand, for both taxable and non-taxable products.
- Prefix every test supplier and document with QA. Write down stock and supplier balance before each test.
Return list
# | Check | Steps | Pass when |
|---|---|---|---|
PR-001 | Open the list | Purchases > Purchase returns | List loads: Date, Return, Purchase, Supplier, Phone, Location, Amount, Settlement, Actions. Newest first. |
PR-002 | Filter by supplier | Type 3 letters of the supplier, pick it Data: SUP-IN | Only that supplier's returns; total count matches. |
PR-003 | Filter by date range, Created by, location | Set each filter, then Clear filters | Rows match each filter; Clear filters keeps the location scope. |
PR-004 | Sort by Date, Return, Amount | Click each sortable header twice | Rows sort up / down correctly. |
PR-005 | Paging | Change page size, next / previous Data: > 10 returns | Counts and rows correct. |
PR-006 | Export Excel | Click Export with filters on | File downloads with the filtered rows and the same amounts as the list. |
PR-007 | Settlement chip | Look at the Settlement column Data: Returns of each settlement | Off bill: "On account"; advance: "Supplier advance"; refunded: "Settled"; part: "Part settled". |
PR-008 | Phone width | Narrow the window to phone width | Cards show return, supplier, amount and chip; no side scroll. |
Create from a purchase
# | Check | Steps | Pass when |
|---|---|---|---|
PR-009 | Open return from a purchase | Purchase INV > Return (or list > New > pick purchase) Data: BILL-1 | Header "Return from INVxx"; supplier and location fixed; all bill lines listed with Returned 0; return number "Given on saving"; date today. |
PR-010 | Save with nothing returned | Open the return, Save Data: BILL-1 | Save disabled; message "Enter how many of each item went back." |
PR-011 | Return all | Click Return all Data: BILL-1 | Every line gets its full returnable qty; totals = bill totals (less earlier returns). |
PR-012 | Filter items / tabs | Filter by name and SKU; switch item tabs Data: Bill with 5+ lines | Only matching lines shown; quantities typed earlier are kept. |
PR-013 | Return date | Pick a past date; then clear the date Data: BILL-1 | Past date accepted; empty date blocks save (required). |
PR-014 | Return date before the bill date / in the future | Pick a date before the bill, then a future date Data: BILL-1 | Expected: blocked or warned (check rule). Note what happens. |
PR-015 | Own return number | Type "QA-PR-001" in Return number, save Data: BILL-1 | Saved with that number; duplicate number on a second return is refused or flagged. |
PR-016 | Leave with unsaved changes | Type a qty, press Back Data: BILL-1 | Asks to discard changes. |
Quantity
# | Check | Steps | Pass when |
|---|---|---|---|
PR-017 | Partial return | P-TAX Returned 3, save Data: BILL-1 | Saved; line 300 + tax 54 = 354. Stock / accounts: Stock P-TAX -3. |
PR-018 | Second return of the same bill | New return from BILL-1 Data: BILL-1 after PR-0xx (3 returned) | P-TAX returnable now 7; 8 blocked with "Only 7 of QA PR Taxed can still be returned." |
PR-019 | More than bought | P-TAX Returned 11 Data: BILL-1 | Line flagged, save blocked: "Only 10 ... can still be returned." |
PR-020 | Qty 0, negative, letters | Type 0, -2, "abc" Data: BILL-1 | 0 = not returned; -2 and letters not accepted or blocked with a message; no negative totals. |
PR-021 | Decimal qty for a whole-unit item | Type 1.5 Data: BILL-1 (pc) | Blocked for pc (or allowed only if the unit allows decimals). |
PR-022 | Return more than in stock | Return 5 Data: P-TAX bought 10, 8 already sold | Blocked: "Not enough stock" (cannot send back goods that were sold). Stock / accounts: Stock never negative. |
PR-023 | Over-return through the API | Send add-purchase-return with returnQuantity 50 Data: BILL-1 | Server refuses with a clear message (not 500). |
Unit cost and discount
# | Check | Steps | Pass when |
|---|---|---|---|
PR-024 | Lower unit cost than billed | P-TAX cost 90, Returned 2 Data: BILL-1 | Allowed; line 180 + tax 32.40. |
PR-025 | Higher unit cost than billed | P-TAX cost 120 Data: BILL-1 | Error "Unit price cannot exceed original invoiced rate: 100"; save blocked. |
PR-026 | Negative or zero unit cost | Cost -10, then 0 Data: BILL-1 | Blocked with a message; no negative line. |
PR-027 | Higher cost through the API | Send unitPrice 500 Data: BILL-1 | Server refuses. |
PR-028 | Amount discount shared on return | Return 5 Data: BILL-6 (line discount 100 on 10) | Discount 50; base 450; tax 81; total 531. Stock / accounts: Cr inventory 450, Cr CGST 40.50, Cr SGST 40.50, Dr AP 531. |
PR-029 | Percent discount shared on return | Return 5 Data: BILL-6 copy, 10% discount | Discount 50; base 450; tax 81; total 531. |
PR-030 | Discount on a no-tax line | Return 4 Data: P-NOTAX 10 @50, discount 50 | Discount 20; total 180; no tax row. Stock / accounts: Dr AP 180 / Cr inventory 180. |
PR-031 | Bill-level (global) discount shared | Return part of one line Data: Bill with order discount | Its share of the order discount comes off the return line (allocated discount). |
PR-032 | Rounding of the shared discount | Return 1, then 2 (two returns) Data: Discount 10 on qty 3 | Shares 3.33 + 6.67 = 10.00 (no paise lost across returns). |
With tax - calculations
# | Check | Steps | Pass when |
|---|---|---|---|
PR-033 | Exclusive GST, same state | Return P-TAX 3 Data: BILL-1, SUP-IN | Tax column 54; summary CGST 9% 27 + SGST 9% 27; total 354. Stock / accounts: Dr AP 354 / Cr Inventory (or GR/IR) 300 / Cr CGST Input 27 / Cr SGST Input 27. |
PR-034 | Exclusive GST, other state | Return P-TAX 3 Data: BILL-4, SUP-OUT | Summary IGST 18% 54 (not CGST + SGST, also while entering); total 354. Stock / accounts: Cr IGST Input 54. |
PR-035 | Inclusive tax | Return P-INCL 2 Data: BILL-5 | Line 236 holds tax 36; total 236 (tax not added again); summary CGST 18 + SGST 18. Stock / accounts: Cr Inventory 200, Cr CGST 18, Cr SGST 18, Dr AP 236. |
PR-036 | Mixed taxed + no-tax lines | Return P-TAX 3 + P-NOTAX 4 Data: BILL-1 | Subtotal 500; tax 54 only on P-TAX; total 554. Stock / accounts: Cr Inventory 500, Cr CGST 27, Cr SGST 27, Dr AP 554. |
PR-037 | Input tax blocked product | Return P-BLOCK 2 Data: BILL-7 | Total 236 (tax 36 shown). Stock / accounts: No GST credit leg; Cr Inventory 236 (tax was stock cost) / Dr AP 236. GSTR-3B ITC reversed goes down by 18 + 18. |
PR-038 | Cess | Return 1 Data: P-CESS bill | GST 28 + Cess 12 shown separately; total 140. Stock / accounts: Cr CGST 14, SGST 14, Cess 12. |
PR-039 | Reverse charge (RCM) | Return P-TAX 3 Data: BILL-9 | No tax charged to the supplier on the return; RCM tax shown as reversed. Stock / accounts: RCM reversal journal "RCM reversal for Purchase Return #": Cr RCM Input / Dr RCM Payable 54. AP only 300. |
PR-040 | Tax group summary | Return lines with GST 18% group Data: Group tax lines | Summary lists each member once; largest-remainder rounding; sum = tax column. |
PR-041 | Taxable value on return | Return P-TAX 3 + P-NOTAX 4 Data: BILL-1 | Taxable value 300 (no-tax line not counted). |
PR-042 | Rounding with odd amounts | Return 1 Data: Bill line 3 @33.33, GST 18% | Tax 6.00 (33.33 x 18% = 5.9994 rounds to 6.00); total 39.33; no 1-paise drift between screen, saved and PDF. |
PR-043 | Tax changed after the bill | Return P-TAX 2 Data: Change P-TAX to GST 12% after BILL-1 | Return uses the bill's 18% (rate snapshot), not today's 12%. |
Without tax
# | Check | Steps | Pass when |
|---|---|---|---|
PR-044 | No-tax product only | Return P-NOTAX 4 Data: BILL-10 | Tax column 0 / "-"; no tax rows in summary; total 200. Stock / accounts: Dr AP 200 / Cr Inventory 200; no tax legs. |
PR-045 | Exempt / nil product | Return P-EXEMPT 5 Data: BILL-10 | Total 200; no tax. Stock / accounts: Dr AP 200 / Cr Inventory 200. Exempt inward in GSTR-3B goes down by 200. |
PR-046 | Whole business tax off | Make a bill, then return 3 of 10 Data: BIZ-NOTAX (nova.qa) | No tax column / rows anywhere; total 300; PDF without GSTIN / tax rows. Stock / accounts: Dr AP 300 / Cr Inventory 300. |
PR-047 | Paid no-tax bill, advance | Return 2 -> Advance Data: Paid P-NOTAX bill | Supplier advance +100. Stock / accounts: Dr Supplier Deposits 100 / Cr Inventory 100. |
PR-048 | Paid no-tax bill, refund | Return 2 -> Refund to Cash Data: Paid P-NOTAX bill | Refund 100 recorded. Stock / accounts: Dr Cash 100 / Cr Inventory 100. |
PR-049 | No-bill return, no tax | New return without a purchase, P-NOTAX 2 Data: P-NOTAX | Total 100; settlement dialog. Stock / accounts: As chosen; no tax legs. |
PR-050 | PDF without tax | Download PDF Data: Any no-tax return | No tax rows, no "Taxable value" mismatch, amount in words right. |
Settlement
# | Check | Steps | Pass when |
|---|---|---|---|
PR-051 | Unpaid bill - comes off the bill | Return P-TAX 3 (354) Data: BILL-1 (due 1680) | Summary: "Comes off the bill 354"; no dialog; bill due 1326. Stock / accounts: Dr AP 354; supplier owes / "You owe" down by 354. |
PR-052 | Partly paid bill - part off bill, rest advance | Return P-TAX 3 (354) -> Advance Data: BILL-3 (due 180) | 180 comes off the bill; dialog for 174; choose Supplier advance. Stock / accounts: Bill due 0; supplier advance +174. |
PR-053 | Partly paid bill - rest refunded | Return 3 -> Refund 174 to Cash Data: BILL-3 copy | Refund form amount fixed at 174. Stock / accounts: Dr Cash 174 for the refund part. |
PR-054 | Fully paid bill - advance | Return P-TAX 2 (236) -> Supplier advance Data: BILL-2 | Dialog shows 236 beyond the bill; list chip "Supplier advance". Stock / accounts: Dr Supplier Deposits 236 / Cr Inventory 200 / Cr CGST 18 / Cr SGST 18. Pay supplier shows usable credit 236. |
PR-055 | Fully paid bill - refund | Return 2 -> Refund to bank account Data: BILL-2 copy | Account required; saved; chip "Settled". Stock / accounts: Dr Bank 236 / Cr Inventory 200 / Cr GST 36. |
PR-056 | Refund without an account | Choose Refund, leave account empty, confirm Data: BILL-2 | "Please select the account the refund was received into." Not saved. |
PR-057 | Refund when the return is fully off the bill (API) | Send paymentDetails with a refund on a fully-adjusted return Data: BILL-1 | "...fully adjusted against the bill's outstanding, so no refund can be recorded." |
PR-058 | Refund amount not equal to excess (API) | Send refund 100 for excess 236 Data: BILL-2 | Server refuses: "The refund received (...)" message. |
PR-059 | Cancel the settlement dialog | Open dialog, Cancel Data: BILL-2 | Back on the form, nothing saved, values kept. |
PR-060 | Use the advance later | Pay supplier on a new bill, Use credit Data: After advance return | Advance from the return can be applied; balance goes down. |
Return without a purchase
# | Check | Steps | Pass when |
|---|---|---|---|
PR-061 | Open a no-bill return | Purchase returns > New (no purchase) | Header "New purchase return"; supplier search, location pick, item search. |
PR-062 | Save with no supplier / location / items | Leave each empty, Save | "Add the items being returned." / "Please fill all required fields (Supplier, Location, etc.)" |
PR-063 | Supplier search | Type 2 letters, then 3 letters / phone Data: SUP-IN | No search under 3 letters; name or phone finds the supplier; only suppliers listed. |
PR-064 | Add the same item twice | Pick P-TAX twice Data: P-TAX | One line with qty 2 (not two lines). |
PR-065 | Cost above highest price in last 30 days | Cost 150 Data: P-TAX last bought at 100 | "Unit price cannot exceed highest purchase price in last 30 days: 100"; blocked. |
PR-066 | Settle as supplier advance | Save -> Supplier advance Data: P-TAX 2 | Saved; chip "Supplier advance". Stock / accounts: NBPR_ADV journal: Dr Supplier Deposits 236 / Cr Inventory 200 / Cr GST 36. |
PR-067 | Settle as full refund | Save -> Refund, account Cash Data: P-TAX 2 | Refund must equal the return total (236). Stock / accounts: NBPR_REFUND journal: Dr Cash 236 / Cr Inventory 200 / Cr GST 36. |
PR-068 | Refund not equal to the total | Refund form 200 for a 236 return Data: P-TAX 2 | "The refund must match the return total." |
PR-069 | Switch settlement on edit | Edit, try to change to refund Data: Saved advance no-bill return | Refused: "...was settled as ADVANCE and cannot be switched to REFUND. Delete the return and record it again." |
PR-070 | Item never bought from this supplier | Add P-TAX for SUP-OUT Data: P-TAX never bought from SUP-OUT | No price ceiling found - check that the cost cannot be anything at all. |
Price change (no goods back)
# | Check | Steps | Pass when |
|---|---|---|---|
PR-071 | Credit for a lower price | Turn on price change, P-TAX credit before tax 100 Data: BILL-1 | Columns: Cost, Credit before tax, Tax, Amount; tax 18 added; total 118. Stock / accounts: Stock unchanged; Cr Inventory 100 / Cr GST 18 / Dr AP 118. |
PR-072 | Price change on a no-tax line | Credit 50 on P-NOTAX Data: BILL-10 | Total 50; no tax. Stock / accounts: Stock unchanged; Cr Inventory 50. |
PR-073 | Price change with no credit | Turn on, Save Data: BILL-1 | "Enter the credit on at least one item." |
PR-074 | Credit more than the line value | Credit 5000 Data: BILL-1 (P-TAX line 1000) | Should be blocked (credit cannot exceed the line). Note result. |
PR-075 | Switching mode clears lines | Type qty, switch to price change, back Data: BILL-1 | Quantities and credits reset each time. |
Batch and stock
# | Check | Steps | Pass when |
|---|---|---|---|
PR-076 | Return a batch-tracked item | Return P-BATCH 3, pick batch B1 Data: BILL-8 | Batch picker shown; saved with B1. Stock / accounts: B1 5 -> 2; B2 unchanged; product stock -3; stock history "Purchase return". |
PR-077 | More than the batch holds | Return 6 from B1 (has 5) Data: BILL-8 | Blocked with a message. |
PR-078 | No batch picked | Return 2 without a batch Data: BILL-8 | Asked to pick a batch (or a rule is shown). |
PR-079 | Stock goes down at the right location | Return P-TAX 3 Data: BILL-1 at Arputham India | - Stock / accounts: Stock at Arputham India -3; other locations unchanged; stock value down by 300 (incl. blocked tax case: by full cost). |
PR-080 | Return of a bill whose goods are not received yet (GRN mode) | Return 2 Data: Pending bill, stock on GRN | Blocked or handled without negative stock / GR-IR left open. Note result. |
Other charges and round off
# | Check | Steps | Pass when |
|---|---|---|---|
PR-081 | Charges on the bill | Return all items Data: BILL-11 | Charges (Travel / Transport) are not on the return lines; confirm with the business whether freight should be reversed. Stock / accounts: Charge accounts untouched. |
PR-082 | Round off | Return all items Data: BILL-11 (bill rounded to 250) | Return total and how it is rounded; bill due after return not left at 0.06 or -0.06. Stock / accounts: Round Off account reversed in the same way. |
View and actions
# | Check | Steps | Pass when |
|---|---|---|---|
PR-083 | View a return | Open it Data: Any saved return | Supplier, return no., date, purchase link, lines, tax summary, total, settlement shown and match the saved data. |
PR-084 | Open purchase / supplier | Actions > Purchase, Supplier Data: Linked return | Opens the bill and the supplier profile. |
PR-085 | View refunds | Actions > Refunds Data: Refund-settled return | Refund rows listed; no "add refund" (refunds only at save). |
PR-086 | Copy return number | Actions > Copy Data: Any | "<number> copied". |
PR-087 | Download PDF (with tax) | Actions > Download PDF Data: Return from BILL-1 | PDF: supplier with GSTIN, original bill no., lines, CGST / SGST (or IGST), total, amount in words - all match the screen. |
PR-088 | Download PDF (without tax) | Download PDF Data: No-tax return | No tax rows; total right. |
PR-089 | Print / Save and print | Print; and Save > Save and print on a new return Data: Any | Same PDF opens for printing. |
Edit
# | Check | Steps | Pass when |
|---|---|---|---|
PR-090 | Edit loads saved values | Edit Data: Saved return | Header "Edit <no>"; quantities, cost, tax, total same as saved. |
PR-091 | Increase quantity | Edit to 5, Update Data: Return P-TAX 3 from BILL-1 | Total 590; bill due down by another 236. Stock / accounts: Journal re-posted for 590; stock -5 in total. |
PR-092 | Decrease quantity | Edit to 2, Update Data: Return P-TAX 5 | Total 236; bill due goes back up. Stock / accounts: Stock +3 back; journal for 236. |
PR-093 | Lower an advance that was already used | Edit to 1 (118) Data: Advance return 236, 200 of it used on a payment | Refused: "Cannot reduce purchase return ... only 36 ... still unused." |
PR-094 | Settlement locked on edit | Edit Data: Refund-settled return | Advance / refund choice cannot be switched. |
PR-095 | Edit a no-tax return | Change qty Data: No-tax return | Totals without tax; no tax rows appear. |
Delete
# | Check | Steps | Pass when |
|---|---|---|---|
PR-096 | Delete a return | Actions > Delete > confirm Data: Off-bill return | Dialog: supplier, amount, "Puts its items back into stock", "Removes its return entries from the accounts". Deleted from list. Stock / accounts: Stock back; journal removed; bill due back up. |
PR-097 | Delete a refund-settled return | Delete Data: Refund return | Dialog also says it reverses the refund. Stock / accounts: Refund entry reversed. |
PR-098 | Delete when its advance was used | Delete Data: Advance return, advance used | Blocked dialog showing where the advance was used. |
PR-099 | Cancel the delete | Delete > Cancel Data: Any | Nothing changes. |
PR-100 | Cancel / delete the purchase that has a return | Try to cancel the purchase Data: BILL-1 with a return | Blocked: "Purchase return <no> ..." must be removed first. |
Supplier, bill and reports
# | Check | Steps | Pass when |
|---|---|---|---|
PR-101 | Bill after a return | Open the purchase Data: BILL-1 + return 354 | Returned quantity / return listed; due 1326; status updates. |
PR-102 | Supplier profile | Open supplier Data: SUP-IN | "You owe" down by the return; advance shown when kept as advance; activity lists the return. |
PR-103 | Supplier statement | Statement tab Data: SUP-IN | Return on the correct side (reduces what we owe); running balance right. |
PR-104 | Trial balance | Compare trial balance before / after Data: Each return | Debit = credit; only the expected accounts move. |
PR-105 | GSTR-3B / input tax | Reports > GSTR-3B for the month Data: Return with tax | ITC reduced by the return tax (or shown as debit note); blocked-tax return changes "ITC reversed" only. |
PR-106 | GSTR-3B exempt inward | GSTR-3B Data: Exempt return | Exempt / nil inward reduced; never negative. |
PR-107 | Stock and purchase reports | Stock report, stock history, purchase report | Return appears with right qty / value. |
Access and safety
# | Check | Steps | Pass when |
|---|---|---|---|
PR-108 | User without write access | Open list and a return Data: Role with view only | No New / Edit / Delete; Save hidden or disabled. |
PR-109 | Double click Save | Click Save twice fast Data: Any new return | Only one return saved. |
PR-110 | Server error message | Cause a refusal (e.g. over-return via API) Data: Any | Clear message on screen, not "Something went wrong" / 500. |
Refund / payment methods
# | Check | Steps | Pass when |
|---|---|---|---|
PR-111 | Refund by bank transfer | Refund Received > Bank Transfer > account, bank details, txn no Data: Paid bill, return 118 | Refund saved with txn no / bank name / account no; view lists it. Stock / accounts: Dr Bank 118 / Cr Inventory 100 / Cr CGST 9 / Cr SGST 9. |
PR-112 | Refund by cheque | Refund Received > Cheque > cheque no, bank, date Data: Paid bill or no-bill return | Refund saved; cheque tracked as pending. Stock / accounts: Dr Cheques in hand / Cr Inventory, GST. |
PR-113 | Refund by cash | Refund Received > Cash > Cash in Hand Data: No-bill return 118 | Refund saved. Stock / accounts: Dr Cash 118 / Cr Inventory 100 / Cr GST 18. |
PR-114 | Pay supplier by bank transfer | Pay supplier 200, Bank Transfer, bank account, txn no Data: Bill due | Bill due down 200; txn saved. Stock / accounts: Dr AP 200 / Cr bank 200. |
PR-115 | Pay supplier by cheque | Pay supplier 100, Cheque, cheque no / bank / date Data: Bill due | Bill due down 100; cheque PENDING. Stock / accounts: Dr AP 100 / Cr Cheques Payable 100. |
PR-116 | Cheque fields required | Choose Cheque, leave cheque no / bank / date empty | Confirm stays disabled until all three are filled. |
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
- Purchases: test plan
No comments to display
No comments to display