sales tax

This commit is contained in:
2026-05-31 12:33:36 -05:00
parent 247219659d
commit b32fa96b79
7 changed files with 648 additions and 3 deletions

View File

@@ -356,6 +356,36 @@ CREATE TABLE public.settings (
ALTER TABLE public.settings OWNER TO quoteuser;
--
-- Name: sales_tax_periods; Type: TABLE; Schema: public; Owner: quoteuser
--
CREATE TABLE public.sales_tax_periods (
id serial NOT NULL,
period_start date NOT NULL,
period_end date NOT NULL,
total_sales numeric(10,2),
nontaxable_sales numeric(10,2),
taxable_sales numeric(10,2),
tax_collected numeric(10,2),
adjustment_amount numeric(10,2) DEFAULT 0,
adjustment_reason text,
adjustment_account_id character varying(50),
adjustment_account_name character varying(200),
net_paid numeric(10,2),
bank_account_id character varying(50),
bank_account_name character varying(200),
sales_tax_payable_id character varying(50),
sales_tax_payable_name character varying(200),
qbo_journal_entry_id character varying(50),
booked_at timestamp without time zone,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
CONSTRAINT sales_tax_periods_period_start_period_end_key UNIQUE (period_start, period_end)
);
ALTER TABLE public.sales_tax_periods OWNER TO quoteuser;
--
-- Name: customers id; Type: DEFAULT; Schema: public; Owner: quoteuser
--