Skip to content

Commit

Permalink
Add default_invoice extension logic to the standard application and m…
Browse files Browse the repository at this point in the history
…isc chgs/fixes noted in change log.
  • Loading branch information
fearless359 committed Oct 26, 2018
1 parent ea55aca commit 1eb45f1
Show file tree
Hide file tree
Showing 128 changed files with 3,750 additions and 7,904 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Expand Up @@ -20,3 +20,8 @@ templates/invoices/**

### PhpStorm intelliJ folder ###
.idea/**

### npm files ###
package-lock.json
node_modules/*

4 changes: 2 additions & 2 deletions config/config.php
Expand Up @@ -24,8 +24,8 @@
export.pdf.topmargin = 15
export.pdf.bottommargin = 15

version.name = 2018.2.3
version.update_date = 20181019
version.name = 2018.2.4
version.update_date = 20181023

local.locale = en_US
local.precision = 2
Expand Down
7 changes: 7 additions & 0 deletions databases/json/essential_data.json
Expand Up @@ -2438,6 +2438,13 @@
"sql_release": "20181018",
"sql_statement": "ALTER TABLE `si_invoices` ADD `sales_representative` VARCHAR(50) DEFAULT '' NOT NULL;",
"source": "fearless359"
},
{
"sql_patch_ref": "304",
"sql_patch": "Add default_invoice field to the customers table.",
"sql_release": "20181020",
"sql_statement": "ALTER TABLE `si_customers` ADD `default_invoice` INT(10) UNSIGNED DEFAULT 0 NOT NULL COMMENT 'Invoice index_id value to use as the default template' AFTER `notes`;",
"source": "fearless359"
}
],
"si_system_defaults": [
Expand Down
710 changes: 355 additions & 355 deletions databases/json/sample_data.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion databases/mysql/Full_Simple_Invoices.sql
Expand Up @@ -720,7 +720,8 @@ INSERT INTO `si_sql_patchmanager`(`sql_patch_ref`,`sql_patch`,`sql_release`,`sql
,(300,'Add install complete table.','20181008','CREATE TABLE `si_install_complete` (`completed` tinyint(1) NOT NULL COMMENT "Flag SI install has completed") ENGINE=InnoDB COMMENT="Specifies an allowed setting for a flag field"','fearless359')
,(301,'Add last_activity_date, aging_date and aging_value to invoices.','20181012','ALTER TABLE `si_invoices` ADD `last_activity_date` DATE NULL COMMENT "Date last activity update to the invoice", ADD `aging_date` DATE NULL COMMENT "Date aging was last calculated", ADD `age_days` SMALLINT(5) UNSIGNED DEFAULT 0 NOT NULL COMMENT "Age of invoice balance"','fearless359')
,(302,'Added owing to invoices table','20181017','ALTER TABLE `si_invoices` ADD COLUMN `owing` DECIMAL(25,6) DEFAULT 0 NOT NULL COMMENT "Amount owing as of aging-date" AFTER "note"; UPDATE `si_invoices` SET owing = 1;', 'fearless359')
,(303,'Add invoice custom field report extension to standard application and add sales_representative field.','20181018','ALTER TABLE `si_invoices` ADD `sales_representative` VARCHAR(50) DEFAULT "" NOT NULL;', 'fearless359');
,(303,'Add invoice custom field report extension to standard application and add sales_representative field.','20181018','ALTER TABLE `si_invoices` ADD `sales_representative` VARCHAR(50) DEFAULT "" NOT NULL;', 'fearless359')
,(304,'Add default_invoice field to the customers table.','20181020','ALTER TABLE `si_customers` ADD `default_invoice` INT(10) UNSIGNED DEFAULT 0 NOT NULL COMMENT "Invoice index_id value to use as the default template" AFTER `notes`;', 'fearless359');

CREATE TABLE IF NOT EXISTS `si_system_defaults` (
`id` int(11) NOT NULL AUTO_INCREMENT,
Expand Down
1 change: 1 addition & 0 deletions databases/mysql/structure.sql
Expand Up @@ -72,6 +72,7 @@ CREATE TABLE `si_customers` (
`credit_card_expiry_month` varchar(2) COLLATE utf8_unicode_ci DEFAULT NULL,
`credit_card_expiry_year` varchar(4) COLLATE utf8_unicode_ci DEFAULT NULL,
`notes` text COLLATE utf8_unicode_ci,
`default_invoice` int(10) UNSIGNED NOT NULL DEFAULT '0' COMMENT 'Invoice index_id value to use as the default template',
`custom_field1` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`custom_field2` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`custom_field3` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
Expand Down
102 changes: 57 additions & 45 deletions documentation/en-us/general/change_log.php

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion extensions/default_invoice/DESCRIPTION

This file was deleted.

41 changes: 0 additions & 41 deletions extensions/default_invoice/README

This file was deleted.

9 changes: 0 additions & 9 deletions extensions/default_invoice/lang/en_US/lang.php

This file was deleted.

49 changes: 0 additions & 49 deletions extensions/default_invoice/modules/customers/manage.js.php

This file was deleted.

178 changes: 0 additions & 178 deletions extensions/default_invoice/modules/customers/xml.php

This file was deleted.

57 changes: 0 additions & 57 deletions extensions/default_invoice/modules/invoices/details.php

This file was deleted.

0 comments on commit 1eb45f1

Please sign in to comment.