RT# 73200 Show voided credits on Credit Report - backport fixes
authorMitch Jackson <mitch@freeside.biz>
Fri, 8 Dec 2017 00:07:26 +0000 (00:07 +0000)
committerMitch Jackson <mitch@freeside.biz>
Fri, 8 Dec 2017 00:07:26 +0000 (00:07 +0000)
 - Fixed access rights mismatch that broke voiding credits
 - Update report pulling non-existant column commission_invnum

FS/FS/AccessRight.pm
FS/FS/access_right.pm
httemplate/search/cust_credit.html

index ce4fe9f..db4ff1a 100644 (file)
@@ -237,7 +237,7 @@ tie my %rights, 'Tie::IxHash',
     'Refund Echeck payment',
     'Delete refund', #NEW
     'Add on-the-fly credit reason', #NEW
-    'Add on-the-fly void credit reason',
+    'Add on-the-fly void reason',
     'Add on-the-fly refund reason', #NEW
   ],
   
@@ -509,4 +509,3 @@ L<FS::access_right>, L<FS::access_group>, L<FS::access_user>
 =cut
 
 1;
-
index 3031815..87337d5 100644 (file)
@@ -253,7 +253,7 @@ sub _upgrade_data { # class method
     'Generate quotation' => 'Disable quotation',
     'Void credit' => 'Void credit',
     'Unvoid credit' => 'Unvoid credit',
-    'Add on-the-fly void credit reason' => 'Add on-the-fly void credit reason',
+    'Add on-the-fly void credit reason' => 'Add on-the-fly void reason',
     '_ALL' => 'Employee preference telephony integration',
     '_ALL' => 'RT activity notification',
     'Edit customer package dates' => [ 'Change package start date', #4.x
@@ -361,4 +361,3 @@ L<FS::Record>, schema.html from the base documentation.
 =cut
 
 1;
-
index 1ffa302..1edcd35 100755 (executable)
@@ -265,7 +265,6 @@ my @select = (
      cust_credit.commission_agentnum
      cust_credit.commission_salesnum
      cust_credit.commission_pkgnum
-     cust_credit.commission_invnum
      cust_credit.credbatch
      ),
   'Null as void_date',
@@ -295,7 +294,6 @@ my @select_void = (
      cust_credit_void.commission_agentnum
      cust_credit_void.commission_salesnum
      cust_credit_void.commission_pkgnum
-     cust_credit_void.commission_invnum
      ),
   'Null as credbatch',
   qw(cust_credit_void.void_date