diff options
author | ivan <ivan> | 2007-10-08 21:06:30 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-10-08 21:06:30 +0000 |
commit | efac4a4045b9311fc68bbca284919d24bb1a3c2e (patch) | |
tree | 65fd10242236bdf986be40eea20dc222c6ddcabd /bin/freeside-migrate-events | |
parent | b139d3ee29cc2ff94904c45597ac61623d7c1d46 (diff) |
add cust_bill_owed as an implicit condition (whew), and make sure it is added on migrations (also: fixed implicit conditions like this which only apply to a subset of eventtables)
Diffstat (limited to 'bin/freeside-migrate-events')
-rw-r--r-- | bin/freeside-migrate-events | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/freeside-migrate-events b/bin/freeside-migrate-events index f33a0ad0e..76643b886 100644 --- a/bin/freeside-migrate-events +++ b/bin/freeside-migrate-events @@ -94,6 +94,13 @@ foreach my $part_bill_event ( $error = $balance->insert( 'balance' => 0 ); die $error if $error; + my $cust_bill_owed = new FS::part_event_condition { + 'eventpart' => $part_event->eventpart, + 'conditionname' => 'cust_bill_owed' + }; + $error = $cust_bill_owed->insert( 'owed' => 0 ); + die $error if $error; + my $payby = new FS::part_event_condition { 'eventpart' => $part_event->eventpart, 'conditionname' => 'payby' |