(cloud) incremental rebuild of search indexes
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
it looks like there are a bbunch of orrphaned customizations for accounts, breaking indexes
|
||||
upsertledger - matching transaction rule might not assign an account. Other things might not assign accounts. This is an assertion that is commented out. Determine consequence of disabling
|
||||
Double check each job still functions in the new system
|
||||
Reconcile ledger. Does it work? What are the downsides? Can it be made faster now?
|
||||
Make reports just be based on running-balances
|
||||
When you add a vendor, it should be searchable immediately
|
||||
|
||||
Test exports
|
||||
|
||||
Some jobs just aren't so big they need to be jobs anymore:
|
||||
Refreshing running balance for journal entry lines
|
||||
@@ -70,3 +68,55 @@ Merge branch into master
|
||||
Rename prod-cloud to prod everywhere
|
||||
Release again
|
||||
git push deploy master
|
||||
|
||||
|
||||
|
||||
Fix ledger entries:
|
||||
(clojure.data.csv/write-csv
|
||||
*out*
|
||||
(->> (auto-ap.datomic/pull-many (dc/as-of (dc/db conn) #inst "2023-03-31T00:00:00") '[:invoice/date {:invoice/client [:client/code]
|
||||
:invoice/expense-accounts
|
||||
[{:invoice-expense-account/account [:account/name]}]
|
||||
:journal-entry/_original-entity [{:journal-entry/line-items [{:journal-entry-line/account [:account/name]}]}]}] (->> bad (map first)))
|
||||
(map (fn [i]
|
||||
[(-> i :invoice/client :client/code)
|
||||
(-> i :invoice/date clj-time.coerce/to-date-time (auto-ap.time/unparse auto-ap.time/iso-date))
|
||||
(-> i :invoice/expense-accounts first :invoice-expense-account/account :account/name)
|
||||
(-> i :journal-entry/_original-entity first :journal-entry/line-items
|
||||
(#(filter (fn [a] (not= "Accounts Payable" (:account/name (:journal-entry-line/account a)))) %))
|
||||
first :journal-entry-line/account :account/name)]))
|
||||
))
|
||||
|
||||
|
||||
BSG,2021-11-19,Advertising,Food Sales
|
||||
BSG,2021-08-26,Auto and Truck Expenses,Service or Pass Through Costs
|
||||
BSG,2021-12-01,Advertising,Design
|
||||
WGC,2021-03-01,Equipment 3,Kitchen Equipment
|
||||
WGC,2021-02-03,Equipment 3,Kitchen Equipment
|
||||
WGC,2020-12-14,Marketing Consultant,Website/ Social Media
|
||||
WGC,2020-12-10,Charitable Contributions,Promotional or Donation Meal Comps
|
||||
WGC,2020-12-15,Note Payable 3,Notes Payable - General
|
||||
WGC,2020-11-16,Note Payable 3,Notes Payable - General
|
||||
WGC,2020-11-05,Unassigned Expenses,Misc Payments
|
||||
WGC,2021-01-13,Marketing Consultant,Website/ Social Media
|
||||
WGC,2020-10-15,Note Payable 3,Notes Payable - General
|
||||
BSG,2021-07-20,Auto and Truck Expenses,Service or Pass Through Costs
|
||||
WGC,2021-02-12,Marketing Consultant,Website/ Social Media
|
||||
BSG,2021-12-22,Advertising,Food Sales
|
||||
BSG,2021-12-31,Advertising,Food Sales
|
||||
BSG,2021-06-15,Advertising,Design
|
||||
BSG,2021-12-14,Advertising,Food Sales
|
||||
BSG,2021-04-15,Advertising,Design
|
||||
WGC,2021-06-11,Marketing Consultant,Website/ Social Media
|
||||
BSG,2021-12-14,Food Cost,Meal Comps
|
||||
WGC,2021-08-05,Marketing Consultant,Website/ Social Media
|
||||
BSG,2021-09-30,Auto and Truck Expenses,Service or Pass Through Costs
|
||||
BSG,2021-08-25,Marketing,Marketing Consultant
|
||||
BSG,2021-12-03,Food Cost,Meal Comps
|
||||
BSG,2021-12-09,Food Cost,Meal Comps
|
||||
WGC,2021-10-08,Advertising,Website/ Social Media
|
||||
BSG,2021-12-09,Advertising,Food Sales
|
||||
WGC,2021-03-26,Equipment 3,Kitchen Equipment
|
||||
WGC,2021-03-26,Equipment 3,Kitchen Equipment
|
||||
BSG,2021-05-26,Advertising,Design
|
||||
WGC,2021-09-17,Advertising,Promotional or Donation Meal Comps
|
||||
|
||||
Reference in New Issue
Block a user