<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=Retail%3APromotions_Best_Deal_Case</id>
	<title>Retail:Promotions Best Deal Case - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.infinite-erp.co.id/index.php?action=history&amp;feed=atom&amp;title=Retail%3APromotions_Best_Deal_Case"/>
	<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=Retail:Promotions_Best_Deal_Case&amp;action=history"/>
	<updated>2026-04-06T23:31:44Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.infinite-erp.co.id/index.php?title=Retail:Promotions_Best_Deal_Case&amp;diff=1973&amp;oldid=prev</id>
		<title>Wikiadmin: Created page with &quot;== Overview ==  {{(warn!)|'''Best Deal Case for Discounts and Promotions''' is '''no longer supported and has been removed from Openbravo starting from 3.0RR18Q1'''.}}  imag...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.infinite-erp.co.id/index.php?title=Retail:Promotions_Best_Deal_Case&amp;diff=1973&amp;oldid=prev"/>
		<updated>2021-11-18T16:13:38Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Overview ==  {{(warn!)|&amp;#039;&amp;#039;&amp;#039;Best Deal Case for Discounts and Promotions&amp;#039;&amp;#039;&amp;#039; is &amp;#039;&amp;#039;&amp;#039;no longer supported and has been removed from Openbravo starting from 3.0RR18Q1&amp;#039;&amp;#039;&amp;#039;.}}  imag...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Overview ==&lt;br /&gt;
&lt;br /&gt;
{{(warn!)|'''Best Deal Case for Discounts and Promotions''' is '''no longer supported and has been removed from Openbravo starting from 3.0RR18Q1'''.}}&lt;br /&gt;
&lt;br /&gt;
[[image:ProfFree.png| Commercial Extension Module (zero cost)]]  '''Best Deal Case for Discounts and Promotions''' is an optional free commercial module that can be installed on top of ''Openbravo for Retail'' distribution starting from ''RR14Q2'' (Q2 2014 Retail Release).&lt;br /&gt;
&lt;br /&gt;
It provides implementation for &amp;quot;Combo&amp;quot; [[Retail:Discounts_and_Promotions_Rules|Discount Rule]].&lt;br /&gt;
&lt;br /&gt;
{{(warn!)|'''Best Deal Case for Discounts and Promotions''' is intended to be used '''only from WebPOS'''. This means tickets created from WebPOS will be computed to get ''Best Deal Case'' for its promotions, but tickets created directly in backoffice will not.}}&lt;br /&gt;
&lt;br /&gt;
== Concepts ==&lt;br /&gt;
&lt;br /&gt;
''Best Deal Case'' is an alternative mechanism to apply promotions in WebPOS. When working in this mode the way promotions are applied varies from the [[Discounts_and_Promotions#How_Promotions_are_defined|standard definition]] in two manners:&lt;br /&gt;
&lt;br /&gt;
* Each line is limited to be applied just one discount. Even ''Apply Next'' is allowed, only one promotions is applied. When working in ''Best Deal Case'' mode, all promotions behave as they were ''No Apply Next''.&lt;br /&gt;
* ''Best Deal Case'' algorithm is executed just before paying the ticket, at this point the best possible combination of discounts is applied to the ticket. The best possible combination is the one that maximizes the discounted amount.&lt;br /&gt;
&lt;br /&gt;
=== How it works ===&lt;br /&gt;
&lt;br /&gt;
When working in ''Best Deal Case'' mode, discounts are applied while products are added to the ticket in the same manner than when working in ''Standard'' mode with the difference that, at most, only one discount is applied per line.&lt;br /&gt;
&lt;br /&gt;
When the ''Pay'' button is tapped, ''Best Deal Case'' algorithm is executed to try to get the best possible discount. If a better discount than the previously calculated one is found, ticket is modified to apply it.&lt;br /&gt;
&lt;br /&gt;
The algorithm that looks the best case, splits the lines that can have different discounts with more than one unit per product in several lines with one unit each and combines all the possible discounts for each of them to obtain the best one.&lt;br /&gt;
&lt;br /&gt;
Because of this in case the number of possible combinations is big, the algorithm can take its time to perform the computation. The more Discount rules are applicable to a product, the more combinations it needs to check.&lt;br /&gt;
&lt;br /&gt;
{{(warn!)|Due the way the algorithm is designed, it requires rules that need more than one unit of a product to be applied to be able to look in other lines to complete the quantity, this is not the case of old rules such as ''Buy X and get Y as gift'', ''Buy X pay Y of different product'', ''Buy X pay Y of same product'' or ''Pack''.}}&lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&lt;br /&gt;
''Best Deal Case'' mode is enabled at ''Store'' level. From ''Organization'' window, for ''Store'' organizations, '''Best Deal Case for Discounts and Promotions''' field is visible, by selecting it, all terminal defined in that store will work in this mode.&lt;br /&gt;
&lt;br /&gt;
When this field is flagged, a new one is shown: '''Stop Long Best Deal Case Execution'''. Due the algorithm needs to evaluate all possible combinations, it can occur it to take long to execute. If this field is flagged, the algorithm stops in case the number of combinations to evaluate is too high. When this happens, the ticket remains as it was without trying to find a better set of discounts.&lt;br /&gt;
&lt;br /&gt;
[[Image:BDCConfig.png|600px|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Retail]]&lt;/div&gt;</summary>
		<author><name>Wikiadmin</name></author>
		
	</entry>
</feed>