More test coverage, also found a bug where bulk voided invoices were not unvoidable
This commit is contained in:
@@ -43,7 +43,8 @@
|
||||
|
||||
(defn test-vendor [& kwargs]
|
||||
(apply assoc {:db/id "vendor-id"
|
||||
:vendor/name "Vendorson"}
|
||||
:vendor/name "Vendorson"
|
||||
:vendor/default-account "test-account-id"}
|
||||
kwargs))
|
||||
|
||||
(defn test-bank-account [& kwargs]
|
||||
@@ -75,7 +76,10 @@
|
||||
(apply assoc {:db/id "test-invoice-id"
|
||||
:invoice/date #inst "2022-01-01"
|
||||
:invoice/client "test-client-id"
|
||||
:invoice/status :invoice-status/unpaid
|
||||
:invoice/import-status :import-status/imported
|
||||
:invoice/total 100.0
|
||||
:invoice/outstanding-balance 100.00
|
||||
:invoice/vendor "test-vendor-id"
|
||||
:invoice/invoice-number (str "INVOICE " (rand-int 1000000))
|
||||
:invoice/expense-accounts [{:invoice-expense-account/account "test-account-id"
|
||||
|
||||
Reference in New Issue
Block a user