diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-08-29 15:19:17 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-08-29 15:19:17 -0700 |
| commit | 33aa032478e29000c8c0d4fbe7bf8cb25c277606 (patch) | |
| tree | dca9779a3f3990ee26268575bb135081f9f1b23c /httemplate/misc | |
| parent | 0e17277ed0cc243452dfc07d1bd702502c7d50c3 (diff) | |
| parent | 36e4318e1ccec27ae76a3d1505718a3d47af67c9 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'httemplate/misc')
| -rw-r--r-- | httemplate/misc/payment.cgi | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/httemplate/misc/payment.cgi b/httemplate/misc/payment.cgi index 2d7307233..b4e3a6f82 100644 --- a/httemplate/misc/payment.cgi +++ b/httemplate/misc/payment.cgi @@ -78,7 +78,7 @@ </TR> <& /elements/location.html, - 'object' => $cust_main, #XXX errors??? + 'object' => $cust_main->bill_location, 'no_asterisks' => 1, 'address1_label' => emt('Card billing address'), &> @@ -251,6 +251,10 @@ my $custnum = $1; my $cust_main = qsearchs( 'cust_main', { 'custnum'=>$custnum } ); die "unknown custnum $custnum" unless $cust_main; +my $location = $cust_main->bill_location; +# no proper error handling on this anyway, but when we have it, +# remember to repopulate fields in $location + my $balance = $cust_main->balance; my $payinfo = ''; |
