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

IBECEA22.m

Go to the documentation of this file.
  1. IBECEA22 ;ALB/CPM-Cancel/Edit/Add... Edit Utilities;23-APR-93
  1. ;;2.0;INTEGRATED BILLING;**150,183,563**;21-MAR-94;Build 12
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;
  1. UPCHG(P7,P6,P14,P15,P22) ; Update the incomplete charge and pass to AR?
  1. ; Input: P7 -- New amount [required]
  1. ; P6 -- New Units [optional]
  1. ; P14 -- New Bill From date [optional]
  1. ; P15 -- New Bill To date [optional]
  1. ; P22 -- New Tier Level [optional]
  1. N DA,DIE,DIR,DIRUT,DR,DUOUT,DTOUT,X,Y
  1. S DIR(0)="Y",DIR("A")="Okay to update this charge and pass it to Accounts Receivable"
  1. S DIR("?")="Enter 'Y' or 'YES' to update and pass the charge, or 'N', or '^' to quit."
  1. D ^DIR I 'Y!($D(DIRUT))!($D(DUOUT)) S IBY=-1 Q
  1. W !,"Updating the incomplete charge and passing to Accounts Receivable... "
  1. S $P(^IB(IBN,0),"^",7)=P7 S:$G(P6) $P(^(0),"^",6)=P6 S:$G(P14) $P(^(0),"^",14)=P14 S:$G(P15) $P(^(0),"^",15)=P15 S:$G(P22) $P(^(0),"^",22)=P22
  1. ;
  1. ; - update copay account records
  1. D:$P(IBND,"^",19) UPCHG^IBARXMN($P(IBND,"^",19),P6,P7)
  1. D PASSCH I IBY>0 W "done." S IBCOMMIT=1
  1. Q
  1. ;
  1. PASS ; Okay to pass charge to Accounts Receivable?
  1. N DIR,DIRUT,DUOUT,DTOUT
  1. S DIR(0)="Okay to pass this charge to Accounts Receivable",DIR(0)="Y"
  1. S DIR("?")="Enter 'Y' or 'YES' to pass this charge to AR, or 'N' or '^' to quit."
  1. D ^DIR I Y W !,"Passing the charge to Accounts Receivable... " D PASSCH I IBY>0 W "done." S IBCOMMIT=1
  1. Q
  1. ;
  1. PASSCH ; Pass charge to Accounts Receivable.
  1. I $G(IBXA)=5 D FILER^IBARXMA(IBN) ; transmit cap info
  1. N IBSERV S IBNOS=IBN D ^IBR S IBY=Y
  1. Q
  1. ;
  1. CHCL ; Update charge and clocks.
  1. D UPCHG(IBCHG,IBUNIT,IBFR,IBTO)
  1. I IBY>0 D CLOCK^IBECEAU(IBDOLA-IBCLDOL,IBCLDAY,IBDAYA-IBCLDAY) S IBY=-1
  1. Q
  1. ;
  1. UPD ; Build an 'update' transaction.
  1. N DA,DIK
  1. S IBATYP=$P($G(^IBE(350.1,+$P(IBUPD,"^",3),0)),"^",7) I IBATYP="" S IBY="-1^IB022" G UPDQ
  1. S IBSEQNO=$P($G(^IBE(350.1,IBATYP,0)),"^",5) I 'IBSEQNO S IBY="-1^IB023" G UPDQ
  1. W !!,"Building the updated transaction... "
  1. D ADD^IBAUTL I Y<1 S IBY=Y G UPDQ
  1. S $P(IBUPD,"^",14,15)=IBFR_"^"_IBTO
  1. S:IBXA'=5 IBUPD=$P(IBUPD,"^",1,16)
  1. S $P(IBUPD,"^",3)=IBATYP,$P(IBUPD,"^",5)=1,$P(IBUPD,"^",6,7)=IBUNIT_"^"_IBCHG,$P(IBUPD,"^",12)=""
  1. S:$D(IBAM) $P(IBUPD,"^",19)=IBAM
  1. S $P(IBUPD,"^",21)=$S($G(IBGMTR):1,1:"") ; GMT Related
  1. S:$G(IBTIER) $P(IBUPD,"^",22)=IBTIER
  1. S ^IB(IBN,0)=IBUPD,$P(^(1),"^")=DUZ S DA=IBN,DIK="^IB(" D IX1^DIK
  1. D PASSCH W:IBY>0 "done."
  1. UPDQ Q