RT #31482 making sure the tax class is not editable after the customer has been billed.
authorAlex Brelsfoard <alex@Alexs-MacBook-Pro.local>
Tue, 3 Feb 2015 12:03:07 +0000 (07:03 -0500)
committerAlex Brelsfoard <alex@Alexs-MacBook-Pro.local>
Tue, 3 Feb 2015 12:03:07 +0000 (07:03 -0500)
httemplate/edit/quick-charge.html

index 83620a9..58c1b0a 100644 (file)
@@ -171,6 +171,7 @@ function bill_now_changed (what) {
       &>
 %   }
 
+%              unless ($billed) {
 <TR>
   <TD ALIGN="right"><% mt('Tax exempt') |h %> </TD>
   <TD><INPUT TYPE="checkbox" NAME="setuptax" VALUE="Y" <% $cgi->param('setuptax') ? 'CHECKED' : '' %>></TD>
@@ -179,6 +180,7 @@ function bill_now_changed (what) {
 <& /elements/tr-select-taxclass.html, 'curr_value' => $part_pkg->get('taxclass')  &>
 
 <& /elements/tr-select-taxproduct.html, 'label' => emt('Tax product'), 'onclick' => 'parent.taxproductmagic(this);', 'curr_value' => $part_pkg->get('taxproductnum')  &>
+%              }
 
 % } else { # new one-time charge