From a1c986d83a2a956cc5f0af844a60e3d3c18f8aab Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 15 Mar 2023 11:41:59 +1100 Subject: [PATCH] Updates --- app/DataMapper/CompanySettings.php | 18 ++++++++++++++++++ config/liap.php | 5 +++++ 2 files changed, 23 insertions(+) diff --git a/app/DataMapper/CompanySettings.php b/app/DataMapper/CompanySettings.php index b5aa38a104..d979030514 100644 --- a/app/DataMapper/CompanySettings.php +++ b/app/DataMapper/CompanySettings.php @@ -467,7 +467,16 @@ class CompanySettings extends BaseSettings public $show_task_item_description = false; + public $client_initiated_payments = false; + + public $client_initiated_payments_minimum = 0; + + public $sync_invoice_quote_columns = true; + public static $casts = [ + 'client_initiated_payments' => 'bool', + 'client_initiated_payments_minimum' => 'float', + 'sync_invoice_quote_columns' => 'bool', 'show_task_item_description' => 'bool', 'allow_billable_task_items' => 'bool', 'accept_client_input_quote_approval' => 'bool', @@ -907,6 +916,15 @@ class CompanySettings extends BaseSettings '$product.tax', '$product.line_total', ], + 'product_quote_columns' => [ + '$product.item', + '$product.description', + '$product.unit_cost', + '$product.quantity', + '$product.discount', + '$product.tax', + '$product.line_total', + ], 'task_columns' =>[ '$task.service', '$task.description', diff --git a/config/liap.php b/config/liap.php index b7f91958ab..f140554cf6 100644 --- a/config/liap.php +++ b/config/liap.php @@ -1,5 +1,10 @@