From e1a7de32e1de44875c3078c3c6579ef9c06143c4 Mon Sep 17 00:00:00 2001 From: ptibogxiv Date: Sun, 18 Oct 2020 15:36:04 +0200 Subject: [PATCH] NEW add alert before change thirdparty in takepos With some prices rules, change thirdparty should only done before add products to draft invoice. We can't block it but display an alert can be done for users --- htdocs/societe/list.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index b1cd367f258..fde106d91bb 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -610,6 +610,10 @@ if (!empty($type)) if ($type == 'f') $label = 'NewSupplier'; } +if ($contextpage = 'poslist' && ( !empty($conf->global->PRODUIT_MULTIPRICES) || !empty($conf->global->PRODUIT_CUSTOMER_PRICES) || !empty($conf->global->PRODUIT_CUSTOMER_PRICES_BY_QTY_MULTIPRICES))) { +print get_htmloutput_mesg(img_warning('default') . ' ' . $langs->trans("BecarefullChangeThirdpartyBeforeAddProductToInvoice"), '', 'warning', 1); +} + // Show the new button only when this page is not opend from the Extended POS (pop-up window) // but allow it too, when a user has the rights to create a new customer if ($contextpage != 'poslist')