Skip to content

Commit

Permalink
Merge pull request #412 from Kovah/v1.4.9
Browse files Browse the repository at this point in the history
IP-454 - Updates default data and settings
  • Loading branch information
Kovah committed Oct 30, 2016
2 parents e262554 + aef66ee commit eb8adc0
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions application/modules/setup/models/mdl_setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,14 @@ public function install_default_data()
'invoice_group_prefix' => 'QUO',
'invoice_group_next_id' => 1)
);

$this->db->insert('ip_payment_methods', array(
'payment_method_name' => 'Cash',
));

$this->db->insert('ip_payment_methods', array(
'payment_method_name' => 'Credit Card',
));
}

private function install_default_settings()
Expand All @@ -121,21 +129,22 @@ private function install_default_settings()
'date_format' => 'm/d/Y',
'currency_symbol' => '$',
'currency_symbol_placement' => 'before',
'currency_code' => 'USD',
'invoices_due_after' => 30,
'quotes_expire_after' => 15,
'default_invoice_group' => 1,
'default_quote_group' => 2,
'default_invoice_group' => 3,
'default_quote_group' => 4,
'thousands_separator' => ',',
'decimal_point' => '.',
'cron_key' => random_string('alnum', 16),
'tax_rate_decimal_places' => 2,
'pdf_invoice_template' => 'default',
'pdf_invoice_template_paid' => 'default',
'pdf_invoice_template_overdue' => 'default',
'pdf_quote_template' => 'default',
'public_invoice_template' => 'default',
'public_quote_template' => 'default',
'disable_sidebar' => 1
'pdf_invoice_template' => 'InvoicePlane',
'pdf_invoice_template_paid' => 'InvoicePlane - paid',
'pdf_invoice_template_overdue' => 'InvoicePlane - overdue',
'pdf_quote_template' => 'InvoicePlane',
'public_invoice_template' => 'InvoicePlane_Web',
'public_quote_template' => 'InvoicePlane_Web',
'disable_sidebar' => 1,
);

foreach ($default_settings as $setting_key => $setting_value) {
Expand Down

0 comments on commit eb8adc0

Please sign in to comment.