add option for spool_csv events to apply only to a specific destination type (i.e...
authorivan <ivan>
Tue, 1 Nov 2005 05:14:08 +0000 (05:14 +0000)
committerivan <ivan>
Tue, 1 Nov 2005 05:14:08 +0000 (05:14 +0000)
httemplate/edit/part_bill_event.cgi

index e60cc87..7e27bd4 100755 (executable)
@@ -252,6 +252,7 @@ tie my %events, 'Tie::IxHash',
   'spool_csv' => {
     'name' => 'Spool CSV invoice data',
     'code' => '$cust_bill->spool_csv( \'format\' => \'%%%spoolformat%%%\',
+                                      \'dest\'   => \'%%%spooldest%%%\',
                                     );',
     'html' =>
         '<TABLE BORDER=0>'.
@@ -265,6 +266,15 @@ tie my %events, 'Tie::IxHash',
             '-->'.
             '<INPUT TYPE="text" NAME="spoolformat" VALUE="%%%spoolformat%%%">'.
           '</TD></TR>'.
+        '<TR><TD align="right">For destination: </TD>'.
+          '<TD>'.
+            '<SELECT NAME="spooldest">'.
+              '<OPTION VALUE="">(all)'.
+              '<OPTION VALUE="POST">Postal mail'.
+              '<OPTION VALUE="EMAIL">Email'.
+              '<OPTION VALUE="Fax">Fax'.
+            '</SELECT>'.
+          '</TD></TR>'.
         '</TABLE>',
     'weight' => 50,
   },