Hi to all
I have form with 3 fields (VesselID,CodeID,DayBudget)
And in another form where i choose Star Date and End date
Difference between this two date is multiply with DayBudget and is store to Field Budget
so in the end i have report what is look like this:
Vessel : Test01
Code : ABC01
Budget : 2000$ (amount from choousen date)
Cost : 1000$ (amount from Code)
Total : 1000$ (Budget - Cost)
My question is:
Let say Daily Budget for Vessel Test01 was 30$ from 01/01/2002 up to 31/04/2002 and now from 01/05/2002 is change to 35$.So Today if i enter date's 01/01/2002(Start Date) and 21/05/2002(End Date) = 140 day's * with DayBudget(35$) is 4200$ what is wrong. Corect amount is :
((01/01/2002 - 30/04/2002)*30)+((01/05/2002 - 21/05/2002)*35))= Budget
any idea or suggestion?
Thanks
Fule
I have form with 3 fields (VesselID,CodeID,DayBudget)
And in another form where i choose Star Date and End date
Difference between this two date is multiply with DayBudget and is store to Field Budget
so in the end i have report what is look like this:
Vessel : Test01
Code : ABC01
Budget : 2000$ (amount from choousen date)
Cost : 1000$ (amount from Code)
Total : 1000$ (Budget - Cost)
My question is:
Let say Daily Budget for Vessel Test01 was 30$ from 01/01/2002 up to 31/04/2002 and now from 01/05/2002 is change to 35$.So Today if i enter date's 01/01/2002(Start Date) and 21/05/2002(End Date) = 140 day's * with DayBudget(35$) is 4200$ what is wrong. Corect amount is :
((01/01/2002 - 30/04/2002)*30)+((01/05/2002 - 21/05/2002)*35))= Budget
any idea or suggestion?
Thanks
Fule