hi,
I think i would have a hard time solving this via rumtime. I was thinking that
during the data entry at first there will be no calculation basamt would be set to any amt
see figure (a). then after saving i will port it to a temporary table then i'll run an update
script to correct the figures. My problem is how would i do the calculations.
let's say i have limit for 'ROOM' which is the basic amount equals to 600.
this basic amount of the same iexcod should be depreciated accordingly see figure (b) for simulation.
thank you for your time.
figure (a)
iexcod basamt
ROOM 200 <<<--- this is the allowable amount for basamt which was pre-computed
if you would notice there is an amount 200 for iexcod ROOM which
shouldn't be the case my problem here is the amount 200 should be
deducted to 600 and so on see figure (b) for the simulation
SURG 300
ROOM 200
ROOM 200
ROOM 200
thanks,
danny
figure (b)
iexcod basamt
ROOM 200
SURG 300
ROOM 400 <<<-- 600 less 200 .. wherein 600 is base on the basic amount limit as stated above
ROOM 200 <<<-- 400 less 200 .. wherein 200 is the allowable amount
ROOM 0 <<<-- 200 less 200 .. wherein 200 is the allowable amount