From 1e72dc5190dc132cf12728a8e7e57b6ed7bf6e85 Mon Sep 17 00:00:00 2001 From: vegim carkaxhija Date: Tue, 16 Jan 2024 14:44:48 +0100 Subject: [PATCH] fix --- library/checkout/billinkcheckout.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/checkout/billinkcheckout.php b/library/checkout/billinkcheckout.php index 04ead453..37467956 100644 --- a/library/checkout/billinkcheckout.php +++ b/library/checkout/billinkcheckout.php @@ -131,8 +131,8 @@ public function getArticles() public function getRecipientCategory() { $category = self::CUSTOMER_TYPE_B2C; - if ($this->customerType == self::CUSTOMER_TYPE_B2B - || $this->companyExists($this->invoice_address->company)) { + if ($this->customerType == self::CUSTOMER_TYPE_B2B || + ($this->customerType == self::CUSTOMER_TYPE_BOTH && $this->companyExists($this->invoice_address->company))) { $category = self::CUSTOMER_TYPE_B2B; } return $category;