Rathi,
Very good suggestion
My old Clipper apps has following structure:
Code: Select all
CREATE TABLE ledger;
(vrtype n(2, 0), vrno c(10), vrdt d, acctcd1 n(4, 0), subaccd1 n(4, 0), drcr l, acctcd2 n(4, 0), subaccd2 n(4, 0), amt n(12, 2), narr c(80), duedt d)
My old VFP apps have following structure:
Code: Select all
CREATE TABLE ledger;
(accyrid c(10), lftype c(10), docno c(10), docdt d, dracctid c(10), drsubaccid c(10), cracctid c(10), crsubaccid c(10), amt y, banknm c(20), chqno c(10), chqdt d, cashedon d, narr1 c(40), narr2 c(40))
In both cases tables are strictly for double entry system
And your given table structure is better
But, problem for which I was asking help is for a Payroll system. And I shall use the query for calculating monthly salary register from daily attendance table (working days, absent days, paid leave etc.)

I created the example (about debit, credit) so that I can explain the problem simply
I have very little knowledge about Accounts (My major was Chemistry

). I am learning basics of accounts from my clients

Yes, my clients are very good teachers for me
So, your Financial Accounting software is an excellent help for me
Thanks a lot friend.
With best regards.
Sudip