<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VAT handling in CRM invoices Archives - MachSol Blog</title>
	<atom:link href="https://blog.machsol.com/tag/vat-handling-in-crm-invoices/feed" rel="self" type="application/rss+xml" />
	<link>https://blog.machsol.com/tag/vat-handling-in-crm-invoices</link>
	<description>Multi-Cloud Service Orchestration &#38; Delivery Platform</description>
	<lastBuildDate>Tue, 14 Jul 2020 10:43:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Value added tax (VAT) on Dynamics CRM invoices</title>
		<link>https://blog.machsol.com/cloud/value-added-tax-vat-on-dynamics-crm-invoices</link>
		
		<dc:creator><![CDATA[Jameel]]></dc:creator>
		<pubDate>Fri, 10 Mar 2017 10:03:28 +0000</pubDate>
				<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Dynamics 365]]></category>
		<category><![CDATA[Microsoft Dynamics CRM]]></category>
		<category><![CDATA[Dynamics 365 invoices VAT computation]]></category>
		<category><![CDATA[JavaScript handle invoice VAT]]></category>
		<category><![CDATA[Value added tax]]></category>
		<category><![CDATA[Value added tax (VAT) on Dynamics CRM invoices]]></category>
		<category><![CDATA[VAT]]></category>
		<category><![CDATA[VAT handling in CRM invoices]]></category>
		<guid isPermaLink="false">http://blog.machsol.com/?p=2721</guid>

					<description><![CDATA[<p>Dynamics CRM Invoicing  &#8211; A better way to handle VAT (value added tax) Dynamics CRM is a Customer Relationship Management System., and handling billing related operations with CRM is really a complex and tricky job because its not an accounting/billing system !  though CRM system does offer a basic invoicing flow but sometimes complex system [&#8230;]</p>
<p>The post <a href="https://blog.machsol.com/cloud/value-added-tax-vat-on-dynamics-crm-invoices">Value added tax (VAT) on Dynamics CRM invoices</a> appeared first on <a href="https://blog.machsol.com">MachSol Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><span style="color: #3366ff;">Dynamics CRM Invoicing  &#8211; A better way to handle VAT (value added tax)<br />
</span></h3>
<p>Dynamics CRM is a Customer Relationship Management System., and handling billing related operations with CRM is really a complex and tricky job because its not an accounting/billing system !  though CRM system does offer a basic invoicing flow but sometimes complex system customization is required in CRM to cover the complete billing life cycle.</p>
<p>We have a requirement in one of our Dynamics CRM / &#8220;Dynamics 365 for Sales&#8221; setup to add a handling in invoice entity form that will calculate VAT amount based on provided percentage value by billing / sales department.</p>
<p>By default, there is no way to handle VAT amount for CRM invoice based on some defined percentage value. Our basic goal to achieve a functionality where sales person has the ability to enter a VAT % with in a field and based on that a VAT amount should be calculated (added into another custom/built-in field) automatically and after saving/recalculating the invoice form vat amount should be added to the Total amount of the invoice.</p>
<h4><span style="color: #3366ff; font-size: 20px;">How to compute &#8220;Value added tax&#8221; on CRM invoices ?! </span></h4>
<h4><span style="color: #333333;">Target Entity = Invoice</span></h4>
<p>Create and Add a custom field with the following details on invoice form, which will hold vat percentage value.</p>
<ul>
<li style="padding-left: 12px; list-style: square;">Data type &#8220;Decimal Number&#8221;</li>
<li style="padding-left: 12px; list-style: square;">Min value = 0</li>
<li style="padding-left: 12px; list-style: square;">Max value = 100</li>
</ul>
<p>secondly, In order to store VAT amount we need to use another field and for that we have used an existing field. i.e. &#8220;freightamount&#8221; ( data type currency), as we never used / utilized freight amount field so this can be used to hold vat amount. we have changed its display name to VAT Amount on Invoice form.</p>
<p>Once the vat percentage % is mentioned in the newly generated custom field, VAT amount gets calculated automatically. (Please note that the JS will triggers as an onchange event of that percentage field,. so it triggers as soon as we press &#8220;tab&#8221; key or click elsewhere on invoice form.</p>
<p>&nbsp;</p>
<p>Following is the JS (web resource) which needs to be added to invoice entity form and use the &#8220;calculate&#8221; function as an OnChange event for newly generated custom field. i.e. &#8220;ms_invoicevatpercent&#8221;</p>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><span style="color: #3366ff;"><span style="color: #0000ff;">function</span><span style="color: #333333;"><strong> calculate</strong> ()</span></span></p>
<p style="padding-left: 30px;"><span style="color: #333333;">{</span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;"><span style="color: #0000ff;">var</span> <span style="color: #333333;">val1 = Xrm.Page.getAttribute(&#8220;<span style="color: #993300;">ms_invoicevatpercent</span>&#8220;).getValue();</span></span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;"><span style="color: #0000ff;">var</span> <span style="color: #333333;">val2 = Xrm.Page.getAttribute(&#8220;<span style="color: #993300;">totalamount</span>&#8220;).getValue();</span></span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;"><span style="color: #0000ff;">if</span><span style="color: #333333;">(val1==null) return;</span></span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;"><span style="color: #0000ff;">if</span><span style="color: #333333;">(val2==null) return;</span></span></p>
<p style="padding-left: 30px;"><span style="color: #3366ff;"><span style="color: #0000ff;">var</span> <span style="color: #333333;">result = val1* val2/100;</span></span></p>
<p style="padding-left: 30px;"><span style="color: #333333;">Xrm.Page.getAttribute(&#8220;<span style="color: #ff6600;"><span style="color: #993300;">freightamoun</span>t</span>&#8220;).setValue(result);</span></p>
<p style="padding-left: 30px;"><span style="color: #333333;">}</span></p>
<p>&nbsp;</p>
<p><span style="color: #ff0000;">Lets take a look the above handling in action !!</span></p>
<p>&nbsp;</p>
<div style="width: 720px;" class="wp-video"><video class="wp-video-shortcode" id="video-2721-1" width="720" height="408" autoplay preload="metadata" controls="controls"><source type="video/mp4" src="https://www.machsol.com/videos/crm-invoice-vat.mp4?_=1" /><a href="https://www.machsol.com/videos/crm-invoice-vat.mp4">https://www.machsol.com/videos/crm-invoice-vat.mp4</a></video></div>
<p>&nbsp;</p>
<p style="text-align: right; font-size: 13px; font-family: Lucida Handwriting;"> <span style="color: #333333;">Author </span>: <span style="color: #3366ff;"><a style="color: #3366ff;" href="mailto:Jameel.ur.rehman@machsol.com">Jameel</a></span></p>
<p><span style="color: #000000;"><strong>…</strong></span></p>
<p style="text-align: left; font-size: 13px;">For product &amp; sales related queries, please email us at <span style="color: #3366ff;"><a style="color: #3366ff;" href="mailto:sales@machsol.com">sales@machsol.com</a></span></p>
<p>The post <a href="https://blog.machsol.com/cloud/value-added-tax-vat-on-dynamics-crm-invoices">Value added tax (VAT) on Dynamics CRM invoices</a> appeared first on <a href="https://blog.machsol.com">MachSol Blog</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
