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

PRCPRISR.m

Go to the documentation of this file.
  1. PRCPRISR ;WISC/RFJ-inventory sales (option, whse) ;24 May 93
  1. V ;;5.1;IFCAP;**1**;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. D ^PRCPUSEL Q:'$G(PRCP("I"))
  1. I PRCP("DPTYPE")="P" D PRIMARY^PRCPRISP Q
  1. I PRCP("DPTYPE")="S" D SECOND^PRCPRISS Q
  1. ;
  1. ; inventory sales report for whse
  1. N DATEEND,DATESTRT,DISTRALL,PRCPEND,PRCPSTRT,PRCPSUMM,X
  1. K X S X(1)="The Inventory Sales Report will display all sales from the Warehouse to the Primary inventory points. This report is sorted by NSN, the distribution point, and date issued." D DISPLAY^PRCPUX2(40,79,.X)
  1. K X S X(1)="Select the range of NSNs to display" W !! D DISPLAY^PRCPUX2(2,40,.X)
  1. D NSNSEL^PRCPURS0 I '$D(PRCPSTRT) Q
  1. K X S X(1)="Select the DISTRIBUTION POINTS to display" D DISPLAY^PRCPUX2(2,40,.X)
  1. D DISTRSEL^PRCPURS3(PRCP("I"))
  1. I '$G(DISTRALL),'$O(^TMP($J,"PRCPURS3","YES",0)) W !,"*** NO DISTRIBUTION POINTS SELECTED !" D Q Q
  1. K X S X(1)="Select the range of ISSUE DATES to display" W !! D DISPLAY^PRCPUX2(2,40,.X)
  1. D DATESEL^PRCPURS2("Issue") I '$G(DATEEND) D Q Q
  1. S PRCPSUMM=$$SUMMARY^PRCPURS0 I PRCPSUMM<0 D Q Q
  1. W ! S %ZIS="Q" D ^%ZIS G:POP Q I $D(IO("Q")) D D ^%ZTLOAD K IO("Q"),ZTSK D Q Q
  1. . S ZTDESC="Warehouse Inventory Sales Report",ZTRTN="DQ^PRCPRISR"
  1. . S ZTSAVE("PRCP*")="",ZTSAVE("DATE*")="",ZTSAVE("DISTRALL")="",ZTSAVE("^TMP($J,""PRCPURS3"",")="",ZTSAVE("ZTREQ")="@"
  1. W !!,"<*> please wait <*>"
  1. DQ ; queue starts here
  1. D PRINT^PRCPRISW
  1. Q D ^%ZISC K ^TMP($J,"PRCPURS3"),^TMP($J,"PRCPRISR"),^TMP($J,"PRCPRISR TOT")
  1. Q