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

ABPAPD6.m

Go to the documentation of this file.
  1. ABPAPD6 ;EDIT PAYMENT TRANSACTIONS; [ 06/25/91 4:54 PM ]
  1. ;;1.4;AO PVT-INS TRACKING;*0*;IHS-OKC/KJR;JULY 25, 1991
  1. A0 W !,"Select TRANSACTION #// " D SBRS
  1. I $D(DFOUT)!$D(DTOUT)!$D(DLOUT)!$D(DUOUT) G DISP^ABPAPD3
  1. I $D(DQOUT) D G A0
  1. .W !!?10,"Enter the payment TRN number you wish to edit as it is"
  1. .W !?10,"listed in the far left column of the 'Payment Information'"
  1. .W !?10,"section of the edit screen above.",!
  1. K DIE,DA,DR S DA(2)=ABPATDFN,DA(1)=ABPADDFN,ABPAADFN=+Y,DA=+Y
  1. I $D(^ABPVAO(DA(2),"P",DA(1),"A",DA,0))'=1 D G A0
  1. .W *7,!!?10,"<<< TRANSACTION NOT FOUND >>>",!
  1. D ^ABPAPD2C S DA(2)=ABPATDFN,DA(1)=ABPADDFN,DA=ABPAADFN
  1. S DIE="^ABPVAO("_DA(2)_",""P"","_DA(1)_",""A"",",DR=".01;1"
  1. S DIE("NO^")="" W ! D ^DIE G:$D(DA)'=11 DISP^ABPAPD3
  1. I ABPACCNT=1 D G DISP^ABPAPD3
  1. .S DR="2///"_ABPA("C",1) D ^DIE
  1. K DIR S DIR(0)="NO^1:"_ABPACCNT,DIR("A")="Apply to which claim"
  1. S ABPATPTR=$P(^ABPVAO(DA(2),"P",DA(1),"A",DA,0),"^",3)
  1. F ABPA("I")=1:1 Q:$D(ABPA("C",ABPA("I")))'=1!($D(DIR("B"))=1) D
  1. .S:ABPA("C",ABPA("I"))=ABPATPTR DIR("B")=ABPA("I")
  1. D ^DIR G:'X&(X'["@") DISP^ABPAPD3
  1. I X["@" S DR="2///@" D ^DIE G DISP^ABPAPD3
  1. G:$D(ABPA("C",X))'=1 DISP^ABPAPD3 S DR="2///"_ABPA("C",X) D ^DIE
  1. G DISP^ABPAPD3
  1. SBRS K DFOUT,DTOUT,DUOUT,DQOUT,DLOUT
  1. R Y:DTIME I '$T W *7 R Y:5 G SBRS:Y="." I '$T S (DTOUT,Y)="" Q
  1. I Y="/.," S (DFOUT,Y)="" Q
  1. I Y="" S DLOUT="" Q
  1. I Y="^" S (DUOUT,Y)="" Q
  1. I Y?1"?".E!(Y["^") S (DQOUT,Y)="" Q
  1. Q