{"id":28271,"date":"2023-05-09T10:12:29","date_gmt":"2023-05-09T10:12:29","guid":{"rendered":"https:\/\/kb.sambapos.com\/?p=28271"},"modified":"2023-05-09T10:13:50","modified_gmt":"2023-05-09T10:13:50","slug":"4-82-how-to-limit-customer-account","status":"publish","type":"post","link":"https:\/\/kb.sambapos.com\/en\/4-82-how-to-limit-customer-account\/","title":{"rendered":"4.82. How to Limit Customer Account?"},"content":{"rendered":"<p>In this document it will be explained how to limit customer account.<\/p>\n<h3><strong>How It Works;<\/strong><\/h3>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28272\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account.gif\" alt=\"\" width=\"640\" height=\"335\"><\/p>\n<h4><strong>1. Adding Limit Custom Field<\/strong><\/h4>\n<p><strong>Main Menu &gt; Manage &gt; Entities &gt; Entity Types &gt; Customers &gt; Custom Fields &gt;<\/strong> Here, click on <strong>Add Custom Field<\/strong> button and name it as <strong>Limit.<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28274 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-01-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-01-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-01-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-01-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-01-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-01.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>After editing necessary parts click on <strong>Save<\/strong> button.<\/p>\n<h4><strong>2. Editing Customer&#8217;s Limit Field<\/strong><\/h4>\n<p><strong>Main Menu &gt; POS &gt; Customer Search &gt; Select Related Customer &gt; Click on Edit Customer &gt;<\/strong> Into the <strong>Limit<\/strong> field type desired limit amount and click on <strong>Save<\/strong> button.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28276 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-02-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-02-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-02-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-02-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-02-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-02.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28278 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-03-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-03-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-03-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-03-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-03-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-03.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<h4><strong>3. Adding Actions<\/strong><\/h4>\n<h5><strong>3.1. Adding LCA-Ask Question Action<\/strong><\/h5>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28280 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-04-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-04-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-04-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-04-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-04-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-04.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LCA-Ask Question<\/p>\n<p><strong>Action Type:<\/strong> Ask Question<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Question:<\/strong> [:Question]<\/p>\n<p><strong>Buttons:<\/strong> [:Buttons]<\/p>\n<p><strong>Description:<\/strong> [:Description]<\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<h5><strong>3.2. Adding LCA-Cancel Action<\/strong><\/h5>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28283 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-05-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-05-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-05-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-05-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-05-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-05.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LCA-Cancel<\/p>\n<p><strong>Action Type:<\/strong> Cancel Orders<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Only Last Order:<\/strong> False<\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<h5><strong>3.3. Adding LCA-Cancel Orders Action<\/strong><\/h5>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28285 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-06-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-06-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-06-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-06-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-06-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-06.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LCA-Cancel Orders<\/p>\n<p><strong>Action Type:<\/strong> Execute Ticket Command<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Ticket Command Name:<\/strong> Cancel Orders<\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<h5><strong>3.4. Adding LCA-Update Entity Data Action<\/strong><\/h5>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Actions &gt;<\/strong> Here, click on <strong>Add Action<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28287 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-07-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-07-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-07-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-07-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-07-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-07.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Action Name:<\/strong> LCA-Update Entity Data<\/p>\n<p><strong>Action Type:<\/strong> Update Entity Data<\/p>\n<p><strong>Parameters:<\/strong><\/p>\n<p><strong>Entity Type Name:<\/strong> Customers<\/p>\n<p><strong>Field Name:<\/strong> [:Field Name]<\/p>\n<p><strong>Field Value:<\/strong> [:Field Value]<\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<h4><strong>4. Adding Rules<\/strong><\/h4>\n<p><strong>4.1. Adding LCA-Increase Limit Rule<\/strong><\/p>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28289 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-08-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-08-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-08-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-08-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-08-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-08.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> LCA-Increase Limit<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Automation Command Name|Equals|Increase Limit<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action: LCA-Update Entity Data<\/strong><\/p>\n<p><strong>Field Name: <\/strong>Limit<\/p>\n<p><strong>Field Value:<\/strong> [?New Limit]<\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<p><strong>4.2. Adding LCA-Limit Cancel Order Rule<\/strong><\/p>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28291 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-09-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-09-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-09-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-09-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-09-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-09.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> LCA-Limit Cancel Order<\/p>\n<p><strong>Event Name:<\/strong> Automation Command Executed<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>Automation Command Name|Equals|Limit Cancel Order<\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action-1: LCA-Cancel<\/strong><\/p>\n<p><strong>Action-2: LCA-Cancel Orders<\/strong><\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<p><strong>4.3. Adding LCA-Determine Customer Limit Rule<\/strong><\/p>\n<p><strong>Main Menu &gt; Manage &gt; Automation &gt; Rules &gt;<\/strong> Here, click on <strong>Add Rule<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-28293 size-large\" src=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-10-1024x549.jpg\" alt=\"\" width=\"640\" height=\"343\" srcset=\"https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-10-1024x549.jpg 1024w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-10-300x161.jpg 300w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-10-768x412.jpg 768w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-10-1536x824.jpg 1536w, https:\/\/kb.sambapos.com\/wp-content\/uploads\/2023\/05\/Limiting-Customer-Account-10.jpg 1920w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p><strong>Rule Name:<\/strong> LCA-Determine Customer Limit<\/p>\n<p><strong>Event Name:<\/strong> Order Added to Ticket<\/p>\n<p><strong>Execute Rule if:<\/strong> Matches<\/p>\n<p><strong>Add Custom Constraint:<\/strong><\/p>\n<p>{ENTITY DATA:Customers:Limit}|Is Not Null|<\/p>\n<p><code>[=F(TN('{TICKET TOTAL}')+TN('{ENTITY BALANCE:Customers}'))]|Greater|{ENTITY DATA:Customers:Limit}<\/code><\/p>\n<p><strong>Select Actions:<\/strong><\/p>\n<p><strong>Action: LCA-Ask Question<\/strong><\/p>\n<p><strong>Question: &lt;<code>color red&gt;Attention Limit Alert!&lt;\/color&gt;<\/code><\/strong><\/p>\n<p><strong>Buttons: <code><\/code><\/strong><code>Limit is Enough=Limit Cancel Order,Continue For Now,Increase Limit=Increase Limit<\/code><\/p>\n<p><strong>Description:<\/strong><code> With the last added product, the customer exceeds the debt limit, the order will be cancelled.&lt;br\/&gt;Customer : {ENTITY NAME:Customers}&lt;br\/&gt;Limit : {ENTITY DATA:Customers:Limit} &lt;br\/&gt;Balance : {ENTITY BALANCE:Customers}<\/code><\/p>\n<p>After completing necessary editing, click on <strong>Save<\/strong> button.<\/p>\n<p><strong><code><\/code><\/strong><code><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this document it will be explained how to limit customer account. How It Works; 1. Adding Limit Custom Field Main Menu &gt; Manage &gt; Entities &gt; Entity Types &gt; Customers &gt; Custom Fields &gt; Here, click on Add Custom Field button and name it as Limit. After editing necessary parts click on Save button. [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-28271","post","type-post","status-publish","format-standard","hentry","category-customization"],"_links":{"self":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/28271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/comments?post=28271"}],"version-history":[{"count":3,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/28271\/revisions"}],"predecessor-version":[{"id":28297,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/posts\/28271\/revisions\/28297"}],"wp:attachment":[{"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/media?parent=28271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/categories?post=28271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.sambapos.com\/en\/wp-json\/wp\/v2\/tags?post=28271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}