supports adding conclusions.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user