[freeside-commits] branch FREESIDE_4_BRANCH updated. 8231205cece72104d86c834abd2dffd342b0e988

Ivan ivan at 420.am
Mon Apr 3 17:29:32 PDT 2017


The branch, FREESIDE_4_BRANCH has been updated
       via  8231205cece72104d86c834abd2dffd342b0e988 (commit)
      from  ff6d9d364fbd070a3b632290ea9363b2ab1ae502 (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 8231205cece72104d86c834abd2dffd342b0e988
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Mon Apr 3 17:29:31 2017 -0700

    discounts on one-time charges< RT#75448

diff --git a/httemplate/edit/quick-charge.html b/httemplate/edit/quick-charge.html
index f7c956f..8e022db 100644
--- a/httemplate/edit/quick-charge.html
+++ b/httemplate/edit/quick-charge.html
@@ -224,9 +224,6 @@ function bill_now_changed (what) {
       </TD>
     </TR>
 
-%   if ( $curuser->access_right('Edit package definition costs') ) {
-%   }
-
 %   if ( $conf->exists('invoice-unitprice') ) {
     <TR>
       <TH ALIGN="right"><% mt('Quantity') |h %> </TH>
@@ -262,7 +259,7 @@ function bill_now_changed (what) {
 % unless ($quotationnum) {
 <TR>
   <TD></TD>
-  <TD><FONT SIZE="-1"><% mt('Optional additional description (also printed on invoice):') |h %> </FONT></TD>
+  <TH ALIGN="left"><% mt('Optional additional description (also printed on invoice):') |h %></TH>
 </TR>
 
 %   foreach (@description) {
@@ -349,30 +346,30 @@ function bill_now_changed (what) {
 </SCRIPT>
 
 
-% if ( $curuser->access_right('Edit package definition costs') ) {
+<TD>
 
-  <TD>
+  <FONT CLASS="fsinnerbox-title">Taxation</FONT>
+  <TABLE CLASS="fsinnerbox">
 
-    <FONT CLASS="fsinnerbox-title">Taxation</FONT>
-    <TABLE CLASS="fsinnerbox">
+  <TR>
+    <TH ALIGN="right"><% mt('Tax exempt') |h %> </TH>
+    <TD><INPUT TYPE="checkbox" NAME="setuptax" VALUE="Y" <% $cgi->param('setuptax') ? 'CHECKED' : '' %>></TD>
+  </TR>
 
-    <TR>
-      <TH ALIGN="right"><% mt('Tax exempt') |h %> </TH>
-      <TD><INPUT TYPE="checkbox" NAME="setuptax" VALUE="Y" <% $cgi->param('setuptax') ? 'CHECKED' : '' %>></TD>
-    </TR>
+  <& /elements/tr-select-taxclass.html, 'curr_value' => scalar($cgi->param('taxclass')) &>
 
-    <& /elements/tr-select-taxclass.html, 'curr_value' => scalar($cgi->param('taxclass')) &>
+  <& /elements/tr-select-taxproduct.html,
+    'label'      => emt('Tax product'),
+    'curr_value' => scalar($cgi->param('taxproductnum')),
+  &>
 
-    <& /elements/tr-select-taxproduct.html,
-      'label'      => emt('Tax product'),
-      'curr_value' => scalar($cgi->param('taxproductnum')),
-    &>
+  <& /elements/tr-select-taxoverride.html,
+    'curr_value' => scalar($cgi->param('tax_override')),
+  &>
 
-    <& /elements/tr-select-taxoverride.html,
-      'curr_value' => scalar($cgi->param('tax_override')),
-    &>
+  </TABLE>
 
-    </TABLE>
+% if ( $curuser->access_right('Edit package definition costs') ) {
 
     <BR>
     <FONT CLASS="fsinnerbox-title"><% mt('Cost Accounting') |h %>
@@ -388,10 +385,11 @@ function bill_now_changed (what) {
 
     </TABLE>
 
-  </TD>
-
 % }
 
+</TD>
+
+
 </TR></TABLE>
 
 

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

Summary of changes:
 httemplate/edit/quick-charge.html |   44 ++++++++++++++++++-------------------
 1 file changed, 21 insertions(+), 23 deletions(-)




More information about the freeside-commits mailing list