[freeside-commits] freeside/bin freeside-migrate-events,1.3,1.4
Ivan,,,
ivan at wavetail.420.am
Mon Oct 8 14:06:32 PDT 2007
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail:/tmp/cvs-serv17338/bin
Modified Files:
freeside-migrate-events
Log Message:
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)
Index: freeside-migrate-events
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/freeside-migrate-events,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- freeside-migrate-events 12 Sep 2007 05:38:38 -0000 1.3
+++ freeside-migrate-events 8 Oct 2007 21:06:30 -0000 1.4
@@ -94,6 +94,13 @@
$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'
More information about the freeside-commits
mailing list