uncategorized by default.

This commit is contained in:
Bryce Covert
2018-06-04 21:49:16 -07:00
parent d5ad915e16
commit 44fff9e88a
2 changed files with 5 additions and 1 deletions

View File

@@ -3,3 +3,6 @@
alter table vendors add column default_expense_account INT;
create table invoices_expense_accounts (id serial primary key, invoice_id int references invoices(id), expense_account_id int not null, amount decimal not null);
update vendors set default_expense_account = 0;

View File

@@ -1,7 +1,8 @@
(ns auto-ap.expense-accounts)
(def expense-accounts
{5110 {:name "Food Cost" :parent nil}
{0 {:name "Uncategorized" :parent nil}
5110 {:name "Food Cost" :parent nil}
5111 {:name "Proteins Cost" :parent 5110}
5112 {:name "Beef/ Pork Costs" :parent 5111}
5113 {:name "Chicken/ Poultry Costs" :parent 5111}