mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 07:34:35 -04:00
Working on settings implementation
This commit is contained in:
parent
c995ac5f44
commit
529ef5d686
@ -24,50 +24,49 @@ class CompanySettings extends BaseSettings
|
|||||||
/*Group settings based on functionality*/
|
/*Group settings based on functionality*/
|
||||||
|
|
||||||
/*Invoice*/
|
/*Invoice*/
|
||||||
public $auto_archive_invoice = false;
|
public $auto_archive_invoice = false; // @implemented
|
||||||
|
|
||||||
public $lock_invoices = 'off'; //off,when_sent,when_paid
|
public $lock_invoices = 'off'; //off,when_sent,when_paid //@implemented
|
||||||
|
|
||||||
public $enable_client_portal_tasks = false;
|
public $enable_client_portal_tasks = false; //@ben to implement
|
||||||
public $enable_client_portal_password = false;
|
public $enable_client_portal_password = false; //@implemented
|
||||||
public $enable_client_portal = true; //implemented
|
public $enable_client_portal = true; //@implemented
|
||||||
public $enable_client_portal_dashboard = true; //implemented
|
public $enable_client_portal_dashboard = true; // @TODO There currently is no dashboard so this is pending
|
||||||
public $signature_on_pdf = false;
|
public $signature_on_pdf = false; //@implemented
|
||||||
public $document_email_attachment = false;
|
public $document_email_attachment = false;
|
||||||
//public $send_portal_password = false;
|
|
||||||
|
|
||||||
public $portal_design_id = '1';
|
public $portal_design_id = '1'; //?@deprecated
|
||||||
|
|
||||||
public $timezone_id = '';
|
public $timezone_id = ''; //@implemented
|
||||||
public $date_format_id = '';
|
public $date_format_id = ''; //@implemented
|
||||||
public $military_time = false;
|
public $military_time = false; // @TODOImplemented in Tasks only?
|
||||||
|
|
||||||
public $language_id = '';
|
public $language_id = ''; //@implemented
|
||||||
public $show_currency_code = false;
|
public $show_currency_code = false; //@implemented
|
||||||
|
|
||||||
public $company_gateway_ids = '';
|
public $company_gateway_ids = ''; //@implemented
|
||||||
|
|
||||||
public $currency_id = '1';
|
public $currency_id = '1'; //@implemented
|
||||||
|
|
||||||
public $custom_value1 = '';
|
public $custom_value1 = ''; //@implemented
|
||||||
public $custom_value2 = '';
|
public $custom_value2 = ''; //@implemented
|
||||||
public $custom_value3 = '';
|
public $custom_value3 = ''; //@implemented
|
||||||
public $custom_value4 = '';
|
public $custom_value4 = ''; //@implemented
|
||||||
|
|
||||||
public $default_task_rate = 0;
|
public $default_task_rate = 0; // @TODO Where do we inject this?
|
||||||
|
|
||||||
public $payment_terms = '';
|
public $payment_terms = ''; //@implemented
|
||||||
public $send_reminders = false;
|
public $send_reminders = false; //@TODO
|
||||||
|
|
||||||
public $custom_message_dashboard = '';
|
public $custom_message_dashboard = ''; // @TODO There currently is no dashboard so this is pending
|
||||||
public $custom_message_unpaid_invoice = '';
|
public $custom_message_unpaid_invoice = ''; //@ben to implement
|
||||||
public $custom_message_paid_invoice = '';
|
public $custom_message_paid_invoice = ''; //@ben to implement
|
||||||
public $custom_message_unapproved_quote = '';
|
public $custom_message_unapproved_quote = ''; //@ben to implement
|
||||||
public $auto_archive_quote = false;
|
public $auto_archive_quote = false; //@implemented
|
||||||
public $auto_convert_quote = true;
|
public $auto_convert_quote = true; //@implemented
|
||||||
public $auto_email_invoice = true;
|
public $auto_email_invoice = true; //@only used for Recurring Invoices, if set to false, we never send?
|
||||||
|
|
||||||
public $inclusive_taxes = false;
|
public $inclusive_taxes = false; //@implemented
|
||||||
public $quote_footer = '';
|
public $quote_footer = '';
|
||||||
|
|
||||||
public $translations;
|
public $translations;
|
||||||
@ -312,7 +311,6 @@ class CompanySettings extends BaseSettings
|
|||||||
'email_template_statement' => 'string',
|
'email_template_statement' => 'string',
|
||||||
'email_subject_statement' => 'string',
|
'email_subject_statement' => 'string',
|
||||||
'signature_on_pdf' => 'bool',
|
'signature_on_pdf' => 'bool',
|
||||||
// 'send_portal_password' => 'bool',
|
|
||||||
'quote_footer' => 'string',
|
'quote_footer' => 'string',
|
||||||
'page_size' => 'string',
|
'page_size' => 'string',
|
||||||
'font_size' => 'int',
|
'font_size' => 'int',
|
||||||
|
@ -311,7 +311,11 @@ class HtmlEngine
|
|||||||
$data['$task.tax_name2'] = ['value' => '', 'label' => ctrans('texts.tax')];
|
$data['$task.tax_name2'] = ['value' => '', 'label' => ctrans('texts.tax')];
|
||||||
$data['$task.tax_name3'] = ['value' => '', 'label' => ctrans('texts.tax')];
|
$data['$task.tax_name3'] = ['value' => '', 'label' => ctrans('texts.tax')];
|
||||||
$data['$task.line_total'] = ['value' => '', 'label' => ctrans('texts.line_total')];
|
$data['$task.line_total'] = ['value' => '', 'label' => ctrans('texts.line_total')];
|
||||||
$data['$contact.signature'] = ['value' => $this->invitation->signature_base64, 'label' => ctrans('texts.signature')];
|
|
||||||
|
if($this->settings->signature_on_pdf)
|
||||||
|
$data['$contact.signature'] = ['value' => $this->invitation->signature_base64, 'label' => ctrans('texts.signature')];
|
||||||
|
else
|
||||||
|
$data['$contact.signature'] = ['value' => '', 'label' => ''];
|
||||||
|
|
||||||
$data['$thanks'] = ['value' => '', 'label' => ctrans('texts.thanks')];
|
$data['$thanks'] = ['value' => '', 'label' => ctrans('texts.thanks')];
|
||||||
$data['$from'] = ['value' => '', 'label' => ctrans('texts.from')];
|
$data['$from'] = ['value' => '', 'label' => ctrans('texts.from')];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user