I have following tables and fields for cash book
Transactions-id,Heads,Subheads,Date,Amount,
Heads-id,heads
Subheads-id,heads,subheads
Entry doneby-id,Name
i want to put details in transactions table based on head i have chosen which can be either reciept and payment I want to make Reciept Details and Payment details Seperate tables as there is diffrent type of details required
I am unable to link Table-Reciept details/Payment details as each table is individually related to one and only one record in Heads table ,unable to understand how to make a join so as to relate reciepts head to reciept details and payment head to payment details so as when i choose reciept head in transaction table i have to fill details pertaining to reciept only
Transactions-id,Heads,Subheads,Date,Amount,
Heads-id,heads
Subheads-id,heads,subheads
Entry doneby-id,Name
i want to put details in transactions table based on head i have chosen which can be either reciept and payment I want to make Reciept Details and Payment details Seperate tables as there is diffrent type of details required
I am unable to link Table-Reciept details/Payment details as each table is individually related to one and only one record in Heads table ,unable to understand how to make a join so as to relate reciepts head to reciept details and payment head to payment details so as when i choose reciept head in transaction table i have to fill details pertaining to reciept only