Hello
I am using 4 tables :
1- tbl_year: id, year, name
2- tbl_insurance: id, name
3- tbl_insurancetarrif: id, year_id, insurance_id, amount, desc
4- tbl_invoice: id, customer, year_id, insurance_id, amount
tbl_year
id year name
1 201801 2018-01
2 201802 2018-02
tbl_insurance
id name
1 ACompany
2 BCompany
tbl_insurancetarrif
id year_id insurance_id amount note
1 1 1 300$ record1- ACompany - 201801
2 2 1 320$ record2- ACompany - 201802
3 1 2 400$ record3- BCompany - 201801
4 2 2 500$ record4- BCompany - 201802
Now, On tbl_invoice i am using lookup with order
1- tbl_insurance.id -> show name
2- tbl_year.id -> show year
now i need to filter tbl_year.id based on tbl_insurance.id when in the table tbl_insurancetarrif both available.
How can I solve this with PHPMaker 2018?
Thanks