{if $invoiceLogo|trim} {assign var=logowgs value=$invoiceLogo|trim} {else} {if $logo} {assign var=logowgs value=$logo} {else} {assign var=logowgs value="{$WEB_ROOT}/templates/{$template}/assets/images/login-logo.svg"} {/if} {/if} {assign var=colorArray value=['1'=>'','2'=>'yellow','3'=>'green','4'=>'pink']}
{if $invalidInvoiceIdRequested} {include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.invoiceserror bodyTextCenter=true} {else}

{if $gst_addon && $enablePerformaInvoice eq '1' && $status eq "Paid"} TAX {$LANG.viewInvoiceMainTitle}{elseif $gst_addon && $enablePerformaInvoice neq '1'}TAX {$LANG.viewInvoiceMainTitle}{else}{$LANG.viewInvoiceMainTitle}{/if}

{if $logowgs} {else}

{$companyname}

{/if}
{if $status eq "Draft"}

{$LANG.invoicesdraft}

{elseif $status eq "Unpaid"}

{$LANG.invoicesunpaid}

{elseif $status eq "Paid"} {elseif $status eq "Refunded"}

{$LANG.invoicesrefunded}

{elseif $status eq "Cancelled"}

{$LANG.invoicescancelled}

{elseif $status eq "Collections"}

{$LANG.invoicescollections}

{elseif $status eq "Payment Pending"} {/if} {if $status eq "Unpaid" || $status eq "Draft"}

{$LANG.invoicesdatedue}: {strtotime($datedue)|date_format:"%d-%m-%Y"}

{$paymentbutton}
{/if}
{if $paymentSuccessAwaitingNotification} {include file="$template/includes/panel.tpl" type="success" headerTitle=$LANG.success bodyContent=$LANG.invoicePaymentSuccessAwaitingNotify bodyTextCenter=true} {elseif $paymentSuccess} {include file="$template/includes/panel.tpl" type="success" headerTitle=$LANG.success bodyContent=$LANG.invoicepaymentsuccessconfirmation bodyTextCenter=true} {elseif $pendingReview} {include file="$template/includes/panel.tpl" type="info" headerTitle=$LANG.success bodyContent=$LANG.invoicepaymentpendingreview bodyTextCenter=true} {elseif $paymentFailed} {include file="$template/includes/panel.tpl" type="danger" headerTitle=$LANG.error bodyContent=$LANG.invoicepaymentfailedconfirmation bodyTextCenter=true} {elseif $offlineReview} {include file="$template/includes/panel.tpl" type="info" headerTitle=$LANG.success bodyContent=$LANG.invoiceofflinepaid bodyTextCenter=true} {/if}
{$LANG.invoicesinvoicedto}:

{$clientsdetails.firstname} {$clientsdetails.lastname}

{if $clientsdetails.companyname}

{$LANG.clientareacompanyname}: {$clientsdetails.companyname}

{/if} {if $clientsdetails.phonenumber}

{$LANG.clientareaphonenumber}: {$clientsdetails.phonenumber}

{/if}

{$LANG.clientareaemail}: {$clientsdetails.email}

{$LANG.viewInvoiceAddress}: {$clientsdetails.address1}, {$clientsdetails.address2}, {$clientsdetails.city}, {$clientsdetails.state}, {$clientsdetails.postcode}, {$clientsdetails.country}

{if $customfields} {if $gst_addon AND !$old_vat} {assign var="gstin" value="no"} {foreach from=$customfields item=customfield} {if $customfield.fieldname eq 'GSTIN'} {assign var="gstin" value="yes"} {/if} {if $customfield.fieldname eq 'GSTIN' OR $customfield.fieldname eq 'Place of supply'}

{$customfield.fieldname}: {$customfield.value}

{else}

{$customfield.fieldname}: {$customfield.value}

{/if} {/foreach} {if $gstin eq 'no'}

GSTIN: Not Available

{/if} {else} {foreach from=$customfields item=customfield} {if $customfield.fieldname neq 'GSTIN' AND $customfield.fieldname neq 'Place of supply'}

{$customfield.fieldname}: {$customfield.value}

{/if} {/foreach} {/if} {else} {if $gst_addon}

GSTIN: Not Available

{/if} {/if}
  • {$LANG.viewInvoiceNumber}:
    #{$invoiceid}
    #
  • {$LANG.viewInvoiceDate}:
    {strtotime($date)|date_format:"%d-%m-%Y"}
    #
  • {$LANG.viewInvoiceTotalDue}:
    {$balance}
    #

{$LANG.paymentmethod}

{if $status eq "Unpaid" && $allowchangegateway}
{$gatewaydropdown}
{else} {$paymentmethod} {/if}
{if $gst_addon AND !$old_vat AND ($taxlabel1 eq 'IGST' or $taxlabel1 eq 'CGST' or $taxlabel1 eq 'SGST')}

{$LANG.invoicespayto}

{$payto}

{if $admin_gst_in AND $gst_addon}

GSTIN: {$admin_gst_in}

{/if} {if $oldTaxNumber AND $gst_addon}

Service tax number: {$oldTaxNumber}

{/if}
{/if}
{if $manualapplycredit}

{$LANG.invoiceaddcreditapply}

{$LANG.invoiceaddcreditdesc1} {$totalcredit}. {$LANG.invoiceaddcreditdesc2}. {$LANG.invoiceaddcreditamount}:
{/if} {if $gst_addon AND !$old_vat AND ($taxlabel1 eq 'IGST' or $taxlabel1 eq 'CGST' or $taxlabel1 eq 'SGST')}
{foreach from=$invoiceitems key=num item=item} {/foreach} {if $totalinwords AND $currency_code == 'INR'} {/if}
{$LANG.invoicesdescription} Item type SAC Code Total
{$item.description}{if $item.taxed eq "true"} *{/if} {if $item.description|lower|strstr:'website design'} Website Design {elseif $item.description|lower|strstr:'web development'} Web Development {elseif $item.description|lower|strstr:'seo'} SEO {elseif $item.description|lower|strstr:'amc'} AMC {else} {$item.type} {/if} {if $item.description|lower|strstr:'website design' OR $item.description|lower|strstr:'web development' OR $item.description|lower|strstr:'seo' OR $item.description|lower|strstr:'amc'} 998314 {elseif $item.type eq 'Hosting'} 998315 {elseif substr_count($item.type, 'Domain') OR substr_count($item.type, 'Addon')} 998319 {else} {*998313*} {/if} {$item.amount}
{$LANG.invoicessubtotal} {$subtotal}
GST
CGST{if $taxrate AND $taxlabel1 eq 'CGST'} ({$taxrate}%){else} {/if} SGST{if $taxrate2 AND $taxlabel2 eq 'SGST'} ({$taxrate2}%){else} {/if} IGST{if $taxrate AND $taxlabel1 eq 'IGST'} ({$taxrate}%){else} {/if}
{if $taxrate AND $taxlabel1 eq 'CGST'} {$tax}{else} {/if} {if $taxrate2 AND $taxlabel2 eq 'SGST'} {$tax2}{else} {/if} {if $taxrate AND $taxlabel1 eq 'IGST'} {$tax}{else} {/if}
{$total_gst_tax}
Total Amount Incl. GST :   {if $wgs_gst_credit and $wgs_gst_invoicetotal} {$wgs_gst_invoicetotal} {else} {$total} {/if}
Total Amount Incl. GST (in words): {$totalinwords}
Funds Applied {$credit}
{if $transactions or $wgs_gst_transactions} {if $taxrate}

* {$LANG.invoicestaxindicator}

{/if} {/if}
{if $transactions or $wgs_gst_transactions} {/if} {if $transactions or $wgs_gst_transactions} {if $wgs_gst_transactions} {foreach from=$wgs_gst_transactions item=transaction} {foreachelse} {/foreach} {else} {foreach from=$transactions item=transaction} {foreachelse} {/foreach} {/if} {/if} {if $transactions or $wgs_gst_transactions} {else} {/if} {if $sign_img} {/if}
{$LANG.invoicestransdate} {$LANG.invoicestransgateway} {$LANG.invoicestransid} {$LANG.invoicestransamount}
{$transaction.date} {$transaction.gateway} {$transaction.transid} {$transaction.amount}
{$LANG.invoicestransnonefound}
{$transaction.date} {$transaction.gateway} {$transaction.transid} {$transaction.amount}
{$LANG.invoicestransnonefound}
{$LANG.invoicesbalance} {$balance}
{$LANG.invoicesbalance} {$balance}

Authorized Signatory
{else}
{$turns = 1} {foreach from=$invoiceitems item=item} {assign var=stringCount value= $item.description|strpos:'x'} {if $stringCount eq 2} {assign var=explodeDesc value="x"|explode:$item.description} {assign var=quant value=$explodeDesc.0} {else} {assign var=quant value=1} {/if} {if $turns == 4} {$turns = 1} {else} {$turns = $turns+1} {/if} {/foreach} {if $taxrate} {/if}
{$LANG.invoicesdescription} {$LANG.invoicestotal}
{$quant} {$item.description}{if $item.taxed eq "true"} *{/if} {$item.amount}

* {$LANG.invoicestaxindicator}

{$LANG.invoicespayto}

{$payto}

{$LANG.invoicessubtotal}-
{if $taxrate}
{$taxrate}% {$taxname}-
{/if} {if $taxrate2}
{$taxrate2}% {$taxname2}-
{/if}
{$LANG.invoicescredit}-
{$LANG.invoicestotal}
{$subtotal}
{if $taxrate}
{$tax}
{/if} {if $taxrate2}
{$tax2}
{/if}
{$credit}
{$total}
{foreach from=$transactions item=transaction} {foreachelse} {/foreach}
{$LANG.invoicestransdate} {$LANG.invoicestransgateway} {$LANG.invoicestransid} {$LANG.invoicestransamount}
{$transaction.date} {$transaction.gateway} {$transaction.transid} {$transaction.amount}
{$LANG.invoicestransnonefound}
{$LANG.invoicesbalance}
{$balance}
{/if}
{/if}

{$LANG.invoicesbacktoclientarea}