(ns auto-ap.db.invoices
  (:require [auto-ap.db.utils :refer [clj->db kebab->snake db->clj get-conn query] :as utils]
            [auto-ap.parse :as parse]
            [auto-ap.db.companies :as companies]
            [auto-ap.db.invoices-checks :as invoices-checks]
            [auto-ap.db.vendors :as vendors]
            [clojure.java.jdbc :as j]
            [clojure.string :as str]
            [honeysql.core :as sql]
            [honeysql.helpers :as helpers]))

(def all-keys #{:company-id :vendor-id :imported :potential-duplicate :total :invoice-number :date :outstanding-balance :default-location :default-expense-account})


(def base-query (sql/build :select :invoices.*
                           :from :invoices))


(defn get-all []
  (query base-query))

