Fixes for surcharge visibility

This commit is contained in:
David Bomba 2022-07-01 18:11:04 +10:00
parent af8ec95e2c
commit fcdc69c829
3 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
5.4.4
5.4.5

View File

@ -105,7 +105,7 @@ class TemplateEngine
private function setSettingsObject()
{
if($this->entity == 'purchase_order'){
if($this->entity == 'purchaseOrder'){
$this->settings_entity = auth()->user()->company();
$this->settings = $this->settings_entity->settings;
}
@ -153,7 +153,7 @@ class TemplateEngine
$this->raw_body = $this->body;
$this->raw_subject = $this->subject;
if($this->entity == 'purchase_order'){
if($this->entity == 'purchaseOrder'){
$this->fakerValues();
}
elseif ($this->entity_obj) {
@ -269,7 +269,7 @@ class TemplateEngine
private function mockEntity()
{
if(!$this->entity && $this->template && str_contains($this->template, 'purchase_order'))
$this->entity = 'purchase_order';
$this->entity = 'purchaseOrder';
DB::connection(config('database.default'))->beginTransaction();

View File

@ -14,8 +14,8 @@ return [
'require_https' => env('REQUIRE_HTTPS', true),
'app_url' => rtrim(env('APP_URL', ''), '/'),
'app_domain' => env('APP_DOMAIN', 'invoicing.co'),
'app_version' => '5.4.4',
'app_tag' => '5.4.4',
'app_version' => '5.4.5',
'app_tag' => '5.4.5',
'minimum_client_version' => '5.0.16',
'terms_version' => '1.0.1',
'api_secret' => env('API_SECRET', ''),