MANUALIN.LST 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. Listing:
  2. 1 IMPLEMENTATION MODULE ManualInvoice;
  3. 2 (*
  4. 3 * ModBase
  5. 4 * Release 3.0
  6. 5 * (c) Copyright 1986 - 1991 PMI
  7. 6 * P.O. Box 8402
  8. 7 * Green Bay Wi 53308
  9. 8 * All Rights Reserved
  10. 9 * by Ed Ross
  11. 10 *)
  12. 11
  13. 12 FROM Customer IMPORT GetCustNbr;
  14. 13 FROM ModBase3 IMPORT UpdateDBFile,WriteDBRec,DeleteRecord,ReadDBRec,
  15. 14 AppendBlank,Record;
  16. 15 FROM Scrn2DBF IMPORT FrameToDBF, DBFToFrame;
  17. 16 FROM PMIGlobals IMPORT PMIScreens,Today,TodayStr,TodayDays,Config;
  18. 17 FROM DBFInvoice IMPORT MoveInvoiceFromDBF,MoveInvoiceToDBF,
  19. 18 InvoiceRec,InvoiceDBF,OpenInvoiceDBF,CloseInvoiceDBF;
  20. 19 FROM DspFiles IMPORT OpenDisplayFile,ReadDisplayFrame;
  21. 20 FROM ScrnUtl2 IMPORT CloseDisplayFrame;
  22. 21 FROM ScrnUtl1 IMPORT GetFieldRec,PutFieldRec,FieldNum,FieldListTotal;
  23. 22 FROM ScrnTypes IMPORT DisplayFrame,InitDisplayFrame,AFrameName,
  24. 23 DispCode,ContinueInput,CancelInput,SubmitInput,InputFieldRecord;
  25. 24 FROM FramePainter IMPORT ShowDisplayFrame,RedrawField,RedrawArea;
  26. 25 FROM ControlUtils IMPORT Control;
  27. 26 IMPORT VWindows;
  28. 27
  29. 28 PROCEDURE AddManualInvoice();
  30. 29 VAR DF : DisplayFrame;
  31. 30 Invoice : InvoiceRec;
  32. 31 BEGIN
  33. 32 InitDisplayFrame(DF,VWindows.CurrentWindow);
  34. ***** ^ not supported yet
  35. ***** ^ not supported yet
  36. ***** ^ not supported yet
  37. ***** ^ not supported yet
  38. 33 ReadDisplayFrame(PMIScreens,DF,'ManInvoice');
  39. ***** ^ not supported yet
  40. ***** ^ not supported yet
  41. ***** ^ not supported yet
  42. ***** ^ not supported yet
  43. 34 ShowDisplayFrame(DF,0,0,0,0);
  44. ***** ^ not supported yet
  45. ***** ^ not supported yet
  46. ***** ^ not supported yet
  47. 35 Control(DF);
  48. ***** ^ not supported yet
  49. ***** ^ not supported yet
  50. 36 OpenInvoiceDBF(TRUE);
  51. ***** ^ not supported yet
  52. ***** ^ not supported yet
  53. 37 AppendBlank(InvoiceDBF);
  54. ***** ^ not supported yet
  55. ***** ^ not supported yet
  56. 38 IF NOT FrameToDBF(InvoiceDBF,DF)
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. ***** ^ not supported yet
  60. 39 THEN
  61. 40 END;
  62. 41 CloseDisplayFrame(DF);
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. 42 MoveInvoiceFromDBF(Invoice);
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. 43 WITH Invoice DO
  69. ***** ^ not supported yet
  70. 44 TOTALAMT := INVNET +INVTAX + SHIPPING;
  71. ***** ^ undeclared identifier
  72. ***** ^ undeclared identifier
  73. ***** ^ undeclared identifier
  74. ***** ^ undeclared identifier
  75. 45 AMTOUT := TOTALAMT;
  76. ***** ^ undeclared identifier
  77. ***** ^ undeclared identifier
  78. 46 GetCustNbr(CUSTID);
  79. ***** ^ not supported yet
  80. ***** ^ undeclared identifier
  81. 47 INVPRNT := 'P'; (* invoice posted *)
  82. ***** ^ undeclared identifier
  83. 48 END;
  84. ***** ^ not supported yet
  85. 49 MoveInvoiceToDBF(Invoice);
  86. ***** ^ not supported yet
  87. ***** ^ undeclared identifier
  88. 50 WriteDBRec(InvoiceDBF);
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. 51 CloseInvoiceDBF();
  92. ***** ^ not supported yet
  93. ***** ^ not supported yet
  94. 52 END AddManualInvoice;
  95. ***** ^ not supported yet
  96. 53
  97. 54
  98. 55 END ManualInvoice.
  99. ***** ^ not supported yet
  100. 43 errors