From a56490c465656976496ee7336f5fc3cf70e8749c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 13 Jan 2022 10:54:34 +1100 Subject: [PATCH] Set type of payment terms --- app/Jobs/Util/Import.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Jobs/Util/Import.php b/app/Jobs/Util/Import.php index 627619656c9a..52fff144557d 100644 --- a/app/Jobs/Util/Import.php +++ b/app/Jobs/Util/Import.php @@ -477,6 +477,11 @@ class Import implements ShouldQueue } $company_settings->{$key} = $value; + + if($key == 'payment_terms'){ + settype($company_settings->payment_terms, 'string'); + } + } $data['settings'] = $company_settings;