FHADM2 ; HISC/REL/NCA - Enter/Edit Served Meals ;5/4/93 09:53 ;;5.5;DIETETICS;;Jan 28, 2005 EN1 ; Enter/Edit Served Meals ; Check for multidivisional site I $P($G(^FH(119.9,1,0)),U,20)'="N" D ^FHMADM2 Q D NOW^%DTC S DT=%\1 K %,%H,%I E1 S %DT="AEPX",%DT("A")="SERVED MEALS Date: " W ! D ^%DT G KIL^FHADM21:"^"[X!$D(DTOUT),E1:Y<1 S DA=+Y,(FHRM,FHSM,FHGM)=DA I DA'
FHEND!(FHSM="") D .F FHDFN=0:0 S FHDFN=$O(^FHPT("SM",FHSM,FHDFN)) Q:FHDFN'>0 D ..;W !,FHSM," ",FHDFN ..S FHMEAL=$P($G(^FHPT(FHDFN,"SM",FHSM,0)),U,9) ..Q:"BNE"'[FHMEAL!(FHMEAL="") ..S FHOPC(FHMEAL)=FHOPC(FHMEAL)+1 ; Calculate Employee, Paid, OOD, Grat and Volunteer totals (Guest Meals) F FHGM=FHGM:0 S FHGM=$O(^FHPT("GM",FHGM)) Q:FHGM>FHEND!(FHGM="") D .F FHDFN=0:0 S FHDFN=$O(^FHPT("GM",FHGM,FHDFN)) Q:FHDFN'>0 D ..;W !,FHGM," ",FHDFN ..S FHCLASS=$P($G(^FHPT(FHDFN,"GM",FHGM,0)),U,2) ..Q:"EGOPV"'[FHCLASS!(FHCLASS="") ..S FHMEAL=$P($G(^FHPT(FHDFN,"GM",FHGM,0)),U,3) ..Q:"BNE"'[FHMEAL!(FHMEAL="") ..S FHOPC(FHCLASS,FHMEAL)=FHOPC(FHCLASS,FHMEAL)+1 Q