From 61428b9c00f79d2d6f8c35d1367a65c784675a3c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 19 Apr 2019 12:19:45 +0200 Subject: [PATCH] Fix use standard product country code if country of buyer not defined --- htdocs/accountancy/customer/list.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/accountancy/customer/list.php b/htdocs/accountancy/customer/list.php index 15515716a6d..4b3906d60da 100644 --- a/htdocs/accountancy/customer/list.php +++ b/htdocs/accountancy/customer/list.php @@ -457,7 +457,7 @@ if ($result) { } if ($objp->code_sell_l == -1) $objp->code_sell_l=''; - if ($objp->country_code == $mysoc->country_code) { // If buyer in same country than seller + if ($objp->country_code == $mysoc->country_code || empty($objp->country_code)) { // If buyer in same country than seller (if not defined, we assume it is same country) $objp->code_sell_p = $objp->code_sell; $objp->aarowid_suggest = $objp->aarowid; } else {