Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ABSPOSBC

ABSPOSBC.m

Go to the documentation of this file.
ABSPOSBC ; IHS/FCS/DRS - POS billing - new ;   
 ;;1.0;PHARMACY POINT OF SALE;**38,48**;JUN 21, 2001;Build 38
 ;
 Q
 ;
 ;  TRANSACT - transaction complete - called from STATUS99^ABSPOSU,
 ;    to request that this transaction be posted.
 ;
TRANSACT(IEN57) ; EP -
 D SETFLAG(IEN57,1) ; set the flag
 ;;IHS/OIT/RAN - 03162010 Patch 38 -- print pharmacy expense report
 D MAIN^ABSPOSPE(IEN57)
 D SCHEDULE^ABSPOSBD() ; schedule the background job, if needed
 Q
 ;
 ; SETFLAG - set the billing flag for this transaction
 ;   VALUE = 1 for needs billing
 ;   VALUE = 0 for billing done
 ;
SETFLAG(IEN57,VALUE) ;EP -
 D
 . N FDA,MSG ; clear the "needs billing" flag
 . S FDA(9002313.57,IEN57_",",.16)=VALUE
SF1 . D FILE^DIE(,"FDA","MSG")
 . I $D(MSG) D LOG^ABSPOSL2("SF1^ABSPOSBC",.MSG) ; /IHS/OIT/RAM ; 12 JUN 17 ; AND LOG IT IF AN ERROR OCCURS.
 . I $D(MSG) D  G SF1:$$IMPOSS^ABSPOSUE("FM","TRI",.FDA,.MSG,"SETFLAG",$T(+0))
 . . D ZWRITE^ABSPOS("FDA","MSG")
 Q