SALES.DEF 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. DEFINITION MODULE Sales;
  2. (*
  3. Copyright (C) 1988,1989 Jensen & Partners International
  4. *)
  5. TYPE
  6. TotalRec = RECORD (* hold the daily totals *)
  7. TotalDollars : LONGREAL;
  8. TotalCash,
  9. TotalCharge : LONGREAL;
  10. NumTrans : CARDINAL;
  11. END;
  12. VAR
  13. TotalFile : ARRAY[0..12] OF CHAR;
  14. (*
  15. This file name is built from the current date by the
  16. Sales init code, and has the format MMDDYY.TOT. This
  17. is used so that if you exit the program, the sales thus
  18. far for today are not lost. If the file exists when
  19. Template() starts, the old totals are read in. The file
  20. is always created with the latest data when the program
  21. ends. This is accomplished with the Close() call (if
  22. this call is made several times, the file is just
  23. updated each time).
  24. *)
  25. PROCEDURE Template();
  26. (**
  27. Display the Sales screen and read the summary file.
  28. **)
  29. PROCEDURE Clear();
  30. (**
  31. Clear information off the Sales screen
  32. **)
  33. PROCEDURE Work();
  34. (**
  35. Perform the entry of sales, information requests, etc.
  36. Template should be called first to open the window and the summary
  37. file.
  38. **)
  39. PROCEDURE Summary();
  40. (**
  41. Summarize current sales figures in a window
  42. **)
  43. PROCEDURE Close();
  44. (**
  45. Remove the Sales screen from the screen and write the totals out
  46. to the summary file.
  47. **)
  48. END Sales.