Skip to content

Commit

Permalink
added new entity for case accounts. issue #1955
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 14, 2023
1 parent 0dd6dbb commit bd61ad7
Show file tree
Hide file tree
Showing 8 changed files with 2,352 additions and 0 deletions.
Binary file modified j-lawyer-client/lib/j-lawyer-cloud/j-lawyer-cloud.jar
Binary file not shown.
1 change: 1 addition & 0 deletions j-lawyer-server-entities/src/conf/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<class>com.jdimension.jlawyer.persistence.InstantMessage</class>
<class>com.jdimension.jlawyer.persistence.InstantMessageMention</class>
<class>com.jdimension.jlawyer.persistence.EpostQueueBean</class>
<class>com.jdimension.jlawyer.persistence.CaseAccountEntry</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<!-- changed from update to validate to avoid deployment during an update installer run to create columns that will be added by a sql script later in the process -->
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
CREATE TABLE case_account_entries (
`id` VARCHAR(50) BINARY NOT NULL,
`entry_date` datetime default NULL,
`contact_id` VARCHAR(50) BINARY,
`case_id` VARCHAR(50) BINARY NOT NULL,
`invoice_id` VARCHAR(50) BINARY,
`description` VARCHAR(1500) BINARY,
`in_earnings` FLOAT DEFAULT 0,
`out_spendings` FLOAT DEFAULT 0,
`in_escrow` FLOAT DEFAULT 0,
`out_escrow` FLOAT DEFAULT 0,
`in_expenditure` FLOAT DEFAULT 0,
`out_expenditure` FLOAT DEFAULT 0,
CONSTRAINT `pk_caseaccounts` PRIMARY KEY (`id`),
FOREIGN KEY (contact_id) REFERENCES contacts(id) ON DELETE SET NULL,
FOREIGN KEY (case_id) REFERENCES cases(id) ON DELETE CASCADE,
FOREIGN KEY (invoice_id) REFERENCES invoices(id) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;


insert into server_settings(settingKey, settingValue) values('jlawyer.server.database.version','2.6.0.10') ON DUPLICATE KEY UPDATE settingValue = '2.6.0.10';
commit;
Binary file modified j-lawyer-server/j-lawyer-server-ejb/lib/j-lawyer-cloud.jar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
<class>com.jdimension.jlawyer.persistence.InstantMessage</class>
<class>com.jdimension.jlawyer.persistence.InstantMessageMention</class>
<class>com.jdimension.jlawyer.persistence.EpostQueueBean</class>
<class>com.jdimension.jlawyer.persistence.CaseAccountEntry</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
<!-- changed from update to validate to avoid deployment during an update installer run to create columns that will be added by a sql script later in the process -->
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit bd61ad7

Please sign in to comment.