'', '1' => 'One', '2' => 'Two', '3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six', '7' => 'Seven', '8' => 'Eight', '9' => 'Nine', '10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve', '13' => 'Thirteen', '14' => 'Fourteen', '15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen', '18' => 'Eighteen', '19' =>'Nineteen', '20' => 'Twenty', '30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty', '60' => 'Sixty', '70' => 'Seventy', '80' => 'Eighty', '90' => 'Ninety'); $digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore'); while ($i < $digits_1) { $divider = ($i == 2) ? 10 : 100; $number = floor($no % $divider); $no = floor($no / $divider); $i += ($divider == 10) ? 1 : 2; if ($number) { $plural = (($counter = count($str)) && $number > 9) ? 's' : null; $hundred = ($counter == 1 && $str[0]) ? ' and ' : null; $str [] = ($number < 21) ? $words[$number] . " " . $digits[$counter] . $plural . " " . $hundred : $words[floor($number / 10) * 10] . " " . $words[$number % 10] . " " . $digits[$counter] . $plural . " " . $hundred; } else $str[] = null; } $str = array_reverse($str); $result = implode('', $str); $points = ($point) ? " " . $words[$point / 10] . " " . $words[$point = $point % 10] : ''; if($ShowPaise=='0'){ $amountInWords = "Rupees " . $result." Only"; } else{ $amountInWords = "Rupees " . $result ." Paise ". $points." Only"; } return $amountInWords; } ?>

INVOICE

user_name); ?>

user_address_1 || $invoice->user_address_2 ) { echo '
' ; if ($invoice->user_address_1) { echo htmlsc($invoice->user_address_1) . ''; echo ','; } if ($invoice->user_address_2) { echo htmlsc($invoice->user_address_2) . ''; echo ','; } echo '
'; } /* if ($invoice->user_address_2) { echo '
' . htmlsc($invoice->user_address_2) . '
'; } */ if ($invoice->user_city || $invoice->user_state || $invoice->user_zip ) { echo '
'; if ($invoice->user_city) { echo htmlsc($invoice->user_city) . ' '; echo ','; } if ($invoice->user_state) { echo htmlsc($invoice->user_state) . ' '; echo ','; } if ($invoice->user_zip) { echo htmlsc($invoice->user_zip); echo ','; } if ($invoice->user_country) { echo get_country_name(trans('cldr'), $invoice->user_country) ; echo '.'; } echo '
'; } if ($invoice->user_phone || $invoice->user_email) { echo '
'; if ($invoice->user_phone) { echo trans('Phone') . ': ' . htmlsc($invoice->user_phone); echo ','; } echo '
'; echo '
'; if ($invoice->user_mobile) { echo trans('Mobile') . ': ' . htmlsc($invoice->user_mobile); echo ','; } echo '
'; echo '
'; if ($invoice->user_email) { echo trans('Email') . ': ' . htmlsc($invoice->user_email); } echo '
'; } ?> ' . trans('GSTIN') . ': ' . htmlsc($custom_fields['user']['GSTIN']) . '';?>
   ORIGINAL FOR RECIPIENT
   DUPLICATE FOR TRANSPORTER
   TRIPLICATE FOR SUPPLIER
' . trans(' Invoice Number') . ':'; ?> invoice_number ; '
' ?> ' . trans(' Invoice Date') . ':'; ?> invoice_date_created , true). ''; ?> ' . trans(' State ') . ': '; ?> user_state ; ''?> ' . trans(' State Code') . ':'; ?> '?>
' . trans(' Transport Mode') . ':'; ?> ' ?> ' . trans(' Vehicle Number') . ':'; ?> ' ?> ' . trans(' Date of Supply ') . ': '; ?> format('d-m-Y'); echo $displaySupplyDate; '
'?> ' . trans(' Place of Supply') . ':'; ?> ' ?>
Details of Receiver | Billed To Details of Consignee | Shipping To
' . htmlsc(format_client($invoice)) . ''; ?>
client_address_1) { echo '
' . htmlsc($invoice->client_address_1) . '
'; } if ($invoice->client_address_2) { echo '
' . htmlsc($invoice->client_address_2) . '
'; } if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) { echo '
'; if ($invoice->client_city) { echo htmlsc($invoice->client_city); echo ','; }if ($invoice->client_state) { echo htmlsc($invoice->client_state);echo ','; }if ($invoice->client_zip) { echo htmlsc($invoice->client_zip); } echo '
'; } ?> format('d-m-y'); echo '
' . trans(' PO No / Date') . ': ' . htmlsc($custom_fields['invoice']['Purchase Order No']) . ' / ' . htmlsc($displayPurchaseorderDate) .'
';?> ' . trans('GSTIN') . ': ' . htmlsc($custom_fields['client']['GSTIN']) .'
';?> ' . trans('State :') . htmlsc($invoice->client_state) .'          '. trans('State Code :') . htmlsc($custom_fields['client']['State code']). '';?>
' . htmlsc(format_client($invoice)) . ''; ?>
' . htmlsc($custom_fields['invoice']['Shipping Address']) . '
'; } else { ?> client_address_1) { echo '
' . htmlsc($invoice->client_address_1) . '
'; } if ($invoice->client_address_2) { echo '
' . htmlsc($invoice->client_address_2) . '
'; } if ($invoice->client_city || $invoice->client_state || $invoice->client_zip) { echo '
'; if ($invoice->client_city) { echo htmlsc($invoice->client_city);echo ','; }if ($invoice->client_state) { echo htmlsc($invoice->client_state);echo ','; }if ($invoice->client_zip) { echo htmlsc($invoice->client_zip); } echo '
'; } } ?> format('d-m-y'); echo '
' . trans(' PO No / Date') . ': ' . htmlsc($custom_fields['invoice']['Purchase Order No']) . ' / ' . htmlsc($displayPurchaseorderDate) .'
';?> ' . trans('GSTIN') . ': ' . htmlsc($custom_fields['client']['GSTIN']) .'';?> ' . trans('State :') . htmlsc($invoice->client_state) .'          '. trans('State Code :') . htmlsc($custom_fields['client']['State code']). '';?>
item_name); ?> product_sku); ?> item_product_unit) : ?> item_product_unit); ?> item_quantity); ?> item_price); ?> item_quantity * $item->item_price); echo format_currency($amount);?> Cgst_item_tax_rate_percent); ?> Cgst_item_tax_rate_amount); ?> Sgst_item_tax_rate_percent); ?> Sgst_item_tax_rate_amount); ?> Igst_item_tax_rate_percent); ?> Igst_item_tax_rate_amount); ?> item_total - $amount); $totalCGST = $totalCGST+$item->Cgst_item_tax_rate_amount ; $totalSGST = $totalSGST+$item->Sgst_item_tax_rate_amount ; $totalIGST = $totalIGST+$item->Igst_item_tax_rate_amount ; ?>
    TOTAL invoice_item_subtotal); ?>       invoice_item_tax_total); $invoiceTotalAmount=$invoice->invoice_total; $invoiceTotalAmountInWords=convertNumber($invoiceTotalAmount); ?>

TOTAL AMOUNT IN WORDS:  

invoice_item_subtotal); ?>
Add :CGST
Add :SGST
       Bank Details Add :IGST
  • Bank Name
  • Bank Account Number
  • Bank Branch IFSC

invoice_item_tax_total); ?>
invoice_total); ?>
invoice_terms) : ?>

invoice_terms)); ?>
For user_name); ?>





Authorized Signatory
Declaration: We Declare that this invoice shows the actual price of the goods described and that all particulars are true and correct