Professional Documents
Culture Documents
Pending Logic Change
Pending Logic Change
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
pe pending id shouldnot exists in pending table in all voucher as new ref or adj ref
ending_id
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
FALSE
2 tnt/upd/- ac.open dir.inc1 31.3.23 0 175 0 31.3.23 dir.inc1 0 175 0
TRUE
FALSE
2 tnt/upd/S1 sale cust1 1.5.23 125 0 0 1.5.23 cust1 125 0 125
TRUE