Ticket #32906 A2billing credit limit
authorJeremy Davis <jeremyd@freeside.biz>
Wed, 7 Jan 2015 19:22:19 +0000 (14:22 -0500)
committerJeremy Davis <jeremyd@freeside.biz>
Wed, 7 Jan 2015 19:22:19 +0000 (14:22 -0500)
FS/FS/part_export/a2billing.pm

index 6b3c315..f0e979f 100644 (file)
@@ -131,7 +131,7 @@ sub export_insert {
       username  => $username,
       useralias => $username,
       uipass    => $svc->_password,
-      credit    => $self->option('credit') || 0,
+      credit    => $cust_main->credit_limit || $self->option('credit') || 0,
       tariff    => $part_pkg->option('a2billing_tariff'),
       status    => 1,
       lastname  => $cust_main->last, # $svc->finger?