Fixes for type checking for purchase orders

This commit is contained in:
David Bomba 2022-07-01 17:13:35 +10:00
parent 999ff54593
commit a20240b64f

View File

@ -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;