Topic: Invoice to end-users INCL. VAT and B2B EXCL. VAT
I found a way to invoice to B2B and to end-users. For B2B I wanted to keep the current invoice excluding tax. For end-users I needed to show the prices per line item including tax/VAT.
I replaced in reporting/rep107.php line 122 (FA version 1.2.6)
$DisplayPrice = number_format2($myrow2["unit_price"],$dec);
info:
if( $myrow["tax_id"] == "" ) {
$Net = round2($sign * ((1 - $myrow2["discount_percent"]) * ($myrow2["FullUnitPrice"]) * $myrow2["quantity"]), user_price_dec());
$DisplayPrice = number_format2($myrow2["FullUnitPrice"],$dec);
} else {
$DisplayPrice = number_format2($myrow2["unit_price"],$dec);
}
In case you fill in a TAX_ID which is the GSTNo in the customer record then the customer is considered to be a company and will show the prices excluding VAT. When this is field is kept empty it will show the prices including VAT.