<?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>LS Retail Archives - Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</title>
	<atom:link href="https://navsupports.com/category/ls-retail/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Microsoft Dynamics NAV &#124; Business Central</description>
	<lastBuildDate>Thu, 05 Jan 2017 07:18:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.5</generator>

<image>
	<url>https://navsupports.com/wp-content/uploads/2018/11/cropped-fav-1-32x32.png</url>
	<title>LS Retail Archives - Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>LS Retail POS Customization  Rounding balance amount to nearest 50 fils</title>
		<link>https://navsupports.com/ls-retail-pos-customization-rounding-balance-amount-to-nearest-50-fils/</link>
					<comments>https://navsupports.com/ls-retail-pos-customization-rounding-balance-amount-to-nearest-50-fils/#comments</comments>
		
		<dc:creator><![CDATA[Shan Abeywickrema]]></dc:creator>
		<pubDate>Tue, 27 Sep 2016 19:29:11 +0000</pubDate>
				<category><![CDATA[LS Retail]]></category>
		<category><![CDATA[Dynamcis NAV POS]]></category>
		<category><![CDATA[LS Retail POS]]></category>
		<guid isPermaLink="false">http://navsupports.com/?p=24</guid>

					<description><![CDATA[<p>Hey Guys, Another interesting customization on LS Retail POS. Customization Description Client wants to Rounding balance amount to nearest 0.50</p>
<p>The post <a href="https://navsupports.com/ls-retail-pos-customization-rounding-balance-amount-to-nearest-50-fils/">LS Retail POS Customization  Rounding balance amount to nearest 50 fils</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hey Guys, Another interesting customization on LS Retail POS.</p>
<p><span style="text-decoration: underline;"><strong>Customization Description</strong></span></p>
<p>Client wants to Rounding balance amount to nearest 0.50 fils at the POS level. Currently cashiers facing difficulty in calculating the figure to make a round amount. This functionality will provide assistance to cashiers and reduce customer waiting time at the counter.<br />
Requirement divided into two phases. First phase client wants only the pop-up message. As an example “Do you want to donate the 0.05 fils to charity or you want me to load it to your wafa account?” at the POS level.<br />
If there is nothing to round, but client wants to pop up message. As an example “Do you want to donate the 0.00 fils to charity or you want me to load it to your wafa account?” .<br />
As per the client requirement, when cashier click “OK” on the pop-up message system should proceed to tender mode. If cashier wants add or modify, he/she has to come back.</p>
<p><span style="text-decoration: underline;"><strong>Customization effected area </strong></span></p>
<p>Customization has done inside POS Transaction Codeunit (99001570) . Documentation trigger mentioned the customization details.</p>
<p>So I created new function in POS Transaction CU called RoundCalc</p>
<p>RoundCalc Function &gt;&gt; This function consist with one parameter which is called Amount .It is Decimal type. It doesn’t has any return type. There are two local variables RoundedAmount : Decimal , TxtMsg :Text 250 .Also it has Local Text Constant which is RMSG : Do you want to donate the %1 fils to charity or you want me to load it to your loyalty account?.</p>
<p><span style="text-decoration: underline;"><strong>Here is the code</strong></span></p>
<blockquote><p><em>PROCEDURE RoundCalc@1000000012(Amount@1000000000 : Decimal); </em><br />
<em> VAR </em><br />
<em>  RoundedAmount@1000000001 : Decimal; </em><br />
<em>  RMSG@1000000002 : TextConst &#8216;ENU=Do you want to donate the %01 fils to charity or </em><br />
<em> you want me to load it to your wafa account?; </em><br />
<em>  TxtMsg@1000000003 : Text[250]; </em><br />
<em> BEGIN </em><br />
<em>  // RoundCalc </em><br />
<em>    RoundedAmount := ABS(Amount &#8211; ROUND(Amount,0.5,&#8217;&gt;&#8217;));</em><br />
<em>    TxtMsg := STRSUBSTNO(RMSG,FORMAT(RoundedAmount,0,'&lt;Precision,2:2&gt;&lt;Standard Format,0&gt;&#8217;));</em><br />
<em>     PosMessage(TxtMsg); </em><br />
<em> END;</em></p></blockquote>
<p>This function is called inside the TotalPressed function after CalcTotal. This TotalPressed function is standard LS function. And passing the Amount to the RoundCalc function.</p>
<p>Example</p>
<p>RoundCalc(REC.&#8221;Gross Amount&#8221;);</p>
<p>The post <a href="https://navsupports.com/ls-retail-pos-customization-rounding-balance-amount-to-nearest-50-fils/">LS Retail POS Customization  Rounding balance amount to nearest 50 fils</a> appeared first on <a href="https://navsupports.com">Shan Abeywickrama | Dynamics NAV &amp; Business Central Insights</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://navsupports.com/ls-retail-pos-customization-rounding-balance-amount-to-nearest-50-fils/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
