From a20240b64f02e40002f2ff79c74dbb0036dbdcba Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 1 Jul 2022 17:13:35 +1000 Subject: [PATCH] Fixes for type checking for purchase orders --- app/Utils/VendorHtmlEngine.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Utils/VendorHtmlEngine.php b/app/Utils/VendorHtmlEngine.php index 36cc99a9fb08..cbea4bb4fac0 100644 --- a/app/Utils/VendorHtmlEngine.php +++ b/app/Utils/VendorHtmlEngine.php @@ -63,6 +63,11 @@ class VendorHtmlEngine $this->vendor = $this->contact->vendor->load('company','country'); + if(!$this->vendor->currency_id){ + $this->vendor->currency_id = $this->company->settings->currency_id; + $this->vendor->save(); + } + $this->entity->load('vendor'); $this->settings = $this->company->settings;