Download as xlsx, pdf, or txt
Download as xlsx, pdf, or txt
You are on page 1of 8

payment/sale onAcc voc.id txn.

id pending
id pmt1 0 pmt1 ptxn1 ppnd1
vno pvno1 rcpt2 rtxn2 rpnd2
date 01/01/2023 rcpt2 rtxn2 rpnd2
branch dp -300 rcpt2 rtxn2 ppnd1
refno pref1 -200 rcpt3 rtxn3 ppnd1
desc payment1 pmt4 ptxn4 rpnd2
acTrns txn_id account cr dr
ptxn1 bwd_ac1 0 1000
cash 1000 0 create: new ref type pending id shouldnot exists i
1.check pending_id
adjs txn_id pending amount ref type
ptxn1 ppnd1 1000 new
update: new ref type pending id shouldnot exists i
1.check pending_id with ref_type
payment/sale 2.if pending amount > 0 then sum of all pe
id pmt4 3.if pending amount < 0 then sum of all pe
vno pvno4
date 01/01/2023
branch dp
refno pref4
desc payment1
acTrns txn_id account cr dr
ptxn4 bwd_ac1 0 200
cash 200 0

adjs txn_id pending amount ref type


ptxn4 rpnd2 200 adj
amount ref type voc.no voc.type date refno opening closing
1000 new pvno1 payment 01/01/2023 pref1 1000 1000-500=500
-900 new rvno2 receipt 01/01/2023 rref2 -700 -900+200=-700
200 adj rvno2 receipt 01/01/2023 rref2 -700 -700
-500 adj rvno2 receipt 01/01/2023 rref2 1000 1000-500=500
-300 adj rvno3 receipt 01/01/2023 rref3 1000 500-300=200
200 adj pvno4 payment 01/01/2023 pvno4 200 -700+200=-500

pe pending id shouldnot exists in pending table in all voucher as new ref or adj ref
ending_id

pe pending id shouldnot exists in pending table in other voucher as new ref


ending_id with ref_type
ng amount > 0 then sum of all pending amount must not be -ve
ng amount < 0 then sum of all pending amount must not be +ve
account branch
receipt/purchase onAcc voc.id txn.id pending
id rcpt2 0 pmt1 ptxn1 ppnd1
vno rvno2 rcpt2 rtxn2 rpnd2
date 01/01/2023 rcpt2 rtxn2 rpnd2
branch dp -300 rcpt2 rtxn2 ppnd1
refno rref2 -200 rcpt3 rtxn3 ppnd1
desc receipt2
acTrns txn_id account cr dr
rtxn2 bwd_ac1 1000 0
cash 0 1000
adjs txn_id pending amount ref type
rtxn2 rpnd2 -900 new
rtxn2 rpnd2 200 adj
rtxn2 ppnd1 -500 adj
receipt/purchase
id rcpt3
vno rvno3
date 01/01/2023
branch dp
refno rref3
desc receipt3
acTrns txn_id account cr dr
rtxn3 bwd_ac1 500 0
cash 0 500
adjs txn_id pending amount ref type
rtxn3 ppnd1 -300 adj
amount ref type voc.no voc.type date refno opening closing
1000 new pvno1 payment 01/01/2023 pref1 1000 1000-500=500
-900 new rvno2 receipt 01/01/2023 rref2 -700 -900+200=-700
200 adj rvno2 receipt 01/01/2023 rref2 -700 -700
-500 adj rvno2 receipt 01/01/2023 rref2 1000 1000-500=500
-300 adj rvno3 receipt 01/01/2023 rref3 1000 500-300=200
1000-500=500
-900+200=-700

1000-500=500
500-300=200
ACCOUNT DAILY SUMMARY
seq from/action/vno voucher acc date cr dr act actHide date account tntCr tntDr actCr

1 tnt/new/- ac.open dir.inc1 31.3.23 0 125 0 0 31.3.23 dir.inc1 0 125 0

FALSE
2 tnt/upd/- ac.open dir.inc1 31.3.23 0 175 0 31.3.23 dir.inc1 0 175 0
TRUE

3 act/upd/- ac.open dir.inc1 31.3.23 150 0 1 0 31.3.23 dir.inc1 0 175 150

4 tnt/upd/- ac.open dir.inc1 31.3.23 0 125 0 1 31.3.23 dir.inc1 0 125 150

5 act/upd/- ac.open dir.inc1 31.3.23 175 0 1 0 31.3.23 dir.inc1 0 125 175

1 tnt/new/S1 sale cust1 1.5.23 100 0 0 0 1.5.23 cust1 100 0 100

FALSE
2 tnt/upd/S1 sale cust1 1.5.23 125 0 0 1.5.23 cust1 125 0 125
TRUE

3 act/upd/S1 sale cust1 1.5.23 0 100 1 0 1.5.23 cust1 125 0 0

4 tnt/upd/S1 sale cust1 1.5.23 125=>150 0 0 1 1.5.23 cust1 150 0 0


actDr
act not touched, so,
125
upd act vals also
act not touched, so,
175
upd act vals also

0 act logged in, so,


dont upd tnt vals
act touched, so,
0
dont upd act vals
act logged in, so,
0
dont upd tnt vals

act not touched, so,


0 upd act vals also

act not touched, so,


0
upd act vals also
act logged in, so,
100 dont upd tnt vals

act touched, so,


100 dont upd act vals

You might also like