supports adding conclusions.

This commit is contained in:
Bryce Covert
2019-05-12 09:04:26 -07:00
parent 067fff8588
commit 2146073df8
5 changed files with 192 additions and 76 deletions

View File

@@ -47,7 +47,14 @@
:serialize (schema/as-conformer #(if (double? %)
(str %)
%))
}}
}
:percentage {:parse (schema/as-conformer #(if (and (string? %)
(not (str/blank? %)))
(Double/parseDouble %)
%))
:serialize (schema/as-conformer #(if (double? %)
(str %)
%))}}
:objects
{
:client
@@ -193,7 +200,8 @@
:amount_gte {:type 'String}
:dom_lte {:type 'Int}
:dom_gte {:type 'Int}
:vendor {:type :vendor}}}
:vendor {:type :vendor}
:accounts {:type '(list :percentage_account)}}}
:invoice_payment
{:fields {:id {:type :id}
@@ -226,6 +234,11 @@
:amount {:type 'String}}}
:percentage_account
{:fields {:id {:type :id}
:account {:type :account}
:location {:type 'String}
:percentage {:type :percentage}}}
:invoice
{:fields {:id {:type :id}
:original_id {:type 'Int}
@@ -507,6 +520,12 @@
:vendor_id {:type :id}
:accounts {:type '(list :edit_expense_account)}}}
:edit_percentage_account
{:fields {:id {:type :id}
:account_id {:type :id}
:location {:type 'String}
:percentage {:type :percentage}}}
:edit_transaction_rule
{:fields {:id {:type :id}
:description {:type 'String}
@@ -516,7 +535,9 @@
:amount_lte {:type :money}
:amount_gte {:type :money}
:dom_lte {:type 'Int}
:dom_gte {:type 'Int}}}
:dom_gte {:type 'Int}
:vendor_id {:type :id}
:accounts {:type '(list :edit_percentage_account)}}}
:edit_account
{:fields {:id {:type :id}