Stock transfers: test plan
For: testers checking Products › Stock transfers on the QA server before release v2.7.0. What to set up, and what to check for each step of a transfer. The rules are in Stock transfers: the rules.
Set up once
Make these on the QA server, as in the Tester handbook: environments, test data and checks.
| You need |
Why |
| Two branches, A and B, each with the v2.7.0 transfer posting templates |
Every transfer needs two branches. A branch without templates refuses |
| A third branch C without transfer posting templates |
To check the refusal |
| User A-only: holds branch A only, all Stock Transfers rights |
Sends from A |
| User B-only: holds branch B only, all Stock Transfers rights |
Receives at B |
| User AB: holds both branches, all Stock Transfers rights |
To cancel |
| User C-only: holds branch C only |
To check a transfer is invisible to others |
| A role with Stock Transfers Read only |
To check buttons are hidden |
| A role without View Purchase Price |
To check cost is hidden |
| Product P1: SKU at both A and B, 50 on hand at A, average cost ₹100 at A |
The normal case |
| Product P2: exists at A only |
To check "Add SKU at the receiving branch first" |
| Product P3: batch-tracked |
To check it is refused |
| Product P4: average cost 0 at A, purchase price without tax ₹80 |
To check the last purchase cost fallback |
| Product P5: average cost 0 and no purchase price |
To check it is refused |
Write down, before each test, the on-hand quantity, In transit (transfer) and average cost of each product at both branches (Stock report).
Draft
| # |
Check |
Steps |
Pass when |
| 1 |
Save a draft |
As A-only: New transfer › From A, To B › add P1 qty 10 › Save |
Saved as Draft with a number TRF-…. Stock at A and B unchanged. No ledger entry |
| 2 |
Same branch |
From A, To A |
"The two branches must be different." Cannot save |
| 3 |
No items |
Save with no products |
"Add at least one product to transfer." |
| 4 |
Same product twice |
Add P1 twice |
"A product can be on a transfer only once." |
| 5 |
Quantity 0, negative, 7 decimals, 10 digits |
Enter each |
Refused with a clear message |
| 6 |
Batch-tracked |
Add P3 › Save |
"Transfers of products kept in batches are not supported yet" |
| 7 |
Edit a draft |
Change qty and remarks › Save |
Saved. Branches cannot be changed |
| 8 |
Delete a draft |
Delete from the list |
Gone. No stock or ledger change |
| 9 |
Sending branch not held |
As B-only: New transfer From A |
Refused, or A is not offered |
Dispatch
| # |
Check |
Steps |
Pass when |
| 10 |
Normal dispatch |
As A-only: dispatch draft P1 qty 10 |
Status Dispatched. A on hand 50 → 40. B on hand unchanged, B In transit (transfer) +10. Unit cost on the transfer = ₹100 (A's average). A's average unchanged |
| 11 |
Ledger |
Accounts › journal, reference TRF-…-D |
At A: Dr Inter-Branch Receivable 1000 / Cr Inventory 1000. At B: Dr Stock Transfer In Transit 1000 / Cr Inter-Branch Payable 1000 |
| 12 |
Stock history |
Product P1 › Stock history at A and at B |
A: a Transfer Out row of 10 with unit cost 100, method WAC. B: in transit From transfers 10 |
| 13 |
Not enough stock |
Draft P1 qty 60 (A has 40) › Dispatch |
"Not enough stock to transfer: …". Nothing changes at A or B |
| 14 |
Missing at receiving branch |
Draft P2 › Dispatch |
"Add SKU … at the receiving branch first". Nothing changes |
| 15 |
Fallback cost |
Draft P4 qty 5 › Dispatch |
Unit cost ₹80. Ledger note ends "(cost basis: last purchase cost)" |
| 16 |
No cost |
Draft P5 › Dispatch |
"There is no cost for …". Nothing changes |
| 17 |
Branch without templates |
Draft A → C › Dispatch |
Refused. Nothing changes at A |
| 18 |
Locked period |
Lock the current financial period at B › Dispatch A → B |
Refused. Unlock afterwards |
| 19 |
Dispatch twice |
Click Dispatch twice fast, or in two tabs |
One dispatch only. The second: "Only a draft transfer can be dispatched; this one is DISPATCHED" |
| 20 |
Edit after dispatch |
Open a dispatched transfer |
No Edit or Delete |
Receive
| # |
Check |
Steps |
Pass when |
| 21 |
Receive in part |
As B-only: Receive › enter 4 of 10 › Receive now |
Status Partially received. B on hand +4, B in transit 10 → 6 |
| 22 |
Average at the receiving branch |
Before: B has 20 of P1 at ₹130 |
After receiving 4 at ₹100: B average = (20×130 + 4×100) ÷ 24 = ₹125 |
| 23 |
Ledger |
Journal, reference TRF-…-R1 |
At B: Dr Inventory 400 / Cr Stock Transfer In Transit 400 |
| 24 |
Receive the rest |
Receive all outstanding › Receive now |
Status Received. B in transit 0. Reference TRF-…-R2 for 600. In transit account at B nets to 0 |
| 25 |
More than outstanding |
Enter 7 when 6 are outstanding |
"More was received of … than is outstanding (6)" |
| 26 |
Nothing entered |
Receive now with all zero |
"Enter a quantity above zero on at least one line." |
| 27 |
Receive at sending branch |
As A-only: open the dispatched transfer |
No Receive button |
| 28 |
Receive a received transfer |
Receive again on a Received transfer |
No button, or "Nothing is waiting to be received on this transfer; it is RECEIVED" |
| 29 |
Locked period |
Lock the period at B › Receive |
Refused. Unlock afterwards |
Cancel
| # |
Check |
Steps |
Pass when |
| 30 |
Cancel needs both branches |
As A-only: open a dispatched transfer |
Cancel disabled, tip "Cancelling needs access to both the source and the destination branch" |
| 31 |
Cancel in full |
As AB: Cancel a dispatched transfer of P1 qty 10 |
Status Cancelled. A on hand +10, B in transit −10 |
| 32 |
Cost on cancel |
Check A's average after 31 |
Goods came back at the dispatch cost. If A's average moved since dispatch, the new average blends the dispatch cost in |
| 33 |
Ledger |
Journal for TRF-…-D |
Both dispatch entries reversed |
| 34 |
Cancel after a receipt |
Receive 1 › then Cancel |
"Only a dispatched transfer with nothing received can be cancelled; this one is PARTIALLY_RECEIVED" |
Who sees what
| # |
Check |
Steps |
Pass when |
| 35 |
Other branch |
As C-only: list; open a transfer A → B by its address |
Not in the list. Opening it: "No such transfer" |
| 36 |
Read only |
As the Read-only role |
List and view open. No New transfer, Edit, Delete, Dispatch, Receive or Cancel |
| 37 |
Cost hidden |
As the role without View Purchase Price |
Unit cost is blank, never 0 |
| 38 |
List filters |
Filter by each status; search by number, branch name, remarks |
Only matching transfers, newest first. Paging is right |
Reports
| # |
Check |
Steps |
Pass when |
| 39 |
Stock report |
Reports › Stock, during and after a transfer |
In transit (transfer) column matches what is outstanding |
| 40 |
Stock history totals |
Product › Stock history |
Transfer In and Transfer Out totals match the transfers |
Also run Check on every screen from the Tester handbook on the list, form and view screens.
Related pages
No comments to display
No comments to display