[FONT="]I have created a db with three tables (please see pdf attachment for details/relationships).
The one table is the vendors’ info, the second is the bills info and the third is the categories of splitting each bill (project/office expense).
I have a query that calculates taxes,total for each bill.[/FONT]
[FONT="]
[/FONT]
[FONT="]There are the following cases of splitting a bill to various project codes:[/FONT]
[FONT="]
[/FONT]
[FONT="] 1. No split (only projects): I would like to calculate: AA=total bill or [/FONT][FONT="]BMZ=total (depends[/FONT][FONT="] on choice of project [/FONT][FONT="]code)
[/FONT]
[FONT="] 2. Split to office: I would like to calculate: AA=60% total bill and BMZ=40% total bill
3. Split between [/FONT][FONT="][FONT="][FONT="]projects:[/FONT][/FONT] I would like to be able to type the amount [/FONT][FONT="]for each field
4. Split between project for project [/FONT][FONT="][FONT="] & office[/FONT]:
- for project I would like to be able to input [/FONT][FONT="][FONT="]the amount
[/FONT]- for office: calculate:
i) AA= 60% of (Total bill-Project amount)
ii) BMZ=40% of (Total bill-Project amount)
I know how to do case 1 & 2. I am confused with cases 3 & 4. How to proceed when there are multiple splits and not just one?
please let me know if any more clarifications are needed.
thank you in advance.[/FONT]
The one table is the vendors’ info, the second is the bills info and the third is the categories of splitting each bill (project/office expense).
I have a query that calculates taxes,total for each bill.[/FONT]
[FONT="]
[/FONT]
[FONT="]There are the following cases of splitting a bill to various project codes:[/FONT]
[FONT="]
[/FONT]
[FONT="] 1. No split (only projects): I would like to calculate: AA=total bill or [/FONT][FONT="]BMZ=total (depends[/FONT][FONT="] on choice of project [/FONT][FONT="]code)
[/FONT]
[FONT="] 2. Split to office: I would like to calculate: AA=60% total bill and BMZ=40% total bill
3. Split between [/FONT][FONT="][FONT="][FONT="]projects:[/FONT][/FONT] I would like to be able to type the amount [/FONT][FONT="]for each field
4. Split between project for project [/FONT][FONT="][FONT="] & office[/FONT]:
- for project I would like to be able to input [/FONT][FONT="][FONT="]the amount
[/FONT]- for office: calculate:
i) AA= 60% of (Total bill-Project amount)
ii) BMZ=40% of (Total bill-Project amount)
I know how to do case 1 & 2. I am confused with cases 3 & 4. How to proceed when there are multiple splits and not just one?
please let me know if any more clarifications are needed.
thank you in advance.[/FONT]
Attachments
Last edited: