summaryrefslogtreecommitdiff
path: root/httemplate/view
diff options
context:
space:
mode:
authorjeff <jeff>2009-10-26 07:12:12 +0000
committerjeff <jeff>2009-10-26 07:12:12 +0000
commit64fcb43c61c196766260319cd9219eb70ea27767 (patch)
tree43a4a49ae30ebf1e8662489139604a44626f53ec /httemplate/view
parent08ab7010467cf25578acdf8d9a9a068a87f1c49f (diff)
credits return taxes, but the magic calculation button does not yet work properly (grrr - more sleep required) RT#4729
Diffstat (limited to 'httemplate/view')
-rw-r--r--httemplate/view/cust_main/payment_history/credit.html16
-rw-r--r--httemplate/view/cust_main/payment_history/payment.html16
2 files changed, 24 insertions, 8 deletions
diff --git a/httemplate/view/cust_main/payment_history/credit.html b/httemplate/view/cust_main/payment_history/credit.html
index 058c6f536..88bbe9bd9 100644
--- a/httemplate/view/cust_main/payment_history/credit.html
+++ b/httemplate/view/cust_main/payment_history/credit.html
@@ -4,6 +4,7 @@ by <% $cust_credit->otaker %><% "$reason$desc$apply$delete$unapply" %>
my( $cust_credit, %opt ) = @_;
+my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
my @cust_credit_bill = $cust_credit->cust_credit_bill;
@@ -15,6 +16,13 @@ if ( $opt{'pkg-balances'} && $cust_credit->pkgnum ) {
$desc .= ' for '. $cust_pkg->pkg_label_long;
}
+my %cust_credit_bill_width = ('width' => 392);
+my %cust_credit_bill_height = ();
+if ($conf->exists('cust_credit_bill_pkg-manual')) {
+ %cust_credit_bill_width = ('width' => 592);
+ %cust_credit_bill_height = ('height' => 436);
+}
+
my( $pre, $post, $apply, $ext ) = ( '', '', '', '' );
if ( scalar(@cust_credit_bill) == 0
&& scalar(@cust_credit_refund) == 0 ) {
@@ -29,8 +37,8 @@ if ( scalar(@cust_credit_bill) == 0
'action' => "${p}edit/cust_credit_bill.cgi?".
$cust_credit->crednum,
'actionlabel' => 'Apply credit',
- 'width' => 392,
- #default# 'height' => 336,
+ %cust_credit_bill_width,
+ %cust_credit_bill_height,
).
')';
}
@@ -88,8 +96,8 @@ if ( scalar(@cust_credit_bill) == 0
'action' => "${p}edit/cust_credit_bill.cgi?".
$cust_credit->crednum,
'actionlabel' => 'Apply credit',
- 'width' => 392,
- #default# 'height' => 336,
+ %cust_credit_bill_width,
+ %cust_credit_bill_height,
).
')';
}
diff --git a/httemplate/view/cust_main/payment_history/payment.html b/httemplate/view/cust_main/payment_history/payment.html
index a4a349bb8..bcfa808db 100644
--- a/httemplate/view/cust_main/payment_history/payment.html
+++ b/httemplate/view/cust_main/payment_history/payment.html
@@ -4,6 +4,7 @@
my( $cust_pay, %opt ) = @_;
+my $conf = new FS::Conf;
my $curuser = $FS::CurrentUser::CurrentUser;
my $payby = $cust_pay->payby;
@@ -38,6 +39,13 @@ if ( $opt{'pkg-balances'} && $cust_pay->pkgnum ) {
$desc .= ' for '. $cust_pkg->pkg_label_long;
}
+my %cust_bill_pay_width = ('width' => 392);
+my %cust_bill_pay_height = ();
+if ($conf->exists('cust_bill_pay_pkg-manual')) {
+ %cust_bill_pay_width = ('width' => 592);
+ %cust_bill_pay_height = ('height' => 436);
+}
+
my( $pre, $post, $apply, $ext ) = ( '', '', '', '' );
if ( scalar(@cust_bill_pay) == 0
&& scalar(@cust_pay_refund) == 0 ) {
@@ -52,8 +60,8 @@ if ( scalar(@cust_bill_pay) == 0
'action' => "${p}edit/cust_bill_pay.cgi?".
$cust_pay->paynum,
'actionlabel' => 'Apply payment',
- 'width' => 392,
- #default# 'height' => 336,
+ %cust_bill_pay_width,
+ %cust_bill_pay_height,
).
')';
}
@@ -112,8 +120,8 @@ if ( scalar(@cust_bill_pay) == 0
'action' => "${p}edit/cust_bill_pay.cgi?".
$cust_pay->paynum,
'actionlabel' => 'Apply payment',
- 'width' => 392,
- #default# 'height' => 336,
+ %cust_bill_pay_width,
+ %cust_bill_pay_height,
).
')';
}