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