4 use FS::UID qw( adminsuidsetup dbh );
15 cust_bill_pkg_tax_location
16 cust_bill_pkg_tax_rate_location
17 cust_bill_pkg_discount
21 cust_bill_pkg_detail_void
22 cust_bill_pkg_display_void
23 cust_bill_pkg_fee_void
24 cust_bill_pkg_tax_location_void
25 cust_bill_pkg_tax_rate_location_void
26 cust_bill_pkg_discount_void
42 cust_credit_source_bill_pkg
56 cust_bill_batch_option
59 cust_tax_exempt_pkg_void
62 foreach $t ( $table, "h_$table" ) {
63 my $sql = "DELETE FROM $t";
64 print "$sql;\n"; #dbh->do($sql);
68 foreach my $e ( 'cust_event', 'h_cust_event' ) {
69 my $sql = "DELETE FROM cust_event WHERE 'cust_bill' = ( SELECT eventtable FROM part_event WHERE part_event.eventpart = cust_event.eventpart )"; # and not exists ( select 1 from cust_bill where cust_event.tablenum = cust_bill.invnum )";
70 print "$sql;\n"; #dbh->do($sql);