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

ABMDRTX.m

Go to the documentation of this file.
  1. ABMDRTX ; IHS/ASDST/DMJ - Transmittal Report ;
  1. ;;2.6;IHS 3P BILLING SYSTEM;;NOV 12, 2009
  1. ;Original;TMD;
  1. ;
  1. K ABM
  1. S ABM("PRIVACY")=1
  1. S ABM("SUBR")="ABM-TX2" K ^TMP("ABM-TX2",$J)
  1. SELB W ! K DIR S DIR(0)="YO",DIR("A")="List BILLS for all EXPORT BATCHES that havn't been Previously Printed",DIR("B")="Y"
  1. S DIR("?")="Answer 'YES' if it is desired to print a Transmittal List that contains all bills associated with the Export Batches which have not been previously printed." D ^DIR K DIR
  1. G XIT:$D(DIRUT)
  1. G SELBE:'Y
  1. S DA=0 F S DA=$O(^ABMDTXST(DUZ(2),"AT",1,DA)) Q:'DA D
  1. .Q:'$D(^ABMDTXST(DUZ(2),DA,0))
  1. .S DIE="^ABMDTXST(DUZ(2),",DR=".08///@" D ^ABMDDIE Q:$D(ABM("DIE-FAIL"))
  1. .S ABM("DFN",DA)="",ABM("DT")=$P(^ABMDTXST(DUZ(2),DA,0),U)
  1. I '$O(ABM("DFN","")) W !!,*7,"*** A Transmittal List has already been Printed for all Export Batches! ***",! K DIR S DIR(0)="E" D ^DIR G XIT
  1. G TYP
  1. ;
  1. SELBE W !! K DIC S ABM("C")=0,DIC="^ABMDTXST(DUZ(2),",DIC(0)="QEAM",ABM("M")=1
  1. SELBO S ABM("E")=$E(ABM("M"),$L(ABM("M"))),DIC("A")="Select "_ABM("M")_$S(ABM("M")>3&(ABM("M")<21):"th",ABM("E")=1:"st",ABM("E")=2:"nd",ABM("E")=3:"rd",1:"th")_" EXPORT BATCH (NUMBER or DATE): " D ^DIC
  1. Q:$D(DUOUT)!$D(DTOUT) G TYP:X=""
  1. I +Y<1 G SELBO
  1. S ABM("M")=ABM("M")+1
  1. S ABM("DFN",+Y)="",ABM("DT")=$P(^ABMDTXST(DUZ(2),+Y,0),U)
  1. G SELBO
  1. ;
  1. TYP W !!,"AVAILABLE REPORTS:",!,"=================="
  1. K DIR S DIR(0)="S^1:Sorted by LOCATION/VISIT TYPE;2:Separated by INSURER for attachment to COVER LETTERS",DIR("A")="Select desired REPORT TYPE" D ^DIR K DIR
  1. G XIT:$D(DIRUT)
  1. S ABM("RTN")=+Y
  1. ;
  1. D ZIS^ABMDRUTL
  1. G:'$D(IO)!$G(POP) XIT
  1. G @("^ABMDRTX"_ABM("RTN"))
  1. ;
  1. XIT K ABM
  1. Q