<div dir="ltr">Hi all,<div><br></div><div>stupid me.. it was simpler then I thought... solution is at the end of this email</div><div><br></div><div>but I got another problem</div><div><br></div><div>I need to display totals outside product block:</div><div><br></div><div>- Total incl TAX without discount</div><div>- Total discount amount incl TAX</div><div><br></div><div>How to do this when I cannot use product fields outside product block</div><div><br></div><div>SOLUTION FOR DISPLAYING PRICES WITH VAT IN PRODUCT BLOCK:</div><div><br></div><div>to display prices with VAT I created custom field for Price incl. VAT and this custom field is used as static field without calculations</div><div><br></div><div>I created this product block template:</div><div><br></div><div><table border="0" cellpadding="5" cellspacing="0" class="" style="border:1px dotted rgb(211,211,211);color:rgb(51,51,51);font-family:sans-serif,Arial,Verdana,'Trebuchet MS';font-size:10px;line-height:22.4px;width:2019px"><tbody><tr><td style="border-color:rgb(211,211,211) rgb(211,211,211) rgb(221,221,221);border-width:1px;border-style:dotted dotted solid;vertical-align:top;text-align:center"><span><span><span><span><span style="font-family:tahoma">$PRODUCTQUANTITY$</span></span></span></span></span></td><td style="border-color:rgb(211,211,211) rgb(211,211,211) rgb(221,221,221);border-width:1px;border-style:dotted dotted solid;vertical-align:top;text-align:right">$PRODUCTS_CF_757$</td><td style="border-color:rgb(211,211,211) rgb(211,211,211) rgb(221,221,221);border-width:1px;border-style:dotted dotted solid;vertical-align:top;text-align:right"><span><span><span><span><span style="font-family:tahoma">$PRODUCTDISCOUNTPERCENT$</span></span></span></span></span></td><td style="border-color:rgb(211,211,211) rgb(211,211,211) rgb(221,221,221);border-width:1px;border-style:dotted dotted solid;vertical-align:top;text-align:right">[CUSTOMFUNCTION|its4you_divide|$PRODUCTTOTALSUM$|$PRODUCTQUANTITY$|CUSTOMFUNCTION]</td><td style="border-color:rgb(211,211,211) rgb(211,211,211) rgb(221,221,221);border-width:1px;border-style:dotted dotted solid;vertical-align:top;text-align:right"><span style="font-family:tahoma;line-height:22.4px">$PRODUCTTOTALSUM$</span></td></tr></tbody></table></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 Tue, Sep 22, 2015 at 3:41 PM, Vladimir Karažija <span dir="ltr"><<a href="mailto:vladimir@kosacrta.hr" target="_blank">vladimir@kosacrta.hr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">thnx Matus,<div><br></div><div>to display prouduct price with VAT I am using Product price with TAX - $PRODUCTTOTALSUM$ </div><div><br></div><div>When it gets complicated is when you calculate discount, because discount is calculated on List price and not on the Product price with TAX.</div><div><br></div><div>The logic of discount is problem. Discount is always calculated on List price.</div><div><br></div><div>If discount can be calculated on Product price with TAX then I could achieve what I want.</div><div><br></div><div>This requires custom work on vtiger side I think.</div><div><br></div><div>Because this is Retail related feature are there possible vtiger users that would like this feature implemented?</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>V.</div></font></span></div><div class="gmail_extra"><span class=""><br clear="all"><div><div><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. <a href="tel:%2B385%201%20777%2033%2085" value="+38517773385" target="_blank">+385 1 777 33 85</a></div><div>m. <a href="tel:%2B385%2091%20122%200511" value="+385911220511" target="_blank">+385 91 122 0511</a><br></div><div><a href="http://www.kosacrta.hr" target="_blank">www.kosacrta.hr</a></div></div></div></div></div></div>
<br></span><div><div class="h5"><div class="gmail_quote">On Tue, Sep 22, 2015 at 2:57 PM, 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">In PDF Maker you can choose this values:<br>
<a href="http://www.its4you.sk/en/pdf-maker/manual/21-pdf-maker/manual/66-editing-mapping" rel="noreferrer" target="_blank">http://www.its4you.sk/en/pdf-maker/manual/21-pdf-maker/manual/66-editing-mapping</a><br>
<br>
Subtotal        Price without TAX before discount, by Tax Mode: group = Net Total<br>
Total discount  Final Discount amount<br>
Total discount (%)      Final Discount in %<br>
Total without TAX       Total price without TAX after discount<br>
TAX     Total TAX amount<br>
TAX (%) Total TAX in %<br>
TAX block       This is useful for some countries, that need to have the detail amount of TAX<br>
Total with TAX  Total price with TAX<br>
Shipping & Handling taxes       Final taxes for Shipping & Handling<br>
Shipping & Handling amount      Final amount for Shipping & Handling<br>
Adjustment      Adjustment from vtiger form Grand Total Grand Total from vtiger form<br>
<br>
Matus<br>
<br>
<br>
Dňa 22. 9. 2015 o 10:59 Vladimir Karažija napísal(a):<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
Hi Alan,<br>
<br>
thnx for bug info.. I think this was an issue in 5.4 version also?<br>
<br>
regarding PDF Maker.. I think all logic in vtiger is towards wholesale<br>
business model and what I need is retail logic...<br>
<br>
retail customers are not interested in VAT amount.. they just want the<br>
retail price, discount and grand total.<br>
<br>
on the other hand, IRS (tax authority) wants and needs VAT specification<br>
by VAT percentage (you could have different VAT % in same invoice) and<br>
this needs to be expressed in VAT block<br>
<br>
so I need to express numbers for customers (only with VAT) and VAT<br>
amounts for IRS<br>
<br>
PDF Maker custom functions does not allow function inside function so I<br>
need to create new variables so I can calculate amounts.<br>
<br>
What comes to mind is just to add custom field that will express price<br>
with VAT and base all calculations on that value.<br>
<br>
Anyway retailers need to calculate prices with VAT so it is only one<br>
field that needs to be filled more.<br>
<br>
Any vtiger user with similar problems?<br>
<br>
V.<br>
<br>
<br>
Vladimir Karažija<br>
Kosa crta d.o.o.<br>
Jagnedje 1<br>
10090 Zagreb<br>
OIB: 57724075047<br>
<br>
t. <a href="tel:%2B385%201%20777%2033%2085" value="+38517773385" target="_blank">+385 1 777 33 85</a><br>
m. <a href="tel:%2B385%2091%20122%200511" value="+385911220511" target="_blank">+385 91 122 0511</a><br>
</div></div><a href="http://www.kosacrta.hr" rel="noreferrer" target="_blank">www.kosacrta.hr</a> <<a href="http://www.kosacrta.hr" rel="noreferrer" target="_blank">http://www.kosacrta.hr</a>><span><br>
<br>
On Tue, Sep 22, 2015 at 8:45 AM, Alan Lord<br>
<<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a><br></span><span>
<mailto:<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>>> wrote:<br>
<br>
    On 21/09/15 22:56, Vladimir Karažija wrote:<br>
<br>
        Hi,<br>
<br>
        I want to show all calculations in product block with VAT but<br>
        still be<br>
        able to show VAT amount and percent in VAT block.<br>
<br>
<br>
    This is pretty nasty bug IMHO:<br>
<br>
    <a href="http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8621" rel="noreferrer" target="_blank">http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/8621</a><br>
<br>
    The Pre-tax Total always shows the same value as the total with<br>
    tax... Go figure?<br>
<br>
        I am using PDF Maker and do not know PHP so would need help.<br>
<br>
<br>
    So you want to print the values from the Product block. You<br>
    shouldn't need to know any PHP - all these values are available in<br>
    PDFMaker using the Product Block section...<br>
<br>
    See their example invoice etc...<br>
<br>
    Al<br>
<br>
<br>
    _______________________________________________<br>
    <a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
<br>
<br>
<br></span>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a><br>
<br>
</blockquote>
<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br></div></div></div>
</blockquote></div><br></div>