From 5f8f9c6a4aa3985324e59d210d4438037b1766fe Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Wed, 23 Sep 2020 22:38:06 +0200 Subject: [PATCH] NEW restrict thirdparty to customer in takepos only display customer (better when long list and avoid supplier) --- htdocs/takepos/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/takepos/index.php b/htdocs/takepos/index.php index c29f74a53fd..0a8c41e3fa2 100644 --- a/htdocs/takepos/index.php +++ b/htdocs/takepos/index.php @@ -424,7 +424,7 @@ function ClickProduct(position) { function ChangeThirdparty(idcustomer) { console.log("ChangeThirdparty"); // Call page list.php to change customer - $("#poslines").load("../societe/list.php?action=change&contextpage=poslist&idcustomer="+idcustomer+"&place="+place+"", function() { + $("#poslines").load("../societe/list.php?action=change&type=c&contextpage=poslist&idcustomer="+idcustomer+"&place="+place+"", function() { }); ClearSearch(); @@ -440,7 +440,7 @@ function deleteline() { function Customer() { console.log("Open box to select the thirdparty place="+place); - $.colorbox({href:"../societe/list.php?contextpage=poslist&nomassaction=1&place="+place, width:"90%", height:"80%", transition:"none", iframe:"true", title:"trans("Customer"); ?>"}); + $.colorbox({href:"../societe/list.php?type=c&contextpage=poslist&nomassaction=1&place="+place, width:"90%", height:"80%", transition:"none", iframe:"true", title:"trans("Customer"); ?>"}); } function History()