summaryrefslogtreecommitdiff
path: root/httemplate/misc
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2012-08-26 23:05:04 -0700
committerMark Wells <mark@freeside.biz>2012-08-28 16:55:25 -0700
commit7acc76e0ead0d88cb225c88016c778c8feb9a075 (patch)
treeafba049169395ab95ccd369668fcae0585557b6a /httemplate/misc
parentabb5095e4f202875934937166af1efe912f77d34 (diff)
only show coordinate fields where necessary, #940
Diffstat (limited to 'httemplate/misc')
-rw-r--r--httemplate/misc/payment.cgi6
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 = '';