CUSTREPO.LST 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614
  1. Listing:
  2. 1 IMPLEMENTATION MODULE CustReports;
  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 PosUtils IMPORT Equal;
  14. 13 FROM PMIGlobals IMPORT Config,NormalTitle,OpenReportDevice,CloseReportDevice;
  15. 14 FROM Customer IMPORT GetCustName,SetCustomerRec,GetCustAddr,
  16. 15 AddressRec,AddressTypes;
  17. 16 FROM DBFCustomer IMPORT OpenCustomerDBF,CloseCustomerDBF,
  18. 17 CustomerRec,CustomerDBF,MoveCustomerFromDBF;
  19. 18 FROM DBUtils IMPORT GetDateRange,PrintFrame,PrintTitle;
  20. 19 FROM HandleIO IMPORT OpenFile,CloseHandle;
  21. 20 FROM StringIO IMPORT WriteStr,WriteEol;
  22. 21 FROM GenLists IMPORT GenList,ListInsert,DisposeList,
  23. 22 GetElmt,GetElmtAdr,NewList,ListLength,SortList;
  24. 23 FROM ListUtils IMPORT PrintList,TextFileToList;
  25. 24 FROM Invoice IMPORT MakeInvoicePrintLine,GetOutstanding,InvoiceDaysLate;
  26. 25 FROM DateFunctions IMPORT Comparison,CompareDates,Date,DateToStr,
  27. 26 CardToDate,DaysSince1900;
  28. 27 FROM StrConv IMPORT RealToStr,CardinalToStr;
  29. 28 FROM StrEdit IMPORT CrunchBlanks,DeleteRightJustified,Append,
  30. 29 CAPstr,OverWrite,RightJustify,Center,SetLength;
  31. 30 FROM ModBase3 IMPORT ReadDBRec,CloseDBF,NumberRecords;
  32. 31 FROM M2Strings IMPORT Concat,Length,CompareStr;
  33. 32 FROM LowLevel IMPORT Fill;
  34. 33 FROM NumTypes IMPORT Real8;
  35. 34 FROM Numbers IMPORT Max;
  36. 35 IMPORT VWindows;
  37. 36 FROM ScrnUtl2 IMPORT CloseDisplayFrame;
  38. 37 FROM ScrnUtl1 IMPORT GetFieldRec,PutFieldRec,FieldNum,FieldListTotal;
  39. 38 FROM ScrnTypes IMPORT DisplayFrame,InitDisplayFrame,AFrameName,
  40. 39 DispCode,ContinueInput,CancelInput,SubmitInput,InputFieldRecord;
  41. 40 FROM FramePainter IMPORT ShowDisplayFrame,RedrawField;
  42. 41 FROM ControlUtils IMPORT Control,AddStrField,AddMenuItem;
  43. 42 FROM Prompts IMPORT Prompt,PromptStr,PromptYN;
  44. 43 FROM ScrnTypes IMPORT AFrameName, InitDisplayFrame,DisplayFile;
  45. ***** ^ duplicate identifier
  46. ***** ^ duplicate identifier
  47. ***** ^ duplicate identifier
  48. 44 FROM SYSTEM IMPORT ADDRESS,ADR,SIZE;
  49. 45 FROM VStorage IMPORT DosAlloc;
  50. 46
  51. 47
  52. 48 VAR
  53. 49 MinOut : Real8;
  54. 50
  55. 51 PROCEDURE ReadCustFile(VAR TheList : GenList);
  56. 52 VAR
  57. 53 LI : LONGINT;
  58. 54 Cust : CustomerRec;
  59. 55 BEGIN
  60. 56 OpenCustomerDBF(FALSE);
  61. ***** ^ not supported yet
  62. ***** ^ not supported yet
  63. 57 NewList(TheList);
  64. ***** ^ not supported yet
  65. ***** ^ not supported yet
  66. 58 FOR LI := 1 TO NumberRecords(CustomerDBF) DO
  67. ***** ^ not supported yet
  68. ***** ^ not supported yet
  69. 59 ReadDBRec(CustomerDBF,LI);
  70. ***** ^ not supported yet
  71. ***** ^ not supported yet
  72. ***** ^ not supported yet
  73. 60 MoveCustomerFromDBF(Cust);
  74. ***** ^ not supported yet
  75. ***** ^ not supported yet
  76. 61 IF Cust.YTDPURCH >= MinOut
  77. ***** ^ not supported yet
  78. ***** ^ not supported yet
  79. ***** ^ not supported yet
  80. 62 THEN ListInsert(Cust,1,TheList,1);
  81. ***** ^ not supported yet
  82. ***** ^ not supported yet
  83. ***** ^ not supported yet
  84. ***** ^ not supported yet
  85. 63 END;
  86. 64 END;
  87. 65
  88. 66 END ReadCustFile;
  89. ***** ^ not supported yet
  90. 67
  91. 68 PROCEDURE SortByZipCode(C1 : ADDRESS; S1 : CARDINAL;
  92. 69 C2 : ADDRESS; S2 : CARDINAL): INTEGER;
  93. 70 VAR
  94. 71 P1,P2 :POINTER TO CustomerRec;
  95. ***** ^ not supported yet
  96. 72 BEGIN
  97. 73 P1 := C1;
  98. ***** ^ not supported yet
  99. ***** ^ not supported yet
  100. 74 P2 := C2;
  101. ***** ^ not supported yet
  102. ***** ^ not supported yet
  103. 75 RETURN CompareStr(P1^.BILLTOZP, P2^.BILLTOZP);
  104. ***** ^ not supported yet
  105. ***** ^ not supported yet
  106. ***** ^ not supported yet
  107. ***** ^ not supported yet
  108. ***** ^ not supported yet
  109. 76 END SortByZipCode;
  110. ***** ^ not supported yet
  111. 77
  112. 78 PROCEDURE SortByValue(C1 : ADDRESS; S1 : CARDINAL;
  113. 79 C2 : ADDRESS; S2 : CARDINAL): INTEGER;
  114. 80 VAR
  115. 81 P1 : POINTER TO CustomerRec;
  116. ***** ^ not supported yet
  117. 82 P2 : POINTER TO CustomerRec;
  118. ***** ^ not supported yet
  119. 83
  120. 84 BEGIN
  121. 85 P1 := C1;
  122. ***** ^ not supported yet
  123. ***** ^ not supported yet
  124. 86 P2 := C2;
  125. ***** ^ not supported yet
  126. ***** ^ not supported yet
  127. 87 IF P1^.YTDPURCH < P2^.YTDPURCH
  128. ***** ^ not supported yet
  129. ***** ^ not supported yet
  130. ***** ^ not supported yet
  131. ***** ^ not supported yet
  132. 88 THEN RETURN -1;
  133. 89 ELSIF P1^.YTDPURCH > P2^.YTDPURCH
  134. ***** ^ not supported yet
  135. ***** ^ not supported yet
  136. ***** ^ not supported yet
  137. ***** ^ not supported yet
  138. 90 THEN RETURN 1;
  139. 91 ELSE RETURN 0;
  140. 92 END;
  141. 93 END SortByValue;
  142. ***** ^ not supported yet
  143. 94
  144. 95
  145. 96 PROCEDURE CustMailLabels();
  146. 97 CONST
  147. 98 FormFeed = 12C;
  148. 99 VAR
  149. 100
  150. 101 CustList : GenList;
  151. 102 J,K : CARDINAL;
  152. 103 Cust : CustomerRec;
  153. 104 Code : CARDINAL;
  154. 105 CustAddr : AddressRec;
  155. 106 Handle : CARDINAL;
  156. 107 BEGIN
  157. 108 MinOut := 0.0; (* get everyone *)
  158. ***** ^ not supported yet
  159. 109 ReadCustFile(CustList);
  160. ***** ^ not supported yet
  161. ***** ^ not supported yet
  162. 110 SortList(CustList,SortByZipCode);
  163. ***** ^ not supported yet
  164. ***** ^ not supported yet
  165. ***** ^ not supported yet
  166. 111 Handle := OpenReportDevice();
  167. ***** ^ not supported yet
  168. ***** ^ not supported yet
  169. 112 FOR J := 1 TO ListLength(CustList) DO
  170. ***** ^ not supported yet
  171. ***** ^ not supported yet
  172. 113 GetElmt(CustList,J,Cust,Code);
  173. ***** ^ not supported yet
  174. ***** ^ not supported yet
  175. ***** ^ not supported yet
  176. ***** ^ not supported yet
  177. 114 SetCustomerRec(Cust);
  178. ***** ^ not supported yet
  179. ***** ^ not supported yet
  180. 115 GetCustAddr(CustAddr,Billing);
  181. ***** ^ not supported yet
  182. ***** ^ not supported yet
  183. ***** ^ undeclared identifier
  184. 116 FOR K := 0 TO 3 DO
  185. 117 WriteEol(Handle,CustAddr.Line[K]);
  186. ***** ^ not supported yet
  187. ***** ^ not supported yet
  188. ***** ^ not supported yet
  189. ***** ^ not supported yet
  190. 118 END; (* end for k *)
  191. 119 WriteEol(Handle,'');
  192. ***** ^ not supported yet
  193. ***** ^ not supported yet
  194. 120 WriteEol(Handle,'');
  195. ***** ^ not supported yet
  196. ***** ^ not supported yet
  197. 121 END;
  198. 122 CloseReportDevice(Handle);
  199. ***** ^ not supported yet
  200. ***** ^ not supported yet
  201. 123 DisposeList(CustList);
  202. ***** ^ not supported yet
  203. ***** ^ not supported yet
  204. 124 END CustMailLabels;
  205. ***** ^ not supported yet
  206. 125
  207. 126 PROCEDURE CustValue();
  208. 127 VAR
  209. 128
  210. 129 CustList : GenList;
  211. 130 J : CARDINAL;
  212. 131 Cust : CustomerRec;
  213. 132 Code : CARDINAL;
  214. 133 CustAddr : AddressRec;
  215. 134 Handle : CARDINAL;
  216. 135 Str : ARRAY[0..10]OF CHAR;
  217. ***** ^ not supported yet
  218. ***** ^ not supported yet
  219. 136 FieldRec : InputFieldRecord;
  220. 137 DF : DisplayFrame;
  221. 138 Line : ARRAY[0..80] OF CHAR;
  222. ***** ^ not supported yet
  223. ***** ^ not supported yet
  224. 139 BEGIN
  225. 140 MinOut := 1.0; (* get everyone that has purchased anything*)
  226. ***** ^ not supported yet
  227. 141 ReadCustFile(CustList);
  228. ***** ^ not supported yet
  229. ***** ^ not supported yet
  230. 142 SortList(CustList,SortByValue);
  231. ***** ^ not supported yet
  232. ***** ^ not supported yet
  233. ***** ^ not supported yet
  234. 143 InitDisplayFrame(DF,VWindows.CurrentWindow);
  235. ***** ^ not supported yet
  236. ***** ^ not supported yet
  237. ***** ^ not supported yet
  238. ***** ^ not supported yet
  239. 144 AddStrField(DF,2,2,
  240. ***** ^ not supported yet
  241. ***** ^ not supported yet
  242. 145 ' Customer Name Sales Rep YTD Purchase',67);
  243. ***** ^ not supported yet
  244. ***** ^ not supported yet
  245. 146 GetFieldRec(DF,1,FieldRec);
  246. ***** ^ not supported yet
  247. ***** ^ not supported yet
  248. ***** ^ not supported yet
  249. 147 FieldRec.typ := DispCode; (* headline = display code *)
  250. ***** ^ not supported yet
  251. ***** ^ not supported yet
  252. ***** ^ not supported yet
  253. 148 PutFieldRec(FieldRec,DF,1);
  254. ***** ^ not supported yet
  255. ***** ^ not supported yet
  256. ***** ^ not supported yet
  257. ***** ^ not supported yet
  258. 149 DF^.headline := 2;
  259. ***** ^ not supported yet
  260. ***** ^ not supported yet
  261. 150
  262. 151 FOR J := 1 TO ListLength(CustList) DO
  263. ***** ^ not supported yet
  264. ***** ^ not supported yet
  265. 152 GetElmt(CustList,J,Cust,Code);
  266. ***** ^ not supported yet
  267. ***** ^ not supported yet
  268. ***** ^ not supported yet
  269. ***** ^ not supported yet
  270. 153 Fill(ADR(Line),SIZE(Line),' ');
  271. ***** ^ not supported yet
  272. ***** ^ not supported yet
  273. ***** ^ not supported yet
  274. ***** ^ not supported yet
  275. ***** ^ not supported yet
  276. ***** ^ not supported yet
  277. 154 Line[77] := 0C;
  278. ***** ^ not supported yet
  279. ***** ^ not supported yet
  280. 155 OverWrite(Cust.NAME,Line,1);
  281. ***** ^ not supported yet
  282. ***** ^ not supported yet
  283. ***** ^ not supported yet
  284. ***** ^ not supported yet
  285. ***** ^ not supported yet
  286. 156 OverWrite(Cust.SALESREP,Line,45);
  287. ***** ^ not supported yet
  288. ***** ^ not supported yet
  289. ***** ^ not supported yet
  290. ***** ^ not supported yet
  291. ***** ^ not supported yet
  292. 157 RealToStr(Cust.YTDPURCH,2,8,Str);
  293. ***** ^ not supported yet
  294. ***** ^ not supported yet
  295. ***** ^ not supported yet
  296. ***** ^ not supported yet
  297. 158 OverWrite(Str,Line,60);
  298. ***** ^ not supported yet
  299. ***** ^ not supported yet
  300. ***** ^ not supported yet
  301. ***** ^ not supported yet
  302. 159 AddMenuItem(DF,2,J+2,Line,78,0,' ');
  303. ***** ^ not supported yet
  304. ***** ^ not supported yet
  305. ***** ^ not supported yet
  306. ***** ^ not supported yet
  307. 160 END;
  308. 161 DisposeList(CustList);
  309. ***** ^ not supported yet
  310. ***** ^ not supported yet
  311. 162 ShowDisplayFrame(DF,1,1,80,24);
  312. ***** ^ not supported yet
  313. ***** ^ not supported yet
  314. ***** ^ not supported yet
  315. 163 Control(DF);
  316. ***** ^ not supported yet
  317. ***** ^ not supported yet
  318. 164 IF PromptYN(' Print Report ',DF)
  319. ***** ^ not supported yet
  320. ***** ^ not supported yet
  321. ***** ^ not supported yet
  322. 165 THEN
  323. 166 Line := 'Customer Sorted by YTD Purchases';
  324. ***** ^ not supported yet
  325. ***** ^ not supported yet
  326. 167 NormalTitle(Line);
  327. ***** ^ not supported yet
  328. ***** ^ not supported yet
  329. 168 Handle := OpenReportDevice();
  330. ***** ^ not supported yet
  331. ***** ^ not supported yet
  332. 169 PrintFrame(DF,Handle);
  333. ***** ^ not supported yet
  334. ***** ^ not supported yet
  335. ***** ^ not supported yet
  336. 170 CloseReportDevice(Handle);
  337. ***** ^ not supported yet
  338. ***** ^ not supported yet
  339. 171 END;
  340. 172 CloseDisplayFrame(DF);
  341. ***** ^ not supported yet
  342. ***** ^ not supported yet
  343. 173 DisposeList(CustList);
  344. ***** ^ not supported yet
  345. ***** ^ not supported yet
  346. 174 END CustValue;
  347. ***** ^ not supported yet
  348. 175
  349. 176 PROCEDURE CustLateLetters();
  350. 177
  351. 178 VAR
  352. 179 L10Pre,
  353. 180 L10Suf,
  354. 181 L30Pre,
  355. 182 L30Suf,
  356. 183 L60Pre,
  357. 184 L60Suf : GenList;
  358. 185 LI : LONGINT;
  359. 186 DaysLate : CARDINAL;
  360. 187 PrtStr : ARRAY[0..80] OF CHAR;
  361. ***** ^ not supported yet
  362. ***** ^ not supported yet
  363. 188 InvList : GenList;
  364. 189 J : CARDINAL;
  365. 190 InvAddr : ADDRESS;
  366. 191 Code,Size : CARDINAL;
  367. 192 PtrHand : CARDINAL;
  368. 193 EM : CARDINAL;
  369. 194 Cust : CustomerRec;
  370. 195 B : BOOLEAN;
  371. 196 PROCEDURE PrintLetter(Prefix,Suffix ,Invoice : GenList);
  372. 197 CONST
  373. 198 (* FormLength : ARRAY OF CHAR = [027c,'C',66c]; *)
  374. 199 FormFeed = 012C;
  375. 200 VAR
  376. 201
  377. 202 J : CARDINAL;
  378. 203 Addr :AddressRec;
  379. 204 Line : ARRAY [0..80] OF CHAR;
  380. ***** ^ not supported yet
  381. ***** ^ not supported yet
  382. 205 FormLength : ARRAY[0..3] OF CHAR;
  383. ***** ^ not supported yet
  384. ***** ^ not supported yet
  385. 206 BEGIN
  386. 207 Concat(027C,'C',FormLength);
  387. ***** ^ not supported yet
  388. ***** ^ not supported yet
  389. 208 Append(FormLength,66C);
  390. ***** ^ not supported yet
  391. ***** ^ not supported yet
  392. ***** ^ not supported yet
  393. 209 WriteStr( PtrHand,FormLength);
  394. ***** ^ not supported yet
  395. ***** ^ not supported yet
  396. 210 Line := '';
  397. ***** ^ not supported yet
  398. ***** ^ incompatible assignment
  399. 211 NormalTitle(Line);
  400. ***** ^ not supported yet
  401. ***** ^ not supported yet
  402. 212 FOR J := 0 TO 6 DO
  403. 213 WriteEol(PtrHand,PrintTitle[J]);
  404. ***** ^ not supported yet
  405. ***** ^ not supported yet
  406. ***** ^ not supported yet
  407. 214 END;
  408. 215 SetCustomerRec(Cust);
  409. ***** ^ not supported yet
  410. ***** ^ not supported yet
  411. 216 GetCustAddr(Addr,Billing);
  412. ***** ^ not supported yet
  413. ***** ^ not supported yet
  414. ***** ^ undeclared identifier
  415. 217 FOR J := 0 TO 3 DO
  416. 218 WriteEol(PtrHand,'');
  417. ***** ^ not supported yet
  418. ***** ^ not supported yet
  419. 219 END;
  420. 220 FOR J := 0 TO 3 DO
  421. 221 WriteEol(PtrHand,Addr.Line[J]);
  422. ***** ^ not supported yet
  423. ***** ^ not supported yet
  424. ***** ^ not supported yet
  425. ***** ^ not supported yet
  426. 222 WriteStr(PtrHand,' ');
  427. ***** ^ not supported yet
  428. ***** ^ not supported yet
  429. 223 END;
  430. 224
  431. 225 PrintList(PtrHand,Prefix,4,'');
  432. ***** ^ not supported yet
  433. ***** ^ not supported yet
  434. ***** ^ not supported yet
  435. 226 FOR J := 1 TO ListLength(InvList) DO
  436. ***** ^ not supported yet
  437. ***** ^ not supported yet
  438. 227 GetElmtAdr(InvList,J,InvAddr,Code,Size);
  439. ***** ^ not supported yet
  440. ***** ^ not supported yet
  441. ***** ^ not supported yet
  442. ***** ^ not supported yet
  443. 228 MakeInvoicePrintLine(InvAddr,Line);
  444. ***** ^ not supported yet
  445. ***** ^ not supported yet
  446. ***** ^ not supported yet
  447. 229 WriteEol(PtrHand,Line);
  448. ***** ^ not supported yet
  449. ***** ^ not supported yet
  450. 230 END;
  451. 231 PrintList(PtrHand,Suffix,4,'');
  452. ***** ^ not supported yet
  453. ***** ^ not supported yet
  454. ***** ^ not supported yet
  455. 232 WriteEol(PtrHand,FormFeed);
  456. ***** ^ not supported yet
  457. ***** ^ not supported yet
  458. 233 END PrintLetter;
  459. ***** ^ not supported yet
  460. 234
  461. 235 BEGIN
  462. 236 EM := OpenFile(PtrHand,Config.LabelPrt);
  463. ***** ^ not supported yet
  464. ***** ^ not supported yet
  465. ***** ^ not supported yet
  466. 237 NewList(L10Pre);
  467. ***** ^ not supported yet
  468. ***** ^ not supported yet
  469. 238 NewList(L10Suf);
  470. ***** ^ not supported yet
  471. ***** ^ not supported yet
  472. 239 NewList(L30Pre);
  473. ***** ^ not supported yet
  474. ***** ^ not supported yet
  475. 240 NewList(L30Suf);
  476. ***** ^ not supported yet
  477. ***** ^ not supported yet
  478. 241 NewList(L60Pre);
  479. ***** ^ not supported yet
  480. ***** ^ not supported yet
  481. 242 NewList(L60Suf);
  482. ***** ^ not supported yet
  483. ***** ^ not supported yet
  484. 243 PrtStr := 'l10pre.txt';
  485. ***** ^ not supported yet
  486. ***** ^ not supported yet
  487. 244 J := TextFileToList(PrtStr,L10Pre);
  488. ***** ^ not supported yet
  489. ***** ^ not supported yet
  490. ***** ^ not supported yet
  491. 245 PrtStr := 'l30pre.txt';
  492. ***** ^ not supported yet
  493. ***** ^ not supported yet
  494. 246 J := TextFileToList(PrtStr,L30Pre);
  495. ***** ^ not supported yet
  496. ***** ^ not supported yet
  497. ***** ^ not supported yet
  498. 247 PrtStr := 'l60pre.txt';
  499. ***** ^ not supported yet
  500. ***** ^ not supported yet
  501. 248 J := TextFileToList(PrtStr,L60Pre);
  502. ***** ^ not supported yet
  503. ***** ^ not supported yet
  504. ***** ^ not supported yet
  505. 249 PrtStr := 'l10Suf.txt';
  506. ***** ^ not supported yet
  507. ***** ^ not supported yet
  508. 250 J := TextFileToList(PrtStr,L10Suf);
  509. ***** ^ not supported yet
  510. ***** ^ not supported yet
  511. ***** ^ not supported yet
  512. 251 PrtStr := 'l30Suf.txt';
  513. ***** ^ not supported yet
  514. ***** ^ not supported yet
  515. 252 J := TextFileToList(PrtStr,L10Suf);
  516. ***** ^ not supported yet
  517. ***** ^ not supported yet
  518. ***** ^ not supported yet
  519. 253 PrtStr := 'l60Suf.txt';
  520. ***** ^ not supported yet
  521. ***** ^ not supported yet
  522. 254 J := TextFileToList(PrtStr,L10Suf);
  523. ***** ^ not supported yet
  524. ***** ^ not supported yet
  525. ***** ^ not supported yet
  526. 255 OpenCustomerDBF(FALSE);
  527. ***** ^ not supported yet
  528. ***** ^ not supported yet
  529. 256 FOR LI := 1 TO NumberRecords(CustomerDBF) DO
  530. ***** ^ not supported yet
  531. ***** ^ not supported yet
  532. 257 ReadDBRec(CustomerDBF,LI);
  533. ***** ^ not supported yet
  534. ***** ^ not supported yet
  535. ***** ^ not supported yet
  536. 258 MoveCustomerFromDBF(Cust);
  537. ***** ^ not supported yet
  538. ***** ^ not supported yet
  539. 259 GetOutstanding(Cust.CIN,InvList);
  540. ***** ^ not supported yet
  541. ***** ^ not supported yet
  542. ***** ^ not supported yet
  543. ***** ^ not supported yet
  544. 260 DaysLate := 0;
  545. 261 FOR J := 1 TO ListLength(InvList) DO
  546. ***** ^ not supported yet
  547. ***** ^ not supported yet
  548. 262 GetElmtAdr(InvList,J,InvAddr,Code,Size);
  549. ***** ^ not supported yet
  550. ***** ^ not supported yet
  551. ***** ^ not supported yet
  552. ***** ^ not supported yet
  553. 263 DaysLate := Max(DaysLate,InvoiceDaysLate(InvAddr));
  554. ***** ^ not supported yet
  555. ***** ^ not supported yet
  556. ***** ^ not supported yet
  557. 264 END;
  558. 265 IF DaysLate >= 60
  559. 266 THEN PrintLetter(L60Pre,L60Suf,InvList);
  560. ***** ^ not supported yet
  561. ***** ^ not supported yet
  562. ***** ^ not supported yet
  563. ***** ^ not supported yet
  564. 267 ELSIF DaysLate >= 30
  565. 268 THEN PrintLetter(L30Pre,L30Suf,InvList);
  566. ***** ^ not supported yet
  567. ***** ^ not supported yet
  568. ***** ^ not supported yet
  569. ***** ^ not supported yet
  570. 269 ELSIF DaysLate >= 10
  571. 270 THEN PrintLetter(L10Pre,L10Suf,InvList);
  572. ***** ^ not supported yet
  573. ***** ^ not supported yet
  574. ***** ^ not supported yet
  575. ***** ^ not supported yet
  576. 271 END;
  577. 272 DisposeList(InvList);
  578. ***** ^ not supported yet
  579. ***** ^ not supported yet
  580. 273 END;
  581. 274 DisposeList(L10Pre);
  582. ***** ^ not supported yet
  583. ***** ^ not supported yet
  584. 275 DisposeList(L30Pre);
  585. ***** ^ not supported yet
  586. ***** ^ not supported yet
  587. 276 DisposeList(L60Pre);
  588. ***** ^ not supported yet
  589. ***** ^ not supported yet
  590. 277 DisposeList(L10Suf);
  591. ***** ^ not supported yet
  592. ***** ^ not supported yet
  593. 278 DisposeList(L30Suf);
  594. ***** ^ not supported yet
  595. ***** ^ not supported yet
  596. 279 DisposeList(L60Suf);
  597. ***** ^ not supported yet
  598. ***** ^ not supported yet
  599. 280
  600. 281 EM := CloseHandle(PtrHand);
  601. ***** ^ not supported yet
  602. ***** ^ not supported yet
  603. 282 END CustLateLetters;
  604. ***** ^ not supported yet
  605. 283
  606. 284
  607. 285
  608. 286 END CustReports.
  609. ***** ^ not supported yet
  610. 322 errors