<div dir="ltr">Hi Matus,<div><br></div><div>thank you for solution, it works ;)</div><div><br></div><div>regards, Vladimir</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Vladimir Karažija</div><div>Kosa crta d.o.o.</div><div>Jagnedje 1</div><div>10090 Zagreb</div><div>OIB: 57724075047</div><div><br></div><div>t. +385 1 777 33 85</div><div>m. +385 91 122 0511<br></div><div><a href="http://www.kosacrta.hr" target="_blank">www.kosacrta.hr</a></div></div></div></div></div></div>
<br><div class="gmail_quote">On Thu, Sep 17, 2015 at 10:39 AM, IT-Solutions4You <span dir="ltr"><<a href="mailto:info@its4you.sk" target="_blank">info@its4you.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can use PHP function direct in CUSTOMFUNCTION definition.<br>
<br>
[CUSTOMFUNCTION|functionname|param1|param2|…|CUSTOMFUNCTION].<br>
For your needs:<br>
[CUSTOMFUNCTION|substr|$INVOICE_INVOICE_NO$|3|CUSTOMFUNCTION].<br>
<br>
<br>
More infos:<br>
<a href="http://www.its4you.sk/en/pdf-maker/manual/21-pdf-maker/manual/82-custom-functions" rel="noreferrer" target="_blank">http://www.its4you.sk/en/pdf-maker/manual/21-pdf-maker/manual/82-custom-functions</a><br>
<br>
Matus<br>
<br>
<br>
<br>
<br>
Dňa 17. 9. 2015 o 5:12 Preexo napísal(a):<div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I suggest writing your own custom functions and putting it into a file under<br>
"modules/PDFMaker/resources/functions/yourcustomfunctions.php".<br>
<br>
To achieve the stripping of the prefix, you can maybe just use a simple<br>
str_replace, or you use substr to always remove the first three letters.<br>
<br>
Here is some example code for a custom function (untested):<br>
if (!function_exists('strip_prefix')) {<br>
     function strip_prefix($str) {<br>
                return substr($str, 3);<br>
     }<br>
}<br>
<br>
Good luck<br>
<br>
<br>
Vladimir Karažija wrote<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I am using PDF Maker Professional 600.8.2 from IT-Solutions4You with<br>
vtiger<br>
6.3<br>
<br>
I have problem with displaying invoice number.<br>
<br>
I need to show only number from invoice, without prefix.<br>
<br>
Currently invoice number is INV1234, I want to display only 1234 , so I<br>
need a way to strip the prefix.<br>
<br>
This is only for export to PDF for printing.<br>
<br>
Is there PDF Maker custom function that I can use or I need to chnage<br>
vtiger crm code?<br>
<br>
I am using vtiger crm 6.3 version.<br>
<br>
regards, Vladimir<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
</blockquote>
<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Strip-prefix-from-Invoice-No-tp17357p17358.html" rel="noreferrer" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Strip-prefix-from-Invoice-No-tp17357p17358.html</a><br>
Sent from the vtigercrm-developers mailing list archive at Nabble.com.<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
</blockquote>
<br>
<br></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br></div>