Skip to main content

Purchases: test plan

For: testers checking Purchase › Purchases (vendor bills) on the QA server before release. What to set up, and what to check when a bill is created, received, edited, deleted and added to by a debit note. Checks marked ⚠ are suspected bugs found in the code: log a bug if they fail.

Set up once

Make these on the QA server, as in the Tester handbook: environments, test data and checks.

You need

Why

Setting 

PUR.stockEvent

 = 

ON_BILL

, then 

ON_GRN

Sections B and C each need their mode. A bill keeps the mode in force when it was created

Two branches, A and B

To check a bill stays in its own branch

User A-only: holds branch A only, all Purchase and GRN rights

The normal user

User B-only: holds branch B only

To check a bill is invisible to other branches

A role with Purchase read only

To check buttons are hidden

A role with Purchase Add but not Edit

To check edits are refused

A role without Purchase Delete

To check Delete is hidden

A role without View Purchase Price

To check cost 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)

Supplier S3 under reverse charge (RCM)

RCM entry

Product P1 with GST 18% exclusive

The normal case

Product P2 with GST 18% inclusive

Inclusive tax

Product P3 with a tax group; P4 exempt

Group tax; tax-free line

Before each test, note the bill status, on-hand and In transit of each product at branch A (Stock report), the product purchase price, and the supplier balance.

A. Create (both modes)

#

Check

Steps

Pass when

1

Number generated

New purchase › S1 › P1 qty 10 @ ₹100 › leave number blank › Save

Number INV-… generated

2

Supplier invoice number

Type the supplier's invoice number › Save

Saved with that number

3

Required fields

Save with no supplier, no date, no branch or no product

Refused with a clear message

4

Quantity 0, negative, decimal

Enter 0, −5, 2.5

0 and −5 refused. 2.5 allowed for a decimal unit

5

Closed financial year

Date in a closed financial year

Refused

6

Locked tax period

Date in a filed / locked tax period

Refused

7

Intra-state tax

S1, P1 qty 10 @ ₹100

CGST 9% 90, SGST 9% 90, total 1180

8

Inter-state tax

S2, P1 qty 10 @ ₹100

IGST 18% 180, total 1180

9

Inclusive tax

S1, P2 qty 1 @ ₹118

Taxable 100, tax 18, total 118

10

Group tax, exempt

S1, P3; then P4

Tax under the group name; no tax on P4

11

Reverse charge

S3, P1

Separate RCM ledger entry (Dr RCM ITC / Cr RCM Payable)

12

Discounts and charges

Discount %, then flat; shipping; a taxed other charge

Totals and tax summary right

13

Payment term

Pick a payment term

Due date calculated from the bill date

14

Pay in full

Add a payment for the full total › Save

Bill Paid. Ledger and supplier balance right

15

Part payment, several methods

Pay part by cash and part by bank

Balance due right

16

Overpayment

Pay more than the total

Excess goes to supplier advance

17

Partially Received by hand

Send the status Partially Received by API

"A purchase cannot be saved as Partially Received; GRNs set it."

18

Last price

Add P1 for S1 after an earlier bill; then as the role without View Purchase Price

Fills with the last cost paid; blank (never 0) for that role

B. ON_BILL mode (stock comes in on the bill)

#

Check

Steps

Pass when

19

Save as Received

P1 qty 10 @ ₹100 › Received › Save

Stock at A +10 at ₹100. Product purchase price = cost without tax

20

⚠ Save as Pending or Shipped

P1 qty 10 › Pending › Save

Confirm with the team: the code adds stock even for a Pending bill, but does not update the cost

21

Edit: raise quantity

Edit qty 10 → 15

Only +5 added to stock

22

Edit: remove a line

Remove a line › Save

Its stock taken out at the cost it came in at

23

Edit: cost only

Change unit cost, same qty

No stock quantity change

24

⚠ Same product on two lines

Bill P1 on two lines › edit a quantity

Saves with no error

25

GRN on an ON_BILL bill

New GRN against this bill

"This purchase was received by bill, so its goods are already in stock; a GRN cannot receive them again."

C. ON_GRN mode (stock comes in on the GRN)

#

Check

Steps

Pass when

26

Save as Pending

P1 qty 10 › Pending › Save

No stock change

27

Partial receipt

GRN 6 of 10

Bill Partially Received. Stock +6

28

Receipt in full

GRN the other 4

Bill Received

29

GRN deleted

Delete a GRN

Status goes back to Partially Received or Pending. Stock back down

30

Over-receipt

GRN 11 of 10

"Over-receipt blocked for product…"

31

Shipped

Edit a Pending bill to Shipped

In transit +10

32

⚠ New bill saved as Shipped

New bill › Shipped › Save › Product › Stock history

The In transit row is linked to this bill

33

GRN while Shipped

GRN 6 on a Shipped bill

In transit −6, stock +6

34

⚠ Shipped and received in full

Shipped bill › GRN all 10

Status should become Received (today it may stay Shipped)

35

Shipped back to Pending

GRN 6 › change Shipped to Pending

Only the 4 not received leave In transit

36

⚠ Received by hand, no GRN

Pending bill › pick Received › Save

No stock moves. Decide whether this should be allowed

37

Below received quantity

GRN 6 › edit bill qty to 4

"…cannot be lowered to 4: 6.0 of it are already received on GRNs of this purchase"

38

Bill cost differs from GRN

GRN at ₹100 › bill at ₹110

GRN batches repriced to ₹110

D. Edit (both modes)

#

Check

Steps

Pass when

39

Two edits at once

Open the same bill in two tabs › save both

Second: "…was changed by another save while this one was being made. Reload the purchase and make your changes again."

40

Bill with a debit note

Add a debit note › edit the bill

"This bill has debit notes. Delete them before you change the bill."

41

Below returned quantity

Return 3 › edit bill qty to 2

"…cannot be lowered to 2: 3.0 of it are already returned against this purchase"

42

Total raised after part payment

Pay 500 of 1180 › raise total

Payable raised. Balance right

43

Total lowered below paid

Pay 1180 › lower total to 1000

180 goes to supplier advance

44

⚠ Supplier or date only

Change only the supplier, then only the date (same total)

Journal shows the new supplier and date

45

Receiving mode unknown

Edit an old bill with no recorded mode › change qty

"This purchase cannot be changed in its status, lines, costs, batches or amount…"

46

Add right only

As the Add-not-Edit role, edit a bill

Refused

E. Delete

#

Check

Steps

Pass when

47

Clean bill

Delete check on an unpaid bill

Allowed

48

Paid bill

Bill with a payment › Delete

Blocked: "… has been paid to … A paid or part-paid bill is reversed with a purchase return (debit note)…"

49

Bill with a return

Bill with a purchase return › Delete

Blocked: "Purchase return … was made against bill …"

50

Bill with a debit note

Delete

Blocked: "Supplier debit note … Remove it first, then delete the bill."

51

Closed year or filed period

Delete a bill in that period

Blocked

52

Receiving mode unknown

Delete an old bill with no recorded mode

Blocked: "…Ask your administrator to classify it."

53

ON_BILL delete

Delete a Received bill

Stock taken out. Ledger, payment and credit reversed

54

ON_GRN delete

Delete a bill with GRNs

No stock change (the GRNs keep it). Ledger reversed

55

⚠ ON_GRN Shipped bill

Shipped bill › Delete

In transit back to 0

56

Bill from a PO

Delete a bill made by finalizing a PO

PO back to Ordered or Received

57

No Delete right

As the role without Delete

No Delete button; API refused

F. Debit note

#

Check

Steps

Pass when

58

Debit note on a bill

Add ₹50 on a bill line

Saved. No stock or cost change. Tax can be claimed

59

On a debit note

Pick a debit note as the bill

"A debit note can be recorded only against a bill."

60

Dated before the bill

Date earlier than the bill

"A debit note cannot be dated before its bill."

61

All amounts 0

Save with no amount

"Enter the amount to add on at least one item."

62

Line not on the bill

Send a line of another bill by API

"A debit note line is not on its bill."

G. Who sees what, list and print

#

Check

Steps

Pass when

63

Other branch

As B-only: list; open branch A's bill by its address

Not in the list; cannot be opened

64

Read only

As the read-only role

List and view open. No New, Edit or Delete

65

Cost hidden

As the role without View Purchase Price

Cost blank, never 0

66

Filters and overview

Filter by status, date, supplier; compare overview

Only matching bills. Totals match the list

67

Downloads

Excel, PDF, bulk PDF, ZIP

Match the screen. Too many bills: batch limit message

68

Attachment

Upload, with and without the upload right

Only with the right

Also run Check on every screen from the Tester handbook on the list, form and view screens.

  • Purchase orders: test plan
  • Tester handbook: environments, test data and checks
  • Stock locks: test plan
  • Average cost (WAC): test plan