[freeside-commits] branch FREESIDE_4_BRANCH updated. 9ad565a818b9a8da7f2476910e871708e160276a

Jonathan Prykop jonathan at 420.am
Mon Mar 21 17:00:49 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  9ad565a818b9a8da7f2476910e871708e160276a (commit)
      from  e4c9c3ef46e45439bea0220fc9901c5318761e37 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 9ad565a818b9a8da7f2476910e871708e160276a
Author: Jonathan Prykop <jonathan at freeside.biz>
Date:   Mon Mar 21 18:58:01 2016 -0500

    RT#39586 Manual check refunds cannot be unapplied [better whitespace handling]

diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html
index ebd1e73..08d4681 100644
--- a/httemplate/view/cust_main/payment_history.html
+++ b/httemplate/view/cust_main/payment_history.html
@@ -479,7 +479,7 @@ sub translate_payinfo {
 
 sub areyousure_link {
     my ($url,$msg,$title,$label) = (shift,shift,shift,shift);
-    ' (<A HREF="javascript:areyousure(\''.$url.'\',\''.$msg.'\')" TITLE="'.$title.'">'.$label.'</A>)';
+    ' (<A HREF="javascript:areyousure(\''.$url.'\',\''.$msg.'\')" TITLE="'.$title.'" STYLE="white-space: nowrap;">'.$label.'</A>)';
 }
 
 </%init>
diff --git a/httemplate/view/cust_main/payment_history/credit.html b/httemplate/view/cust_main/payment_history/credit.html
index 1e7a7df..ce9923d 100644
--- a/httemplate/view/cust_main/payment_history/credit.html
+++ b/httemplate/view/cust_main/payment_history/credit.html
@@ -45,7 +45,8 @@ if (    scalar(@cust_credit_bill)   == 0
     if ( $opt{total_unapplied_refunds} > 0 ) {
       $apply.= ' ('.
                include( '/elements/popup_link.html',
-                          'label'    => emt('apply').' '.emt('refund'),
+                          'label'    => emt('apply refund'),
+                          'style'    => 'white-space: nowrap',
                           'action'   => "${p}edit/cust_credit_refund.cgi?".
                                         $cust_credit->crednum,
                           'actionlabel' => emt('Apply credit to refund'),
@@ -100,7 +101,8 @@ if (    scalar(@cust_credit_bill)   == 0
       if ( $opt{total_unapplied_refunds} > 0 ) {
         $apply.= ' ('.
                  include( '/elements/popup_link.html',
-                            'label'       => emt('apply').' '.emt('refund'),
+                            'label'       => emt('apply refund'),
+                            'style'       => 'white-space: nowrap',
                             'action'      => "${p}edit/cust_credit_refund.cgi?".
                                              $cust_credit->crednum,
                             'actionlabel' => emt('Apply credit to refund'),
@@ -150,7 +152,7 @@ if ($opt{'Unapply credit'} && !$cust_credit->closed) {
   $unapply .= areyousure_link("${p}misc/unapply-cust_credit_refund.cgi?".$cust_credit->crednum,
                                emt('Are you sure you want to unapply this credit from refunds?'),
                                emt('Keep this credit, but dissociate it from the refunds it is currently applied to'),
-                               emt('unapply').' '.emt('refunds')
+                               emt('unapply refunds')
                              )
     if $cust_credit->refund_to_unapply;
 }
diff --git a/httemplate/view/cust_main/payment_history/payment.html b/httemplate/view/cust_main/payment_history/payment.html
index f65c903..6241f11 100644
--- a/httemplate/view/cust_main/payment_history/payment.html
+++ b/httemplate/view/cust_main/payment_history/payment.html
@@ -103,7 +103,8 @@ if ($unapplied > 0) {
     if ( $opt{total_unapplied_refunds} > 0 ) {
       $apply.= ' ('.
                include( '/elements/popup_link.html',
-                          'label'       => emt('apply').' '.emt('refund'),
+                          'label'       => emt('apply refund'),
+                          'style'       => 'white-space: nowrap',
                           'action'      => "${p}edit/cust_pay_refund.cgi?".
                                            $cust_pay->paynum,
                           'actionlabel' => emt('Apply payment to refund'),
@@ -207,7 +208,7 @@ if ($opt{'Unapply payment'} && !$cust_pay->closed) {
   $unapply .= areyousure_link("${p}misc/unapply-cust_pay_refund.cgi?".$cust_pay->paynum,
                                emt('Are you sure you want to unapply this payment from refunds?'),
                                emt('Keep this payment, but dissociate it from the refunds it is currently applied to'),
-                               emt('unapply').' '.emt('refunds')
+                               emt('unapply refunds')
                              )
     if $cust_pay->refund_to_unapply;
 }

-----------------------------------------------------------------------

Summary of changes:
 httemplate/view/cust_main/payment_history.html         |    2 +-
 httemplate/view/cust_main/payment_history/credit.html  |    8 +++++---
 httemplate/view/cust_main/payment_history/payment.html |    5 +++--
 3 files changed, 9 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list