[Vtigercrm-developers] Strip prefix from Invoice No.
Preexo
preexo at googlemail.com
Thu Sep 17 03:12:10 GMT 2015
I suggest writing your own custom functions and putting it into a file under
"modules/PDFMaker/resources/functions/yourcustomfunctions.php".
To achieve the stripping of the prefix, you can maybe just use a simple
str_replace, or you use substr to always remove the first three letters.
Here is some example code for a custom function (untested):
if (!function_exists('strip_prefix')) {
function strip_prefix($str) {
return substr($str, 3);
}
}
Good luck
Vladimir Karažija wrote
> Hi,
>
> I am using PDF Maker Professional 600.8.2 from IT-Solutions4You with
> vtiger
> 6.3
>
> I have problem with displaying invoice number.
>
> I need to show only number from invoice, without prefix.
>
> Currently invoice number is INV1234, I want to display only 1234 , so I
> need a way to strip the prefix.
>
> This is only for export to PDF for printing.
>
> Is there PDF Maker custom function that I can use or I need to chnage
> vtiger crm code?
>
> I am using vtiger crm 6.3 version.
>
> regards, Vladimir
>
> _______________________________________________
> http://www.vtiger.com/
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Strip-prefix-from-Invoice-No-tp17357p17358.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list