IVYREPOR.LST 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691
  1. Listing:
  2. 1 IMPLEMENTATION MODULE IvyReports;
  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
  14. 13 FROM DBFInvtry IMPORT InvtryRec,OpenInvtryDBF,InvtryDBF,
  15. 14 CloseInvtryDBF,MoveInvtryFromDBF,InvcodeIdx,FindInvtryByInvcode,
  16. 15 MoveInvtryToDBF;
  17. 16 FROM PosUtils IMPORT Equal,Pos;
  18. 17 FROM PriceTable IMPORT GetPriceTable;
  19. 18 FROM PMIGlobals IMPORT Today,TodayDays,Config,NormalTitle,
  20. 19 OpenReportDevice,CloseReportDevice;
  21. 20 FROM DBUtils IMPORT GetDateRange,PrintFrame,SelectFromScreen,
  22. 21 GetSelected;
  23. 22 FROM DBStuff IMPORT MakeKey,FindAll,ReadAllRecs,ConditionType,MakeSeqNbr;
  24. 23 FROM GenLists IMPORT GenList,ListInsert,DisposeList,
  25. 24 GetElmt,GetElmtAdr,NewList,ListLength,SortList,ListDelete;
  26. 25 FROM StrConv IMPORT RealToStr,CardinalToStr;
  27. 26 FROM StrEdit IMPORT CrunchBlanks,DeleteRightJustified,Append,
  28. 27 CAPstr,OverWrite,RightJustify,Center,SetLength,CutLeadingChars;
  29. 28 FROM ModBase3 IMPORT ReadDBRec,CloseDBF,WriteDBRec;
  30. 29 FROM M2Strings IMPORT Length,CompareStr;
  31. 30 FROM LowLevel IMPORT Fill;
  32. 31 FROM NumTypes IMPORT Real8;
  33. 32 IMPORT VWindows;
  34. 33 FROM ScrnUtl2 IMPORT CloseDisplayFrame;
  35. 34 FROM ScrnUtl1 IMPORT GetFieldRec,PutFieldRec,FieldNum,FieldListTotal;
  36. 35 FROM ScrnTypes IMPORT DisplayFrame,InitDisplayFrame,AFrameName,
  37. 36 DispCode,ContinueInput,CancelInput,SubmitInput,InputFieldRecord;
  38. 37 FROM FramePainter IMPORT ShowDisplayFrame,RedrawField;
  39. 38 FROM ControlUtils IMPORT Control,AddStrField,AddMenuItem;
  40. 39 FROM Prompts IMPORT Prompt,PromptStr,PromptYN;
  41. 40 FROM ScrnTypes IMPORT AFrameName, InitDisplayFrame,DisplayFile;
  42. ***** ^ duplicate identifier
  43. ***** ^ duplicate identifier
  44. ***** ^ duplicate identifier
  45. 41 FROM SYSTEM IMPORT ADDRESS,ADR,SIZE;
  46. 42 FROM VStorage IMPORT DosAlloc;
  47. 43
  48. 44
  49. 45 PROCEDURE SortInv(A1 : ADDRESS; Size1 :CARDINAL;
  50. 46 A2 : ADDRESS; Size2 : CARDINAL): INTEGER;
  51. 47
  52. 48 VAR
  53. 49 I1, I2 : POINTER TO InvtryRec;
  54. ***** ^ not supported yet
  55. 50 BEGIN
  56. 51 I1 := A1;
  57. ***** ^ not supported yet
  58. ***** ^ not supported yet
  59. 52 I2 := A2;
  60. ***** ^ not supported yet
  61. ***** ^ not supported yet
  62. 53 RETURN CompareStr(I1^.INVCODE,I2^.INVCODE);
  63. ***** ^ not supported yet
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. ***** ^ not supported yet
  67. ***** ^ not supported yet
  68. 54 END SortInv;
  69. ***** ^ not supported yet
  70. 55
  71. 56
  72. 57 (* # call(reg_param=>(ax,bx,cx,dx,st0,st6,st5,st4,st3) ) *)
  73. 58 PROCEDURE ReadInvRec(VAR A: ADDRESS; VAR Size : CARDINAL);
  74. 59 VAR
  75. 60 InvRec : POINTER TO InvtryRec;
  76. ***** ^ not supported yet
  77. 61 BEGIN
  78. 62 Size := SIZE(InvtryRec);
  79. ***** ^ not supported yet
  80. ***** ^ not supported yet
  81. 63 DosAlloc(InvRec,Size);
  82. ***** ^ not supported yet
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. 64 MoveInvtryFromDBF(InvRec^);
  86. ***** ^ not supported yet
  87. ***** ^ not supported yet
  88. 65 A := InvRec;
  89. ***** ^ not supported yet
  90. ***** ^ not supported yet
  91. 66
  92. 67 END ReadInvRec;
  93. ***** ^ not supported yet
  94. 68
  95. 69 PROCEDURE TotalInventory();
  96. 70 VAR
  97. 71 Str : ARRAY[0..20] OF CHAR;
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. 72 InvList : GenList;
  101. 73 J : CARDINAL;
  102. 74 Line : ARRAY[0..80] OF CHAR;
  103. ***** ^ not supported yet
  104. ***** ^ not supported yet
  105. 75 DF : DisplayFrame;
  106. 76 FieldRec : InputFieldRecord;
  107. 77 Inventory : InvtryRec;
  108. 78 Code : CARDINAL;
  109. 79 Value : Real8;
  110. 80 Handle : CARDINAL;
  111. 81 Cost : Real8;
  112. 82 P1,P2,P3,P4 : Real8;
  113. 83 Q1,Q2,Q3,Q4 : CARDINAL;
  114. 84 BEGIN
  115. 85 Str := '';
  116. ***** ^ not supported yet
  117. ***** ^ incompatible assignment
  118. 86 PromptStr('Enter Inventory Code (or partial Code)',Str);
  119. ***** ^ not supported yet
  120. ***** ^ not supported yet
  121. ***** ^ not supported yet
  122. 87 MakeKey(Str);
  123. ***** ^ not supported yet
  124. ***** ^ not supported yet
  125. 88 OpenInvtryDBF(TRUE);
  126. ***** ^ not supported yet
  127. ***** ^ not supported yet
  128. 89 FindAll(InvcodeIdx,Str,BeginsWith,InvList);
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. ***** ^ undeclared identifier
  133. ***** ^ not supported yet
  134. 90
  135. 91 ReadAllRecs(InvtryDBF,ReadInvRec,InvList);
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. ***** ^ not supported yet
  139. ***** ^ not supported yet
  140. 92 CloseInvtryDBF();
  141. ***** ^ not supported yet
  142. ***** ^ not supported yet
  143. 93
  144. 94
  145. 95 InitDisplayFrame(DF,VWindows.CurrentWindow);
  146. ***** ^ not supported yet
  147. ***** ^ not supported yet
  148. ***** ^ not supported yet
  149. ***** ^ not supported yet
  150. 96 AddStrField(DF,2,2,
  151. ***** ^ not supported yet
  152. ***** ^ not supported yet
  153. 97 ' Code Description On Hand Purch Price Cost Value ',78);
  154. ***** ^ not supported yet
  155. ***** ^ not supported yet
  156. 98 GetFieldRec(DF,1,FieldRec);
  157. ***** ^ not supported yet
  158. ***** ^ not supported yet
  159. ***** ^ not supported yet
  160. 99 FieldRec.typ := DispCode; (* headline = display code *)
  161. ***** ^ not supported yet
  162. ***** ^ not supported yet
  163. ***** ^ not supported yet
  164. 100 PutFieldRec(FieldRec,DF,1);
  165. ***** ^ not supported yet
  166. ***** ^ not supported yet
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. 101 DF^.headline := 2;
  170. ***** ^ not supported yet
  171. ***** ^ not supported yet
  172. 102 Cost := 0.0;
  173. ***** ^ not supported yet
  174. 103 Value := 0.0;
  175. ***** ^ not supported yet
  176. 104 SortList(InvList,SortInv);
  177. ***** ^ not supported yet
  178. ***** ^ not supported yet
  179. ***** ^ not supported yet
  180. 105 FOR J := 1 TO ListLength(InvList) DO
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. 106 GetElmt(InvList,J,Inventory,Code);
  184. ***** ^ not supported yet
  185. ***** ^ not supported yet
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. 107 Fill(ADR(Line),SIZE(Line),' ');
  189. ***** ^ not supported yet
  190. ***** ^ not supported yet
  191. ***** ^ not supported yet
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. ***** ^ not supported yet
  195. 108 Line[77] := 0C;
  196. ***** ^ not supported yet
  197. ***** ^ not supported yet
  198. 109 OverWrite(Inventory.INVCODE,Line,1);
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. ***** ^ not supported yet
  202. ***** ^ not supported yet
  203. ***** ^ not supported yet
  204. 110 OverWrite(Inventory.DESC,Line,8);
  205. ***** ^ not supported yet
  206. ***** ^ not supported yet
  207. ***** ^ not supported yet
  208. ***** ^ not supported yet
  209. ***** ^ not supported yet
  210. 111 RealToStr(Inventory.ONHAND,2,8,Str);
  211. ***** ^ not supported yet
  212. ***** ^ not supported yet
  213. ***** ^ not supported yet
  214. ***** ^ not supported yet
  215. 112 OverWrite(Str,Line,42);
  216. ***** ^ not supported yet
  217. ***** ^ not supported yet
  218. ***** ^ not supported yet
  219. ***** ^ not supported yet
  220. 113 RealToStr(Inventory.PURPRICE,2,8,Str);
  221. ***** ^ not supported yet
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. ***** ^ not supported yet
  225. 114 OverWrite(Str,Line,51);
  226. ***** ^ not supported yet
  227. ***** ^ not supported yet
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 115 RealToStr(Inventory.PURPRICE * Inventory.ONHAND,2,8,Str);
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. ***** ^ not supported yet
  234. ***** ^ not supported yet
  235. ***** ^ not supported yet
  236. ***** ^ not supported yet
  237. 116 Cost := Cost + (Inventory.PURPRICE * Inventory.ONHAND);
  238. ***** ^ not supported yet
  239. ***** ^ not supported yet
  240. ***** ^ not supported yet
  241. ***** ^ not supported yet
  242. ***** ^ not supported yet
  243. ***** ^ not supported yet
  244. 117 OverWrite(Str,Line,61);
  245. ***** ^ not supported yet
  246. ***** ^ not supported yet
  247. ***** ^ not supported yet
  248. ***** ^ not supported yet
  249. 118
  250. 119 IF Inventory.PRICETBL > 0
  251. ***** ^ not supported yet
  252. ***** ^ not supported yet
  253. 120 THEN
  254. 121 GetPriceTable(Inventory.PRICETBL,Q1,Q2,Q3,Q4,Inventory.UNITPRICE,P2,P3,P4);
  255. ***** ^ not supported yet
  256. ***** ^ not supported yet
  257. ***** ^ not supported yet
  258. ***** ^ not supported yet
  259. ***** ^ not supported yet
  260. ***** ^ not supported yet
  261. ***** ^ not supported yet
  262. ***** ^ not supported yet
  263. 122 (* make up a unit price for value *)
  264. 123 END;
  265. 124
  266. 125 RealToStr(Inventory.UNITPRICE * Inventory.ONHAND,2,8,Str);
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. ***** ^ not supported yet
  271. ***** ^ not supported yet
  272. ***** ^ not supported yet
  273. 126 Value := Value + (Inventory.UNITPRICE * Inventory.ONHAND);
  274. ***** ^ not supported yet
  275. ***** ^ not supported yet
  276. ***** ^ not supported yet
  277. ***** ^ not supported yet
  278. ***** ^ not supported yet
  279. ***** ^ not supported yet
  280. 127 OverWrite(Str,Line,70);
  281. ***** ^ not supported yet
  282. ***** ^ not supported yet
  283. ***** ^ not supported yet
  284. ***** ^ not supported yet
  285. 128 AddMenuItem(DF,2,J+2,Line,78,0,' ');
  286. ***** ^ not supported yet
  287. ***** ^ not supported yet
  288. ***** ^ not supported yet
  289. ***** ^ not supported yet
  290. 129 END; (* end of for J *)
  291. 130
  292. 131
  293. 132 DisposeList(InvList);
  294. ***** ^ not supported yet
  295. ***** ^ not supported yet
  296. 133 ShowDisplayFrame(DF,1,1,80,24);
  297. ***** ^ not supported yet
  298. ***** ^ not supported yet
  299. ***** ^ not supported yet
  300. 134 Control(DF);
  301. ***** ^ not supported yet
  302. ***** ^ not supported yet
  303. 135 IF PromptYN(' Print Report ',DF)
  304. ***** ^ not supported yet
  305. ***** ^ not supported yet
  306. ***** ^ not supported yet
  307. 136 THEN
  308. 137 Line := 'Inventory Sorted by Item Code';
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. 138 NormalTitle(Line);
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. 139 Handle := OpenReportDevice();
  315. ***** ^ not supported yet
  316. ***** ^ not supported yet
  317. 140 PrintFrame(DF,Handle);
  318. ***** ^ not supported yet
  319. ***** ^ not supported yet
  320. ***** ^ not supported yet
  321. 141 CloseReportDevice(Handle);
  322. ***** ^ not supported yet
  323. ***** ^ not supported yet
  324. 142 END;
  325. 143 CloseDisplayFrame(DF);
  326. ***** ^ not supported yet
  327. ***** ^ not supported yet
  328. 144 DisposeList(InvList);
  329. ***** ^ not supported yet
  330. ***** ^ not supported yet
  331. 145
  332. 146
  333. 147
  334. 148
  335. 149
  336. 150 END TotalInventory;
  337. ***** ^ not supported yet
  338. 151
  339. 152
  340. 153
  341. 154
  342. 155 PROCEDURE ReorderInventory();
  343. 156 VAR
  344. 157 Str : ARRAY[0..20] OF CHAR;
  345. ***** ^ not supported yet
  346. ***** ^ not supported yet
  347. 158 InvList : GenList;
  348. 159 OrderList : GenList;
  349. 160 LineCnt : CARDINAL;
  350. 161 J,K : CARDINAL;
  351. 162 Line : ARRAY[0..80] OF CHAR;
  352. ***** ^ not supported yet
  353. ***** ^ not supported yet
  354. 163 DF : DisplayFrame;
  355. 164 Handle : CARDINAL;
  356. 165 FieldRec : InputFieldRecord;
  357. 166 Inventory : InvtryRec;
  358. 167 Code : CARDINAL;
  359. 168 BEGIN
  360. 169 Str := '';
  361. ***** ^ not supported yet
  362. ***** ^ incompatible assignment
  363. 170 PromptStr('Enter Inventory Code (or partial Code)',Str);
  364. ***** ^ not supported yet
  365. ***** ^ not supported yet
  366. ***** ^ not supported yet
  367. 171 MakeKey(Str);
  368. ***** ^ not supported yet
  369. ***** ^ not supported yet
  370. 172 OpenInvtryDBF(TRUE);
  371. ***** ^ not supported yet
  372. ***** ^ not supported yet
  373. 173 FindAll(InvcodeIdx,Str,BeginsWith,InvList);
  374. ***** ^ not supported yet
  375. ***** ^ not supported yet
  376. ***** ^ not supported yet
  377. ***** ^ undeclared identifier
  378. ***** ^ not supported yet
  379. 174 ReadAllRecs(InvtryDBF,ReadInvRec,InvList);
  380. ***** ^ not supported yet
  381. ***** ^ not supported yet
  382. ***** ^ not supported yet
  383. ***** ^ not supported yet
  384. 175
  385. 176
  386. 177
  387. 178 InitDisplayFrame(DF,VWindows.CurrentWindow);
  388. ***** ^ not supported yet
  389. ***** ^ not supported yet
  390. ***** ^ not supported yet
  391. ***** ^ not supported yet
  392. 179 AddStrField(DF,2,2,
  393. ***** ^ not supported yet
  394. ***** ^ not supported yet
  395. 180 'Code Description Units On Hand On Ord Reorder Qnt ',67);
  396. ***** ^ not supported yet
  397. ***** ^ not supported yet
  398. 181 GetFieldRec(DF,1,FieldRec);
  399. ***** ^ not supported yet
  400. ***** ^ not supported yet
  401. ***** ^ not supported yet
  402. 182 FieldRec.typ := DispCode; (* headline = display code *)
  403. ***** ^ not supported yet
  404. ***** ^ not supported yet
  405. ***** ^ not supported yet
  406. 183 PutFieldRec(FieldRec,DF,1);
  407. ***** ^ not supported yet
  408. ***** ^ not supported yet
  409. ***** ^ not supported yet
  410. ***** ^ not supported yet
  411. 184 DF^.headline := 2;
  412. ***** ^ not supported yet
  413. ***** ^ not supported yet
  414. 185 LineCnt := 3;
  415. 186 J := ListLength(InvList);
  416. ***** ^ not supported yet
  417. ***** ^ not supported yet
  418. 187 LOOP
  419. 188 (* FOR J := ListLength(InvList) DOWNTO 1 BY -1 DO *)
  420. 189 IF J = 0
  421. 190 THEN EXIT;
  422. 191 END;
  423. 192 GetElmt(InvList,J,Inventory,Code); (* Only take those <= reorder level*)
  424. ***** ^ not supported yet
  425. ***** ^ not supported yet
  426. ***** ^ not supported yet
  427. ***** ^ not supported yet
  428. 193 DEC(J);
  429. ***** ^ undeclared identifier
  430. ***** ^ not supported yet
  431. 194 IF (Inventory.STOCKED) AND (TRUNC(Inventory.ONHAND) <= Inventory.REORDER)
  432. ***** ^ not supported yet
  433. ***** ^ not supported yet
  434. ***** ^ undeclared identifier
  435. ***** ^ not supported yet
  436. ***** ^ not supported yet
  437. ***** ^ not supported yet
  438. ***** ^ not supported yet
  439. 195 THEN
  440. 196 Fill(ADR(Line),SIZE(Line),' ');
  441. ***** ^ not supported yet
  442. ***** ^ not supported yet
  443. ***** ^ not supported yet
  444. ***** ^ not supported yet
  445. ***** ^ not supported yet
  446. ***** ^ not supported yet
  447. 197 Line[78] := 0C;
  448. ***** ^ not supported yet
  449. ***** ^ not supported yet
  450. 198 OverWrite(Inventory.INVCODE,Line,3);
  451. ***** ^ not supported yet
  452. ***** ^ not supported yet
  453. ***** ^ not supported yet
  454. ***** ^ not supported yet
  455. ***** ^ not supported yet
  456. 199 OverWrite(Inventory.DESC,Line,11);
  457. ***** ^ not supported yet
  458. ***** ^ not supported yet
  459. ***** ^ not supported yet
  460. ***** ^ not supported yet
  461. ***** ^ not supported yet
  462. 200 OverWrite(Inventory.UNITS,Line,44);
  463. ***** ^ not supported yet
  464. ***** ^ not supported yet
  465. ***** ^ not supported yet
  466. ***** ^ not supported yet
  467. ***** ^ not supported yet
  468. 201 RealToStr(Inventory.ONHAND,2,8,Str);
  469. ***** ^ not supported yet
  470. ***** ^ not supported yet
  471. ***** ^ not supported yet
  472. ***** ^ not supported yet
  473. 202 OverWrite(Str,Line,52);
  474. ***** ^ not supported yet
  475. ***** ^ not supported yet
  476. ***** ^ not supported yet
  477. ***** ^ not supported yet
  478. 203 OverWrite(Inventory.ONORDER,Line,63);
  479. ***** ^ not supported yet
  480. ***** ^ not supported yet
  481. ***** ^ not supported yet
  482. ***** ^ not supported yet
  483. ***** ^ not supported yet
  484. 204 RealToStr(Inventory.REORDAMT,2,8,Str);
  485. ***** ^ not supported yet
  486. ***** ^ not supported yet
  487. ***** ^ not supported yet
  488. ***** ^ not supported yet
  489. 205 OverWrite(Str,Line,70);
  490. ***** ^ not supported yet
  491. ***** ^ not supported yet
  492. ***** ^ not supported yet
  493. ***** ^ not supported yet
  494. 206 AddMenuItem(DF,2,LineCnt,Line,78,0,Inventory.INVCODE);
  495. ***** ^ not supported yet
  496. ***** ^ not supported yet
  497. ***** ^ not supported yet
  498. ***** ^ not supported yet
  499. ***** ^ not supported yet
  500. 207 INC(LineCnt);
  501. ***** ^ undeclared identifier
  502. ***** ^ not supported yet
  503. 208 (* ELSE
  504. 209 ListDelete(InvList,J,1); *) (* didn't need to reorder *)
  505. 210 END; (* end if need to reorder *)
  506. 211 END; (* end of loop *)
  507. 212 SelectFromScreen(DF);
  508. ***** ^ not supported yet
  509. ***** ^ not supported yet
  510. 213 GetSelected(OrderList,DF);
  511. ***** ^ not supported yet
  512. ***** ^ not supported yet
  513. ***** ^ not supported yet
  514. 214 CloseDisplayFrame(DF);
  515. ***** ^ not supported yet
  516. ***** ^ not supported yet
  517. 215 InitDisplayFrame(DF,VWindows.CurrentWindow);
  518. ***** ^ not supported yet
  519. ***** ^ not supported yet
  520. ***** ^ not supported yet
  521. ***** ^ not supported yet
  522. 216
  523. 217 AddStrField(DF,2,2,
  524. ***** ^ not supported yet
  525. ***** ^ not supported yet
  526. 218 ' Code Units Description Quantity ',67);
  527. ***** ^ not supported yet
  528. ***** ^ not supported yet
  529. 219 GetFieldRec(DF,1,FieldRec);
  530. ***** ^ not supported yet
  531. ***** ^ not supported yet
  532. ***** ^ not supported yet
  533. 220 FieldRec.typ := DispCode; (* headline = display code *)
  534. ***** ^ not supported yet
  535. ***** ^ not supported yet
  536. ***** ^ not supported yet
  537. 221 PutFieldRec(FieldRec,DF,1);
  538. ***** ^ not supported yet
  539. ***** ^ not supported yet
  540. ***** ^ not supported yet
  541. ***** ^ not supported yet
  542. 222 DF^.headline := 2;
  543. ***** ^ not supported yet
  544. ***** ^ not supported yet
  545. 223 LineCnt := 3;
  546. 224 (* go through the order list and find the item in the invlist *)
  547. 225 (* make printable - and create string fields *)
  548. 226 J := ListLength(OrderList);
  549. ***** ^ not supported yet
  550. ***** ^ not supported yet
  551. 227 LOOP
  552. 228 IF J = 0
  553. 229 THEN EXIT;
  554. 230 END;
  555. 231 GetElmt(OrderList,J,Inventory.INVCODE,Code);
  556. ***** ^ not supported yet
  557. ***** ^ not supported yet
  558. ***** ^ not supported yet
  559. ***** ^ not supported yet
  560. ***** ^ not supported yet
  561. 232 DEC(J);
  562. ***** ^ undeclared identifier
  563. ***** ^ not supported yet
  564. 233 IF FindInvtryByInvcode(Inventory.INVCODE)
  565. ***** ^ not supported yet
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. 234 THEN
  569. 235 Inventory.ONORDER := 'Y';
  570. ***** ^ not supported yet
  571. ***** ^ not supported yet
  572. 236 MoveInvtryToDBF(Inventory);
  573. ***** ^ not supported yet
  574. ***** ^ not supported yet
  575. 237 WriteDBRec(InvtryDBF);
  576. ***** ^ not supported yet
  577. ***** ^ not supported yet
  578. 238 END;
  579. 239 Fill(ADR(Line),SIZE(Line),' ');
  580. ***** ^ not supported yet
  581. ***** ^ not supported yet
  582. ***** ^ not supported yet
  583. ***** ^ not supported yet
  584. ***** ^ not supported yet
  585. ***** ^ not supported yet
  586. 240 Line[77] := 0C;
  587. ***** ^ not supported yet
  588. ***** ^ not supported yet
  589. 241 OverWrite(Inventory.INVCODE,Line,3);
  590. ***** ^ not supported yet
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. ***** ^ not supported yet
  594. ***** ^ not supported yet
  595. 242 OverWrite(Inventory.UNITS,Line,11);
  596. ***** ^ not supported yet
  597. ***** ^ not supported yet
  598. ***** ^ not supported yet
  599. ***** ^ not supported yet
  600. ***** ^ not supported yet
  601. 243 OverWrite(Inventory.DESC,Line,20);
  602. ***** ^ not supported yet
  603. ***** ^ not supported yet
  604. ***** ^ not supported yet
  605. ***** ^ not supported yet
  606. ***** ^ not supported yet
  607. 244
  608. 245 RealToStr(Inventory.REORDAMT,2,8,Str);
  609. ***** ^ not supported yet
  610. ***** ^ not supported yet
  611. ***** ^ not supported yet
  612. ***** ^ not supported yet
  613. 246 OverWrite(Str,Line,63);
  614. ***** ^ not supported yet
  615. ***** ^ not supported yet
  616. ***** ^ not supported yet
  617. ***** ^ not supported yet
  618. 247 AddStrField(DF,2,LineCnt,Line,78);
  619. ***** ^ not supported yet
  620. ***** ^ not supported yet
  621. ***** ^ not supported yet
  622. ***** ^ not supported yet
  623. 248 INC(LineCnt);
  624. ***** ^ undeclared identifier
  625. ***** ^ not supported yet
  626. 249
  627. 250 END; (* end for J *)
  628. 251 ShowDisplayFrame(DF,1,1,80,24);
  629. ***** ^ not supported yet
  630. ***** ^ not supported yet
  631. ***** ^ not supported yet
  632. 252 Control(DF);
  633. ***** ^ not supported yet
  634. ***** ^ not supported yet
  635. 253 IF PromptYN(' Print Report ',DF)
  636. ***** ^ not supported yet
  637. ***** ^ not supported yet
  638. ***** ^ not supported yet
  639. 254 THEN
  640. 255 Line := 'Purchase Order Number ';
  641. ***** ^ not supported yet
  642. ***** ^ not supported yet
  643. 256 MakeSeqNbr('POSEQ',Config.PurchOrdPre,Str);
  644. ***** ^ not supported yet
  645. ***** ^ not supported yet
  646. ***** ^ not supported yet
  647. ***** ^ not supported yet
  648. ***** ^ not supported yet
  649. 257 Append(Line,Str);
  650. ***** ^ not supported yet
  651. ***** ^ not supported yet
  652. ***** ^ not supported yet
  653. 258 NormalTitle(Line);
  654. ***** ^ not supported yet
  655. ***** ^ not supported yet
  656. 259 Handle := OpenReportDevice();
  657. ***** ^ not supported yet
  658. ***** ^ not supported yet
  659. 260 PrintFrame(DF,Handle);
  660. ***** ^ not supported yet
  661. ***** ^ not supported yet
  662. ***** ^ not supported yet
  663. 261 CloseReportDevice(Handle);
  664. ***** ^ not supported yet
  665. ***** ^ not supported yet
  666. 262 END;
  667. 263 CloseDisplayFrame(DF);
  668. ***** ^ not supported yet
  669. ***** ^ not supported yet
  670. 264 CloseInvtryDBF();
  671. ***** ^ not supported yet
  672. ***** ^ not supported yet
  673. 265 DisposeList(InvList);
  674. ***** ^ not supported yet
  675. ***** ^ not supported yet
  676. 266 DisposeList(OrderList);
  677. ***** ^ not supported yet
  678. ***** ^ not supported yet
  679. 267 END ReorderInventory;
  680. ***** ^ not supported yet
  681. 268
  682. 269
  683. 270
  684. 271
  685. 272 END IvyReports.
  686. ***** ^ not supported yet
  687. 413 errors