adds due date column.
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -508,6 +508,12 @@
|
|||||||
:show-starting "lg"
|
:show-starting "lg"
|
||||||
:render (fn [{:invoice/keys [date]}]
|
:render (fn [{:invoice/keys [date]}]
|
||||||
(some-> date (atime/unparse-local atime/normal-date)))}
|
(some-> date (atime/unparse-local atime/normal-date)))}
|
||||||
|
{:key "due"
|
||||||
|
:sort-key "due"
|
||||||
|
:name "Due"
|
||||||
|
:show-starting "xl" ;; xl:table-cell
|
||||||
|
:render (fn [{:invoice/keys [due]}]
|
||||||
|
(some-> due (atime/unparse-local atime/normal-date)))}
|
||||||
{:key "status"
|
{:key "status"
|
||||||
:name "Status"
|
:name "Status"
|
||||||
:render (fn [{:invoice/keys [status]}]
|
:render (fn [{:invoice/keys [status]}]
|
||||||
|
|||||||
@@ -586,44 +586,51 @@
|
|||||||
|
|
||||||
(defn index-solr
|
(defn index-solr
|
||||||
[]
|
[]
|
||||||
|
(println "invoice")
|
||||||
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
||||||
:in $
|
:in $
|
||||||
:where [?i :invoice/invoice-number]
|
:where [?i :invoice/invoice-number]
|
||||||
(not [?i :invoice/status :invoice-status/voided])]
|
(not [?i :invoice/status :invoice-status/voided])]
|
||||||
:args [(dc/db conn)]})
|
:args [(dc/db conn)]})
|
||||||
(map first)
|
(map first)
|
||||||
(partition-all 1000))]
|
(partition-all 500))]
|
||||||
(print ".")
|
(print ".")
|
||||||
(flush)
|
(flush)
|
||||||
(solr/index-documents solr/impl "invoices" batch))
|
(solr/index-documents solr/impl "invoices" batch))
|
||||||
|
(println)
|
||||||
|
|
||||||
|
(println "payment")
|
||||||
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
||||||
:in $
|
:in $
|
||||||
:where [?i :payment/date]
|
:where [?i :payment/date]
|
||||||
(not [?i :payment/status :payment-status/voided])]
|
(not [?i :payment/status :payment-status/voided])]
|
||||||
:args [(dc/db conn)]})
|
:args [(dc/db conn)]})
|
||||||
(map first)
|
(map first)
|
||||||
(partition-all 1000))]
|
(partition-all 500))]
|
||||||
(print ".")
|
(print ".")
|
||||||
(flush)
|
(flush)
|
||||||
(solr/index-documents solr/impl "invoices" batch))
|
(solr/index-documents solr/impl "invoices" batch))
|
||||||
|
(println)
|
||||||
|
|
||||||
|
(println "trans")
|
||||||
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
||||||
:in $
|
:in $
|
||||||
:where [?i :transaction/description-original]
|
:where [?i :transaction/description-original]
|
||||||
(not [?i :transaction/approval-status :transaction-approval-status/suppressed])]
|
(not [?i :transaction/approval-status :transaction-approval-status/suppressed])]
|
||||||
:args [(dc/db conn)]})
|
:args [(dc/db conn)]})
|
||||||
(map first)
|
(map first)
|
||||||
(partition-all 1000))]
|
(partition-all 500))]
|
||||||
(print ".")
|
(print ".")
|
||||||
(flush)
|
(flush)
|
||||||
(solr/index-documents solr/impl "invoices" batch))
|
(solr/index-documents solr/impl "invoices" batch))
|
||||||
|
(println)
|
||||||
|
(println "journal")
|
||||||
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
(doseq [batch (->> (dc/qseq {:query '[:find ?i
|
||||||
:in $
|
:in $
|
||||||
:where [?i :journal-entry/date]]
|
:where [?i :journal-entry/date]]
|
||||||
:args [(dc/db conn)]})
|
:args [(dc/db conn)]})
|
||||||
(map first)
|
(map first)
|
||||||
(partition-all 1000))]
|
(partition-all 500))]
|
||||||
(print ".")
|
(print ".")
|
||||||
(flush)
|
(flush)
|
||||||
(solr/index-documents solr/impl "invoices" batch)))
|
(solr/index-documents solr/impl "invoices" batch)))
|
||||||
|
|||||||
Reference in New Issue
Block a user