This topic is locked

Tax amount on Invoice not inline

9/18/2019 6:02:18 AM
Invoice template support forum
J
jianwong author

My project is built using version 10.2.

Originally, on Invoice Add/Edit the tax value is visible while the total tax amount is hidden. I managed to not display the tax value but have the total tax amount visible, because customer needs to see the total tax figure.

However, on page the Tax label and total tax amount appeared not to be aligned with other fields vertically. Can anyone help? I tried with some adjustments in Designer, but could not help.

A
acpan 9/19/2019

Hi,
Here's what i did:

  1. Remove the label for Subtotal, Tax and Total.
  2. Insert the labels in the field value itself => Click View/Edit As and change the value, eg for Subtotal:



if($value)

$value = "<b>Subtotal:</b> ".str_format_currency($value);

else

$value = "";
J
jianwong author 9/19/2019



Hi,
Here's what i did:

  1. Remove the label for Subtotal, Tax and Total.
  2. Insert the labels in the field value itself => Click View/Edit As and change the value, eg for Subtotal:



if($value)

$value = "<b>Subtotal:</b> ".str_format_currency($value);

else

$value = "";


J
jianwong author 9/19/2019





Thanks for sharing, acpan.
The result I got was still the same as all labels not align vertically.
After many trial and errors, I managed to achieve what I wanted. Here I share what I did.

  1. Edit the Snippet code of Tax in Designer with this:

    echo "<DIV class='calc-tax' style='width:100px; padding-top:10px; padding-right:15px'></DIV>";
  2. Reset the Tax control width to 0, originally was 100px.
  3. In Editor, you may reset the subject page to let the change take effect.
  4. In HTML mode, as I do not want to display the percentage of tax, in Div tags of "$tax_editcontrol" add style="display:none"