home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 1995 September / Image.iso / working / pegasus / setup.2 / REPORTS / INVINV01.REP < prev    next >
Encoding:
Text File  |  1995-06-21  |  36.9 KB  |  1,129 lines

  1. VERSION 2.00
  2. Begin Report INVINV01.REP
  3.       Caption      =   "INVINV01.REP"
  4.       Width        =   11175
  5.       Height       =   16395
  6.       Reportheader =   0
  7.       Header       =   6375
  8.       Transaction  =   6330
  9.       SubTotal     =   3360
  10.       Footer       =   0
  11.       Pagefooter   =   16080
  12.       Replicate    =   375
  13.       Style        =   13
  14.       Query        =   "STTRND "
  15.       Macro        =   "1LU:Select from SLNAME where SLNAME.SNACCOUNT=STTRND.CDACCID"
  16.       Macro        =   "1LU:Select from STTRNH where STTRNH.CHTRANNO=STTRND.CDTRANNO"
  17.       Macro        =   "1OF:@REPVARS.REPTOT(0) = REPTOT(0)+1"
  18.       Macro        =   "3PP:@REPVARS.REPTOT(0) = 0"
  19.       BreakOn      =   "STTRND.CDTRANNO"
  20. End
  21. Begin Control LABEL
  22.       Type         =   "Label"
  23.       Style        =   9
  24.       Caption      =   ""Quantity""
  25.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  26.       Location     =   "Header Block"
  27.       Height       =   285
  28.       Left         =   5670
  29.       Top          =   5850
  30.       Width        =   870
  31. End
  32. Begin Control LABEL
  33.       Type         =   "Label"
  34.       Style        =   9
  35.       Caption      =   ""Description""
  36.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  37.       Location     =   "Header Block"
  38.       Height       =   285
  39.       Left         =   2385
  40.       Top          =   5850
  41.       Width        =   1140
  42. End
  43. Begin Control SNNAME
  44.       Type         =   "Text"
  45.       Style        =   0
  46.       Fieldname    =   "SNNAME"
  47.       Filename     =   "SLNAME"
  48.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  49.       Location     =   "Header Block"
  50.       Height       =   270
  51.       Left         =   810
  52.       Top          =   2280
  53.       Width        =   3645
  54. End
  55. Begin Control SNADD1
  56.       Type         =   "Text"
  57.       Style        =   0
  58.       Fieldname    =   "SNADD1"
  59.       Filename     =   "SLNAME"
  60.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  61.       Location     =   "Header Block"
  62.       Height       =   270
  63.       Left         =   810
  64.       Top          =   2535
  65.       Width        =   3645
  66. End
  67. Begin Control SNADD2
  68.       Type         =   "Text"
  69.       Style        =   0
  70.       Fieldname    =   "SNADD2"
  71.       Filename     =   "SLNAME"
  72.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  73.       Location     =   "Header Block"
  74.       Height       =   270
  75.       Left         =   810
  76.       Top          =   2790
  77.       Width        =   3645
  78. End
  79. Begin Control SNADD3
  80.       Type         =   "Text"
  81.       Style        =   0
  82.       Fieldname    =   "SNADD3"
  83.       Filename     =   "SLNAME"
  84.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  85.       Location     =   "Header Block"
  86.       Height       =   270
  87.       Left         =   810
  88.       Top          =   3030
  89.       Width        =   3645
  90. End
  91. Begin Control SNADD4
  92.       Type         =   "Text"
  93.       Style        =   0
  94.       Fieldname    =   "SNADD4"
  95.       Filename     =   "SLNAME"
  96.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  97.       Location     =   "Header Block"
  98.       Height       =   270
  99.       Left         =   810
  100.       Top          =   3285
  101.       Width        =   3645
  102. End
  103. Begin Control SNPOSTCODE
  104.       Type         =   "Text"
  105.       Style        =   0
  106.       Fieldname    =   "SNPOSTCODE"
  107.       Filename     =   "SLNAME"
  108.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  109.       Location     =   "Header Block"
  110.       Height       =   270
  111.       Left         =   810
  112.       Top          =   3540
  113.       Width        =   3645
  114. End
  115. Begin Control LABEL
  116.       Type         =   "Label"
  117.       Style        =   9
  118.       Caption      =   ""Price""
  119.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  120.       Location     =   "Header Block"
  121.       Height       =   285
  122.       Left         =   6915
  123.       Top          =   5850
  124.       Width        =   600
  125. End
  126. Begin Control LABEL
  127.       Type         =   "Label"
  128.       Style        =   9
  129.       Caption      =   ""Product ID""
  130.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  131.       Location     =   "Header Block"
  132.       Height       =   285
  133.       Left         =   630
  134.       Top          =   5850
  135.       Width        =   1275
  136. End
  137. Begin Control LABEL
  138.       Type         =   "Label"
  139.       Style        =   9
  140.       Caption      =   "if(STTRNH.CHTYPE="4","Invoice To:","Credit To:")"
  141.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  142.       Location     =   "Header Block"
  143.       Height       =   270
  144.       Left         =   810
  145.       Top          =   2040
  146.       Width        =   2025
  147. End
  148. Begin Control CHDEL1
  149.       Type         =   "Text"
  150.       Style        =   0
  151.       Fieldname    =   "CHDEL1"
  152.       Filename     =   "STTRNH"
  153.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  154.       Location     =   "Header Block"
  155.       Height       =   270
  156.       Left         =   6615
  157.       Top          =   2280
  158.       Width        =   3645
  159. End
  160. Begin Control CHDEL2
  161.       Type         =   "Text"
  162.       Style        =   0
  163.       Fieldname    =   "CHDEL2"
  164.       Filename     =   "STTRNH"
  165.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  166.       Location     =   "Header Block"
  167.       Height       =   270
  168.       Left         =   6615
  169.       Top          =   2535
  170.       Width        =   3645
  171. End
  172. Begin Control CHDEL3
  173.       Type         =   "Text"
  174.       Style        =   0
  175.       Fieldname    =   "CHDEL3"
  176.       Filename     =   "STTRNH"
  177.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  178.       Location     =   "Header Block"
  179.       Height       =   270
  180.       Left         =   6615
  181.       Top          =   2790
  182.       Width        =   3645
  183. End
  184. Begin Control CHDEL4
  185.       Type         =   "Text"
  186.       Style        =   0
  187.       Fieldname    =   "CHDEL4"
  188.       Filename     =   "STTRNH"
  189.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  190.       Location     =   "Header Block"
  191.       Height       =   270
  192.       Left         =   6615
  193.       Top          =   3030
  194.       Width        =   3645
  195. End
  196. Begin Control CHDEL5
  197.       Type         =   "Text"
  198.       Style        =   0
  199.       Fieldname    =   "CHDEL5"
  200.       Filename     =   "STTRNH"
  201.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  202.       Location     =   "Header Block"
  203.       Height       =   270
  204.       Left         =   6615
  205.       Top          =   3285
  206.       Width        =   3645
  207. End
  208. Begin Control LABEL
  209.       Type         =   "Label"
  210.       Style        =   9
  211.       Caption      =   ""Deliver To:""
  212.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  213.       Location     =   "Header Block"
  214.       Height       =   270
  215.       Left         =   6615
  216.       Top          =   2040
  217.       Width        =   2025
  218. End
  219. Begin Control LABEL
  220.       Type         =   "Label"
  221.       Style        =   9
  222.       Caption      =   ""Despatched By""
  223.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  224.       Location     =   "Header Block"
  225.       Height       =   270
  226.       Left         =   5535
  227.       Top          =   4545
  228.       Width        =   1215
  229. End
  230. Begin Control CHDESPBY
  231.       Type         =   "Text"
  232.       Style        =   0
  233.       Fieldname    =   "CHDESPBY"
  234.       Filename     =   "STTRNH"
  235.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  236.       Location     =   "Header Block"
  237.       Height       =   270
  238.       Left         =   6750
  239.       Top          =   4545
  240.       Width        =   1890
  241. End
  242. Begin Control LABEL
  243.       Type         =   "Label"
  244.       Style        =   9
  245.       Caption      =   ""Customer ID""
  246.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  247.       Location     =   "Header Block"
  248.       Height       =   270
  249.       Left         =   810
  250.       Top          =   5010
  251.       Width        =   2025
  252. End
  253. Begin Control CHACCID
  254.       Type         =   "Text"
  255.       Style        =   0
  256.       Fieldname    =   "CHACCID"
  257.       Filename     =   "STTRNH"
  258.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  259.       Location     =   "Header Block"
  260.       Height       =   270
  261.       Left         =   2835
  262.       Top          =   5010
  263.       Width        =   1890
  264. End
  265. Begin Control COMPADD1
  266.       Type         =   "Text"
  267.       Style        =   0
  268.       Fieldname    =   "COMPADD1"
  269.       Filename     =   "SYSTEM"
  270.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  271.       Location     =   "Header Block"
  272.       Height       =   270
  273.       Left         =   810
  274.       Top          =   540
  275.       Width        =   3375
  276. End
  277. Begin Control COMPADD2
  278.       Type         =   "Text"
  279.       Style        =   0
  280.       Fieldname    =   "COMPADD2"
  281.       Filename     =   "SYSTEM"
  282.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  283.       Location     =   "Header Block"
  284.       Height       =   270
  285.       Left         =   810
  286.       Top          =   810
  287.       Width        =   3375
  288. End
  289. Begin Control COMPADD3
  290.       Type         =   "Text"
  291.       Style        =   0
  292.       Fieldname    =   "COMPADD3"
  293.       Filename     =   "SYSTEM"
  294.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  295.       Location     =   "Header Block"
  296.       Height       =   270
  297.       Left         =   810
  298.       Top          =   1080
  299.       Width        =   3375
  300. End
  301. Begin Control COMPADD4
  302.       Type         =   "Text"
  303.       Style        =   0
  304.       Fieldname    =   "COMPADD4"
  305.       Filename     =   "SYSTEM"
  306.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  307.       Location     =   "Header Block"
  308.       Height       =   270
  309.       Left         =   810
  310.       Top          =   1350
  311.       Width        =   3375
  312. End
  313. Begin Control COMPTEL
  314.       Type         =   "Text"
  315.       Style        =   0
  316.       Fieldname    =   "COMPTEL"
  317.       Filename     =   "SYSTEM"
  318.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  319.       Location     =   "Header Block"
  320.       Height       =   270
  321.       Left         =   5265
  322.       Top          =   810
  323.       Width        =   2160
  324. End
  325. Begin Control LABEL
  326.       Type         =   "Label"
  327.       Style        =   1
  328.       Caption      =   "Telephone No."
  329.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  330.       Location     =   "Header Block"
  331.       Height       =   270
  332.       Left         =   4185
  333.       Top          =   810
  334.       Width        =   1080
  335. End
  336. Begin Control COMPFAX
  337.       Type         =   "Text"
  338.       Style        =   0
  339.       Fieldname    =   "COMPFAX"
  340.       Filename     =   "SYSTEM"
  341.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  342.       Location     =   "Header Block"
  343.       Height       =   270
  344.       Left         =   5265
  345.       Top          =   1080
  346.       Width        =   2160
  347. End
  348. Begin Control LABEL
  349.       Type         =   "Label"
  350.       Style        =   9
  351.       Caption      =   ""Value""
  352.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  353.       Location     =   "Header Block"
  354.       Height       =   285
  355.       Left         =   9885
  356.       Top          =   5850
  357.       Width        =   600
  358. End
  359. Begin Control LABEL
  360.       Type         =   "Label"
  361.       Style        =   12
  362.       Caption      =   ""Discount %""
  363.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  364.       Location     =   "Header Block"
  365.       Height       =   285
  366.       Left         =   7560
  367.       Top          =   6090
  368.       Width        =   1005
  369. End
  370. Begin Control LABEL
  371.       Type         =   "Label"
  372.       Style        =   12
  373.       Caption      =   ""Line Discount""
  374.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  375.       Location     =   "Header Block"
  376.       Height       =   285
  377.       Left         =   8400
  378.       Top          =   5850
  379.       Width        =   1275
  380. End
  381. Begin Control LABEL
  382.       Type         =   "Label"
  383.       Style        =   10
  384.       Caption      =   "if(STTRNH.CHTYPE="4","Invoice : ","Credit : ")"
  385.       Font         =   "-240|0|0|0|700|0|0|0|0|3|2|1|34|Arial"
  386.       Location     =   "Header Block"
  387.       Height       =   270
  388.       Left         =   7560
  389.       Top          =   360
  390.       Width        =   1350
  391. End
  392. Begin Control CHDOCNO
  393.       Type         =   "Text"
  394.       Style        =   0
  395.       Fieldname    =   "CHDOCNO"
  396.       Filename     =   "STTRNH"
  397.       Font         =   "-240|0|0|0|700|0|0|0|0|3|2|1|34|Arial"
  398.       Location     =   "Header Block"
  399.       Height       =   270
  400.       Left         =   8910
  401.       Top          =   360
  402.       Width        =   2160
  403. End
  404. Begin Control LABEL
  405.       Type         =   "Label"
  406.       Style        =   1
  407.       Caption      =   "Facsimile No."
  408.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  409.       Location     =   "Header Block"
  410.       Height       =   270
  411.       Left         =   4185
  412.       Top          =   1080
  413.       Width        =   1080
  414. End
  415. Begin Control LABEL
  416.       Type         =   "Label"
  417.       Style        =   9
  418.       Caption      =   "IF(TRIM(REPSTR(9))<>"P" & TRIM(SYSTEM.VATREG)<>"","VAT Reg. No.","")"
  419.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  420.       Location     =   "Header Block"
  421.       Height       =   270
  422.       Left         =   4185
  423.       Top          =   1350
  424.       Width        =   1140
  425. End
  426. Begin Control LABEL
  427.       Type         =   "Label"
  428.       Style        =   9
  429.       Caption      =   ""Customer VAT Reg. No.""
  430.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  431.       Location     =   "Header Block"
  432.       Height       =   270
  433.       Left         =   810
  434.       Top          =   4545
  435.       Width        =   2025
  436. End
  437. Begin Control LABEL
  438.       Type         =   "Label"
  439.       Style        =   10
  440.       Caption      =   ""Date : ""
  441.       Font         =   "-195|0|0|0|700|0|0|0|0|3|2|1|34|Arial"
  442.       Location     =   "Header Block"
  443.       Height       =   270
  444.       Left         =   7950
  445.       Top          =   765
  446.       Width        =   945
  447. End
  448. Begin Control CHTXNDATE
  449.       Type         =   "Text"
  450.       Style        =   0
  451.       Fieldname    =   "CHTXNDATE"
  452.       Filename     =   "STTRNH"
  453.       Font         =   "-195|0|0|0|700|0|0|0|0|3|2|1|34|Arial"
  454.       Location     =   "Header Block"
  455.       Height       =   270
  456.       Left         =   8910
  457.       Top          =   765
  458.       Width        =   1620
  459. End
  460. Begin Control LABEL
  461.       Type         =   "Label"
  462.       Style        =   9
  463.       Caption      =   ""Order No.""
  464.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  465.       Location     =   "Header Block"
  466.       Height       =   270
  467.       Left         =   5535
  468.       Top          =   5010
  469.       Width        =   1215
  470. End
  471. Begin Control CHORIGDOC
  472.       Type         =   "Text"
  473.       Style        =   0
  474.       Fieldname    =   "CHORIGDOC"
  475.       Filename     =   "STTRNH"
  476.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  477.       Location     =   "Header Block"
  478.       Height       =   270
  479.       Left         =   6750
  480.       Top          =   5010
  481.       Width        =   1890
  482. End
  483. Begin Control LABEL
  484.       Type         =   "Label"
  485.       Style        =   12
  486.       Caption      =   ""Line""
  487.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  488.       Location     =   "Header Block"
  489.       Height       =   285
  490.       Left         =   7590
  491.       Top          =   5850
  492.       Width        =   870
  493. End
  494. Begin Control LABEL
  495.       Type         =   "Label"
  496.       Style        =   12
  497.       Caption      =   ""Amount""
  498.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  499.       Location     =   "Header Block"
  500.       Height       =   285
  501.       Left         =   8520
  502.       Top          =   6090
  503.       Width        =   1005
  504. End
  505. Begin Control COMPNAME
  506.       Type         =   "Text"
  507.       Style        =   0
  508.       Fieldname    =   "COMPNAME"
  509.       Filename     =   "SYSTEM"
  510.       Font         =   "-180|0|0|0|700|0|0|0|0|3|2|1|34|Arial"
  511.       Location     =   "Header Block"
  512.       Height       =   270
  513.       Left         =   810
  514.       Top          =   270
  515.       Width        =   4995
  516. End
  517. Begin Control LABEL
  518.       Type         =   "Label"
  519.       Style        =   12
  520.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"","VAT","")"
  521.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  522.       Location     =   "Header Block"
  523.       Height       =   285
  524.       Left         =   10560
  525.       Top          =   5850
  526.       Width        =   600
  527. End
  528. Begin Control LABEL
  529.       Type         =   "Label"
  530.       Style        =   12
  531.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"","Code","")"
  532.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  533.       Location     =   "Header Block"
  534.       Height       =   285
  535.       Left         =   10545
  536.       Top          =   6090
  537.       Width        =   600
  538. End
  539. Begin Control LABEL
  540.       Type         =   "Label"
  541.       Style        =   9
  542.       Caption      =   ""Page No. "+STR(REPTOT(0),3,0)"
  543.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  544.       Location     =   "Header Block"
  545.       Height       =   270
  546.       Left         =   8700
  547.       Top          =   5010
  548.       Width        =   1395
  549. End
  550. Begin Control SNVATREGNO
  551.       Type         =   "Text"
  552.       Style        =   0
  553.       Fieldname    =   "SNVATREGNO"
  554.       Filename     =   "SLNAME"
  555.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  556.       Location     =   "Header Block"
  557.       Height       =   270
  558.       Left         =   3240
  559.       Top          =   4545
  560.       Width        =   2160
  561. End
  562. Begin Control LABEL
  563.       Type         =   "Label"
  564.       Style        =   9
  565.       Caption      =   "IF(TRIM(REPSTR(9))<>"P" & TRIM(SYSTEM.VATREG)<>"",SYSTEM.COUNTRY,"")"
  566.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  567.       Location     =   "Header Block"
  568.       Height       =   270
  569.       Left         =   5265
  570.       Top          =   1350
  571.       Width        =   270
  572. End
  573. Begin Control VATREG
  574.       Type         =   "Text"
  575.       Style        =   0
  576.       Fieldname    =   "VATREG"
  577.       Filename     =   "SYSTEM"
  578.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  579.       Location     =   "Header Block"
  580.       Height       =   270
  581.       Left         =   5535
  582.       Top          =   1350
  583.       Width        =   2025
  584. End
  585. Begin Control LABEL
  586.       Type         =   "Label"
  587.       Style        =   9
  588.       Caption      =   "IF(SLNAME.SNVATREGNO="" | SLNAME.SNCOUNTRY="XN","",SLNAME.SNCOUNTRY)"
  589.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  590.       Location     =   "Header Block"
  591.       Height       =   270
  592.       Left         =   2835
  593.       Top          =   4545
  594.       Width        =   405
  595. End
  596. Begin Control LABEL
  597.       Type         =   "Label"
  598.       Style        =   9
  599.       Caption      =   ""Customer Ref.""
  600.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  601.       Location     =   "Header Block"
  602.       Height       =   270
  603.       Left         =   8700
  604.       Top          =   4545
  605.       Width        =   1080
  606. End
  607. Begin Control CHREF
  608.       Type         =   "Text"
  609.       Style        =   0
  610.       Fieldname    =   "CHREF"
  611.       Filename     =   "STTRNH"
  612.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  613.       Location     =   "Header Block"
  614.       Height       =   270
  615.       Left         =   9840
  616.       Top          =   4545
  617.       Width        =   1620
  618. End
  619. Begin Control CDDESC
  620.       Type         =   "Text"
  621.       Style        =   0
  622.       Fieldname    =   "CDDESC"
  623.       Filename     =   "STTRND"
  624.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  625.       Location     =   "Transaction Block"
  626.       Height       =   270
  627.       Left         =   2115
  628.       Top          =   90
  629.       Width        =   3435
  630. End
  631. Begin Control LABEL
  632.       Type         =   "Label"
  633.       Style        =   10
  634.       Caption      =   "if(STTRND.CDDISCP=0,"",STR(STTRND.CDDISCP,5,2))"
  635.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  636.       Location     =   "Transaction Block"
  637.       Height       =   285
  638.       Left         =   7575
  639.       Top          =   90
  640.       Width        =   720
  641. End
  642. Begin Control LABEL
  643.       Type         =   "Label"
  644.       Style        =   10
  645.       Caption      =   "if(STTRND.CDDISCVAL=0,"",STR(STTRND.CDDISCVAL,10,2))"
  646.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  647.       Location     =   "Transaction Block"
  648.       Height       =   285
  649.       Left         =   8385
  650.       Top          =   90
  651.       Width        =   990
  652. End
  653. Begin Control LABEL
  654.       Type         =   "Label"
  655.       Style        =   9
  656.       Caption      =   "if(STTRND.CDPRODTYPE="0","",STTRND.CDPRODID)"
  657.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  658.       Location     =   "Transaction Block"
  659.       Height       =   285
  660.       Left         =   555
  661.       Top          =   90
  662.       Width        =   1530
  663. End
  664. Begin Control LABEL
  665.       Type         =   "Label"
  666.       Style        =   10
  667.       Caption      =   "if(STTRND.CDPRICE=0,"",STR(STTRND.CDPRICE,10,2))"
  668.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  669.       Location     =   "Transaction Block"
  670.       Height       =   285
  671.       Left         =   6495
  672.       Top          =   90
  673.       Width        =   990
  674. End
  675. Begin Control LABEL
  676.       Type         =   "Label"
  677.       Style        =   10
  678.       Caption      =   "if(STTRND.CDQUANTITY=0,"",STR(STTRND.CDQUANTITY,10,2))"
  679.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  680.       Location     =   "Transaction Block"
  681.       Height       =   285
  682.       Left         =   5550
  683.       Top          =   90
  684.       Width        =   855
  685. End
  686. Begin Control LABEL
  687.       Type         =   "Label"
  688.       Style        =   10
  689.       Caption      =   "if(STTRND.CDGOODSVAL=0,"",STR(STTRND.CDGOODSVAL,10,2))"
  690.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  691.       Location     =   "Transaction Block"
  692.       Height       =   285
  693.       Left         =   9465
  694.       Top          =   90
  695.       Width        =   990
  696. End
  697. Begin Control LABEL
  698.       Type         =   "Label"
  699.       Style        =   9
  700.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"",STTRND.CDVATCODE,"")"
  701.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  702.       Location     =   "Transaction Block"
  703.       Height       =   270
  704.       Left         =   10755
  705.       Top          =   90
  706.       Width        =   330
  707. End
  708. Begin Control LABEL
  709.       Type         =   "Label"
  710.       Style        =   9
  711.       Caption      =   "if(STTRNH.CHTYPE="4"&STTRNH.CHSETTVAL1<>0,"If Paid Within","")"
  712.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  713.       Location     =   "Subtotal Block"
  714.       Height       =   285
  715.       Left         =   270
  716.       Top          =   525
  717.       Width        =   1005
  718. End
  719. Begin Control LABEL
  720.       Type         =   "Label"
  721.       Style        =   12
  722.       Caption      =   "if(STTRNH.CHTYPE="4"&STTRNH.CHSETTVAL1<>0,STR(SLNAME.SNDAYS1,2,0),"")"
  723.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  724.       Location     =   "Subtotal Block"
  725.       Height       =   285
  726.       Left         =   1350
  727.       Top          =   525
  728.       Width        =   195
  729. End
  730. Begin Control LABEL
  731.       Type         =   "Label"
  732.       Style        =   9
  733.       Caption      =   "if(STTRNH.CHTYPE="4"&STTRNH.CHSETTVAL1<>0,"Days You May Deduct ","")"
  734.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  735.       Location     =   "Subtotal Block"
  736.       Height       =   285
  737.       Left         =   1620
  738.       Top          =   525
  739.       Width        =   1680
  740. End
  741. Begin Control LABEL
  742.       Type         =   "Label"
  743.       Style        =   9
  744.       Caption      =   "if(STTRNH.CHTYPE="4"&STTRNH.CHSETTVAL1<>0,STR(STTRNH.CHSETTVAL1,10,2),"")"
  745.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  746.       Location     =   "Subtotal Block"
  747.       Height       =   285
  748.       Left         =   3330
  749.       Top          =   525
  750.       Width        =   1140
  751. End
  752. Begin Control CHTOTGOODS
  753.       Type         =   "Text"
  754.       Style        =   0
  755.       Fieldname    =   "CHTOTGOODS"
  756.       Filename     =   "STTRNH"
  757.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  758.       Location     =   "Subtotal Block"
  759.       Height       =   270
  760.       Left         =   9465
  761.       Top          =   1335
  762.       Width        =   990
  763. End
  764. Begin Control LABEL
  765.       Type         =   "Label"
  766.       Style        =   10
  767.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"",STR(STTRNH.CHTOTVAT,10,2),"")"
  768.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  769.       Location     =   "Subtotal Block"
  770.       Height       =   270
  771.       Left         =   9465
  772.       Top          =   2145
  773.       Width        =   990
  774. End
  775. Begin Control CHTOTVALUE
  776.       Type         =   "Text"
  777.       Style        =   0
  778.       Fieldname    =   "CHTOTVALUE"
  779.       Filename     =   "STTRNH"
  780.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  781.       Location     =   "Subtotal Block"
  782.       Height       =   270
  783.       Left         =   9465
  784.       Top          =   2550
  785.       Width        =   990
  786. End
  787. Begin Control LABEL
  788.       Type         =   "Label"
  789.       Style        =   9
  790.       Caption      =   ""Total Goods""
  791.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  792.       Location     =   "Subtotal Block"
  793.       Height       =   285
  794.       Left         =   7830
  795.       Top          =   1335
  796.       Width        =   1275
  797. End
  798. Begin Control LABEL
  799.       Type         =   "Label"
  800.       Style        =   9
  801.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"","Total VAT","")"
  802.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  803.       Location     =   "Subtotal Block"
  804.       Height       =   285
  805.       Left         =   7830
  806.       Top          =   2145
  807.       Width        =   1275
  808. End
  809. Begin Control LABEL
  810.       Type         =   "Label"
  811.       Style        =   9
  812.       Caption      =   "if(STTRNH.CHTYPE="4","Invoice Total","Credit Total")"
  813.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  814.       Location     =   "Subtotal Block"
  815.       Height       =   285
  816.       Left         =   7830
  817.       Top          =   2550
  818.       Width        =   1275
  819. End
  820. Begin Control CHNARR
  821.       Type         =   "Text"
  822.       Style        =   0
  823.       Fieldname    =   "CHNARR"
  824.       Filename     =   "STTRNH"
  825.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  826.       Location     =   "Subtotal Block"
  827.       Height       =   945
  828.       Left         =   270
  829.       Top          =   2265
  830.       Width        =   6540
  831. End
  832. Begin Control LABEL
  833.       Type         =   "Label"
  834.       Style        =   9
  835.       Caption      =   "if(STTRNH.CHNETCARR=0,"","Net Carriage")"
  836.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  837.       Location     =   "Subtotal Block"
  838.       Height       =   285
  839.       Left         =   7830
  840.       Top          =   1605
  841.       Width        =   1275
  842. End
  843. Begin Control LABEL
  844.       Type         =   "Label"
  845.       Style        =   10
  846.       Caption      =   "if(STTRNH.CHNETCARR=0,"",STR(STTRNH.CHNETCARR,10,2))"
  847.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  848.       Location     =   "Subtotal Block"
  849.       Height       =   270
  850.       Left         =   9465
  851.       Top          =   1605
  852.       Width        =   990
  853. End
  854. Begin Control LABEL
  855.       Type         =   "Label"
  856.       Style        =   9
  857.       Caption      =   "if(STTRNH.CHOVRDISC=0,"","Overall Discount")"
  858.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  859.       Location     =   "Subtotal Block"
  860.       Height       =   285
  861.       Left         =   7830
  862.       Top          =   1875
  863.       Width        =   1275
  864. End
  865. Begin Control LABEL
  866.       Type         =   "Label"
  867.       Style        =   10
  868.       Caption      =   "if(STTRNH.CHOVRDISC=0,"",STR(STTRNH.CHOVRDISC,10,2))"
  869.       Font         =   "-180|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  870.       Location     =   "Subtotal Block"
  871.       Height       =   270
  872.       Left         =   9465
  873.       Top          =   1875
  874.       Width        =   990
  875. End
  876. Begin Control LABEL
  877.       Type         =   "Label"
  878.       Style        =   9
  879.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"","----------------------- VAT Summary -------------------","")"
  880.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  881.       Location     =   "Subtotal Block"
  882.       Height       =   285
  883.       Left         =   270
  884.       Top          =   900
  885.       Width        =   5190
  886. End
  887. Begin Control LABEL
  888.       Type         =   "Label"
  889.       Style        =   9
  890.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"",IF(STTRNH.CHSETTVAL1<>0,"Code       %         Discounted Goods            VAT","Code       %                    Goods                     VAT"),"")"
  891.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  892.       Location     =   "Subtotal Block"
  893.       Height       =   285
  894.       Left         =   270
  895.       Top          =   1095
  896.       Width        =   5025
  897. End
  898. Begin Control LABEL
  899.       Type         =   "Label"
  900.       Style        =   12
  901.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD1)<>"",STTRNH.CHVCD1,"")"
  902.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  903.       Location     =   "Subtotal Block"
  904.       Height       =   270
  905.       Left         =   270
  906.       Top          =   1260
  907.       Width        =   330
  908. End
  909. Begin Control LABEL
  910.       Type         =   "Label"
  911.       Style        =   12
  912.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD2)<>"",STTRNH.CHVCD2,"")"
  913.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  914.       Location     =   "Subtotal Block"
  915.       Height       =   270
  916.       Left         =   270
  917.       Top          =   1410
  918.       Width        =   330
  919. End
  920. Begin Control LABEL
  921.       Type         =   "Label"
  922.       Style        =   12
  923.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD3)<>"",STTRNH.CHVCD3,"")"
  924.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  925.       Location     =   "Subtotal Block"
  926.       Height       =   270
  927.       Left         =   270
  928.       Top          =   1560
  929.       Width        =   330
  930. End
  931. Begin Control LABEL
  932.       Type         =   "Label"
  933.       Style        =   12
  934.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD4)<>"",STTRNH.CHVCD4,"")"
  935.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  936.       Location     =   "Subtotal Block"
  937.       Height       =   270
  938.       Left         =   270
  939.       Top          =   1710
  940.       Width        =   330
  941. End
  942. Begin Control LABEL
  943.       Type         =   "Label"
  944.       Style        =   9
  945.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHCARRVCD)<>"","<< Carriage >>","")"
  946.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  947.       Location     =   "Subtotal Block"
  948.       Height       =   270
  949.       Left         =   3780
  950.       Top          =   1860
  951.       Width        =   1275
  952. End
  953. Begin Control LABEL
  954.       Type         =   "Label"
  955.       Style        =   12
  956.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHCARRVCD)<>"",STTRNH.CHCARRVCD,"")"
  957.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  958.       Location     =   "Subtotal Block"
  959.       Height       =   270
  960.       Left         =   270
  961.       Top          =   1860
  962.       Width        =   330
  963. End
  964. Begin Control LABEL
  965.       Type         =   "Label"
  966.       Style        =   10
  967.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD1)<>"",STR(STTRNH.CHVTPERC1,5,2),"")"
  968.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  969.       Location     =   "Subtotal Block"
  970.       Height       =   270
  971.       Left         =   810
  972.       Top          =   1260
  973.       Width        =   465
  974. End
  975. Begin Control LABEL
  976.       Type         =   "Label"
  977.       Style        =   10
  978.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD2)<>"",STR(STTRNH.CHVTPERC2,5,2),"")"
  979.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  980.       Location     =   "Subtotal Block"
  981.       Height       =   270
  982.       Left         =   810
  983.       Top          =   1410
  984.       Width        =   465
  985. End
  986. Begin Control LABEL
  987.       Type         =   "Label"
  988.       Style        =   10
  989.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD3)<>"",STR(STTRNH.CHVTPERC3,5,2),"")"
  990.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  991.       Location     =   "Subtotal Block"
  992.       Height       =   270
  993.       Left         =   810
  994.       Top          =   1560
  995.       Width        =   465
  996. End
  997. Begin Control LABEL
  998.       Type         =   "Label"
  999.       Style        =   10
  1000.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD4)<>"",STR(STTRNH.CHVTPERC4,5,2),"")"
  1001.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1002.       Location     =   "Subtotal Block"
  1003.       Height       =   270
  1004.       Left         =   810
  1005.       Top          =   1710
  1006.       Width        =   465
  1007. End
  1008. Begin Control LABEL
  1009.       Type         =   "Label"
  1010.       Style        =   10
  1011.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHCARRVCD)<>"",STR(STTRNH.CHCARRVP,5,2),"")"
  1012.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1013.       Location     =   "Subtotal Block"
  1014.       Height       =   270
  1015.       Left         =   810
  1016.       Top          =   1860
  1017.       Width        =   465
  1018. End
  1019. Begin Control LABEL
  1020.       Type         =   "Label"
  1021.       Style        =   10
  1022.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD1)<>"",STR(STTRNH.CHGDS1,10,2),"")"
  1023.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1024.       Location     =   "Subtotal Block"
  1025.       Height       =   270
  1026.       Left         =   1620
  1027.       Top          =   1260
  1028.       Width        =   870
  1029. End
  1030. Begin Control LABEL
  1031.       Type         =   "Label"
  1032.       Style        =   10
  1033.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD2)<>"",STR(STTRNH.CHGDS2,10,2),"")"
  1034.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1035.       Location     =   "Subtotal Block"
  1036.       Height       =   270
  1037.       Left         =   1620
  1038.       Top          =   1410
  1039.       Width        =   870
  1040. End
  1041. Begin Control LABEL
  1042.       Type         =   "Label"
  1043.       Style        =   10
  1044.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD3)<>"",STR(STTRNH.CHGDS3,10,2),"")"
  1045.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1046.       Location     =   "Subtotal Block"
  1047.       Height       =   270
  1048.       Left         =   1620
  1049.       Top          =   1560
  1050.       Width        =   870
  1051. End
  1052. Begin Control LABEL
  1053.       Type         =   "Label"
  1054.       Style        =   10
  1055.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD4)<>"",STR(STTRNH.CHGDS4,10,2),"")"
  1056.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1057.       Location     =   "Subtotal Block"
  1058.       Height       =   270
  1059.       Left         =   1620
  1060.       Top          =   1710
  1061.       Width        =   870
  1062. End
  1063. Begin Control LABEL
  1064.       Type         =   "Label"
  1065.       Style        =   10
  1066.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHCARRVCD)<>"",STR(STTRNH.CHNETCARR,10,2),"")"
  1067.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1068.       Location     =   "Subtotal Block"
  1069.       Height       =   270
  1070.       Left         =   1620
  1071.       Top          =   1860
  1072.       Width        =   870
  1073. End
  1074. Begin Control LABEL
  1075.       Type         =   "Label"
  1076.       Style        =   10
  1077.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHCARRVCD)<>"",STR(STTRNH.CHCARRVAT,10,2),"")"
  1078.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1079.       Location     =   "Subtotal Block"
  1080.       Height       =   270
  1081.       Left         =   2835
  1082.       Top          =   1860
  1083.       Width        =   870
  1084. End
  1085. Begin Control LABEL
  1086.       Type         =   "Label"
  1087.       Style        =   10
  1088.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD1)<>"",STR(STTRNH.CHVAT1,10,2),"")"
  1089.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1090.       Location     =   "Subtotal Block"
  1091.       Height       =   270
  1092.       Left         =   2835
  1093.       Top          =   1260
  1094.       Width        =   870
  1095. End
  1096. Begin Control LABEL
  1097.       Type         =   "Label"
  1098.       Style        =   10
  1099.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD2)<>"",STR(STTRNH.CHVAT2,10,2),"")"
  1100.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1101.       Location     =   "Subtotal Block"
  1102.       Height       =   270
  1103.       Left         =   2835
  1104.       Top          =   1410
  1105.       Width        =   870
  1106. End
  1107. Begin Control LABEL
  1108.       Type         =   "Label"
  1109.       Style        =   10
  1110.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD3)<>"",STR(STTRNH.CHVAT3,10,2),"")"
  1111.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1112.       Location     =   "Subtotal Block"
  1113.       Height       =   270
  1114.       Left         =   2835
  1115.       Top          =   1560
  1116.       Width        =   870
  1117. End
  1118. Begin Control LABEL
  1119.       Type         =   "Label"
  1120.       Style        =   10
  1121.       Caption      =   "IF(TRIM(SYSTEM.VATREG)<>"" & TRIM(STTRNH.CHVCD4)<>"",STR(STTRNH.CHVAT4,10,2),"")"
  1122.       Font         =   "-165|0|0|0|400|0|0|0|0|3|2|1|34|Arial"
  1123.       Location     =   "Subtotal Block"
  1124.       Height       =   270
  1125.       Left         =   2835
  1126.       Top          =   1710
  1127.       Width        =   870
  1128. End
  1129.