This commit is contained in:
Andreas Knuth 2026-02-02 13:44:29 -06:00
parent 73e81442cc
commit 5e46fa06f1
6 changed files with 1156 additions and 753 deletions

View File

@ -33,6 +33,7 @@ services:
DB_NAME: quotes_db
volumes:
- ./public/uploads:/app/public/uploads
- ./templates:/app/templates # NEU!
depends_on:
postgres:
condition: service_healthy

321
prod_backup.sql Normal file
View File

@ -0,0 +1,321 @@
--
-- PostgreSQL database dump
--
\restrict bxGU7dQ4DrNrHU2OuyEH16NHE6ZA8yFm2MADa6p2XI8qbowdWdtlaDeKSSp2NYx
-- Dumped from database version 15.15
-- Dumped by pg_dump version 15.15
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
SET default_tablespace = '';
SET default_table_access_method = heap;
--
-- Name: customers; Type: TABLE; Schema: public; Owner: quoteuser
--
CREATE TABLE public.customers (
id integer NOT NULL,
name character varying(255) NOT NULL,
street character varying(255) NOT NULL,
city character varying(100) NOT NULL,
state character varying(2) NOT NULL,
zip_code character varying(10) NOT NULL,
account_number character varying(50),
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);
ALTER TABLE public.customers OWNER TO quoteuser;
--
-- Name: customers_id_seq; Type: SEQUENCE; Schema: public; Owner: quoteuser
--
CREATE SEQUENCE public.customers_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.customers_id_seq OWNER TO quoteuser;
--
-- Name: customers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quoteuser
--
ALTER SEQUENCE public.customers_id_seq OWNED BY public.customers.id;
--
-- Name: quote_items; Type: TABLE; Schema: public; Owner: quoteuser
--
CREATE TABLE public.quote_items (
id integer NOT NULL,
quote_id integer,
quantity character varying(20) NOT NULL,
description text NOT NULL,
rate character varying(50) NOT NULL,
amount character varying(50) NOT NULL,
is_tbd boolean DEFAULT false,
item_order integer NOT NULL,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);
ALTER TABLE public.quote_items OWNER TO quoteuser;
--
-- Name: quote_items_id_seq; Type: SEQUENCE; Schema: public; Owner: quoteuser
--
CREATE SEQUENCE public.quote_items_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.quote_items_id_seq OWNER TO quoteuser;
--
-- Name: quote_items_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quoteuser
--
ALTER SEQUENCE public.quote_items_id_seq OWNED BY public.quote_items.id;
--
-- Name: quotes; Type: TABLE; Schema: public; Owner: quoteuser
--
CREATE TABLE public.quotes (
id integer NOT NULL,
quote_number character varying(50) NOT NULL,
customer_id integer,
quote_date date NOT NULL,
tax_exempt boolean DEFAULT false,
tax_rate numeric(5,2) DEFAULT 8.25,
subtotal numeric(10,2) DEFAULT 0,
tax_amount numeric(10,2) DEFAULT 0,
total numeric(10,2) DEFAULT 0,
has_tbd boolean DEFAULT false,
tbd_note text,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP
);
ALTER TABLE public.quotes OWNER TO quoteuser;
--
-- Name: quotes_id_seq; Type: SEQUENCE; Schema: public; Owner: quoteuser
--
CREATE SEQUENCE public.quotes_id_seq
AS integer
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE public.quotes_id_seq OWNER TO quoteuser;
--
-- Name: quotes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: quoteuser
--
ALTER SEQUENCE public.quotes_id_seq OWNED BY public.quotes.id;
--
-- Name: customers id; Type: DEFAULT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.customers ALTER COLUMN id SET DEFAULT nextval('public.customers_id_seq'::regclass);
--
-- Name: quote_items id; Type: DEFAULT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quote_items ALTER COLUMN id SET DEFAULT nextval('public.quote_items_id_seq'::regclass);
--
-- Name: quotes id; Type: DEFAULT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quotes ALTER COLUMN id SET DEFAULT nextval('public.quotes_id_seq'::regclass);
--
-- Data for Name: customers; Type: TABLE DATA; Schema: public; Owner: quoteuser
--
COPY public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) FROM stdin;
1 Braselton Development 5337 Yorktown Blvd. Suite 10-D Corpus Christi TX 78414 3617790060 2026-01-22 01:09:30.914655 2026-01-22 01:09:30.914655
2 Karen Menn 5134 Graford Place Corpus Christi TX 78413 3619933550 2026-01-22 01:19:49.357044 2026-01-22 01:49:16.051712
3 Hearing Aid Company of Texas 6468 Holly Road Corpus Christi TX 78412 3618143487 2026-01-22 03:33:56.090479 2026-01-22 03:33:56.090479
4 South Shore Christian Church 4710 S. Alameda Corpus Christi TX 78412 3619926391 2026-01-22 03:40:33.012646 2026-01-22 03:40:33.012646
5 JE Construction Services, LLC 7505 Up River Road Corpus Christi TX 78409 3612892901 2026-01-22 03:41:08.716604 2026-01-22 03:41:08.716604
6 John T. Thompson, DDS 4101 US-77 Corpus Christi TX 78410 3612423151 2026-01-30 20:50:22.987565 2026-01-30 21:06:23.354743
\.
--
-- Data for Name: quote_items; Type: TABLE DATA; Schema: public; Owner: quoteuser
--
COPY public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) FROM stdin;
26 5 1 <p>HPE ProLiant MicroServer Gen11 Ultra Micro Tower Server - 1 x Intel Xeon E-2414, 32 GB DDR5 RAM</p> 1900 1900.00 f 0 2026-01-22 18:02:30.878526
27 5 2 <p>Western Digital 24TB WD Red Pro NAS Internal Hard Drive HDD</p> 850 1700.00 f 1 2026-01-22 18:02:30.878526
28 5 1 <ul><li>Off-site installation and base configuration of the TrueNAS system</li><li>Creation of storage pools, datasets, and network shares as specified\n</li><li>Configuration of users, user groups, and access permissions\nSetup of automated snapshots with defined retention and rollback capability\n</li><li>Configuration of cloud backups to iDrive360\nSetup of system monitoring and email notifications for proactive issue detection\n</li><li>Installation and configuration of AOMEI Backup on selected desktops and laptops, storing backups on designated TrueNAS shares</li></ul> 2250 2250.00 f 2 2026-01-22 18:02:30.878526
44 1 1 <ul><li>Dell OptiPlex 7010 SFF Desktop Intel Core i5-13600,14 Cores</li><li>16GB</li><li>Windows 11 Pro</li><li>Crucial - P310 2TB Internal SSD PCIe Gen 4 x4 NVMe M.2</li></ul> 1079 1079.00 f 0 2026-01-22 18:51:00.998206
45 1 1 <p>DisplayPort to HDMI cable 10ft</p> 20 20.00 f 1 2026-01-22 18:51:00.998206
46 1 3 <p>Setup and configure Dell OptiPlex 7010 off-site\nInstall all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network\nTransferred data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. \nSetup printing and scanning as required. Install customer requested software.Test all hardware for proper Operation</p> 125 375.00 f 2 2026-01-22 18:51:00.998206
47 2 1 <p>Lenovo Yoga 7 82YN 16" i5-1335U 1.3GHz 16GB RAM 512GB SSD</p> 500 500.00 f 0 2026-01-22 18:54:57.288474
48 2 2 <p>Setup and configure Lenovo yoga 7 82YN 16" i5-1335U 1.3GHz 16GB RAM 512GB SSD off-site. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Transferred data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p> 125 250.00 f 1 2026-01-22 18:54:57.288474
49 4 1 <ul><li>Dell OptiPlex 7020 Plus Tower Desktop PC Core i7-14700 </li><li>32GB DDR5 RAM, </li><li>2 TB SSD M.2 PCIe Gen4 TLC, </li><li>NVIDIA® GeForce RTX 5050</li></ul> 2080 2080.00 f 0 2026-01-22 20:00:28.631846
50 4 2 <p>Setup and configure Lenovo Yoga as needed. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Transfer data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p> 125 250.00 f 1 2026-01-22 20:00:28.631846
59 3 3 <ul><li><strong>Lenovo </strong>ThinkPad P16s Mobile Workstation</li><li><strong>Processor:</strong> Intel® Core Ultra 7 155H</li><li><strong>Graphics Card:</strong> NVIDIA RTX 500 Ada Generation Laptop GPU, <strong>4 GB GDDR6</strong></li><li><strong>Memory: 64 GB DDR5-5600 MT/s</strong></li><li><strong>Storage: 1 TB SSD</strong> M.2 2280 PCIe Gen4&nbsp;</li><li><strong>Display: </strong>16" &nbsp;WQUXGA (3840 × 2400) OLED</li><li><strong>Operating System:</strong> Windows 11 Pro 64-bit</li><li><strong>1 Year Warranty</strong></li><li><strong>(This device is new, not refurbished)</strong></li></ul> 1949 5847.00 f 0 2026-01-26 18:41:05.501558
60 3 <p>Setup and configure Lenovo Laptops as needed. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p> 125 TBD t 1 2026-01-26 18:41:05.501558
74 7 1 <p>Dell Optiplex 7010 (or similar) Tower configured with Intel Core i5-13500 processor, 16GB RAM, 512GB solid state drive and Windows 11 Professional. Refurbished with a one year warranty.\t</p> 725.00 725.00 f 0 2026-01-30 21:04:38.661279
75 7 3 <p>Delivery and installation of Dell Tower PC. Setup on local network and install requested software. Install and configure local and network printers. Transfer requested data from existing PC and verify proper operation of all hardware. </p><p><br></p><p>Microsoft Office (if required) is not included in this quote.</p> 125 375.00 f 1 2026-01-30 21:04:38.661279
76 6 1 <ul><li>Dell Tower Computer configured with Intel Core Ultra 5 235 processor, 16GB RAM, 512GB SSD and Windows 11 Professional. New with One Year Warranty.</li></ul> 1325.00 1325.00 f 0 2026-01-30 21:07:26.820637
77 6 3 <p>Delivery and installation of new Dell Tower PC. Setup on local network and install requested software. Install and configure local and network printers. Transfer requested data from existing PC and verify proper operation of all hardware. </p><p><br></p><p>Microsoft Office (if required) is not included in this quote.</p> 125.00 375.00 f 1 2026-01-30 21:07:26.820637
\.
--
-- Data for Name: quotes; Type: TABLE DATA; Schema: public; Owner: quoteuser
--
COPY public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) FROM stdin;
5 2026-01-0005 5 2026-01-22 f 8.25 5850.00 482.63 6332.63 f 2026-01-22 16:28:42.374654 2026-01-22 18:02:30.878526
1 2026-01-0001 2 2026-01-22 f 8.25 1474.00 121.61 1595.61 f 2026-01-22 01:34:06.558046 2026-01-22 18:51:00.998206
2 2026-01-0002 3 2026-01-22 f 8.25 750.00 61.88 811.88 f 2026-01-22 03:35:15.021729 2026-01-22 18:54:57.288474
4 2026-01-0004 4 2026-01-22 f 8.25 2330.00 192.23 2522.23 f 2026-01-22 03:45:56.686598 2026-01-22 20:00:28.631846
3 2026-01-0003 1 2026-01-26 f 8.25 5847.00 482.38 6329.38 t Total excludes labor charges which will be determined based on actual time required. 2026-01-22 03:36:47.795674 2026-01-26 18:41:05.501558
7 2026-01-0007 6 2026-01-30 f 8.25 1100.00 90.75 1190.75 f 2026-01-30 21:01:43.538202 2026-01-30 21:04:38.661279
6 2026-01-0006 6 2026-01-30 f 8.25 1700.00 140.25 1840.25 f 2026-01-30 20:58:23.014874 2026-01-30 21:07:26.820637
\.
--
-- Name: customers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--
SELECT pg_catalog.setval('public.customers_id_seq', 6, true);
--
-- Name: quote_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--
SELECT pg_catalog.setval('public.quote_items_id_seq', 77, true);
--
-- Name: quotes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--
SELECT pg_catalog.setval('public.quotes_id_seq', 7, true);
--
-- Name: customers customers_pkey; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.customers
ADD CONSTRAINT customers_pkey PRIMARY KEY (id);
--
-- Name: quote_items quote_items_pkey; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quote_items
ADD CONSTRAINT quote_items_pkey PRIMARY KEY (id);
--
-- Name: quotes quotes_pkey; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quotes
ADD CONSTRAINT quotes_pkey PRIMARY KEY (id);
--
-- Name: quotes quotes_quote_number_key; Type: CONSTRAINT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quotes
ADD CONSTRAINT quotes_quote_number_key UNIQUE (quote_number);
--
-- Name: idx_quote_items_quote_id; Type: INDEX; Schema: public; Owner: quoteuser
--
CREATE INDEX idx_quote_items_quote_id ON public.quote_items USING btree (quote_id);
--
-- Name: idx_quotes_customer_id; Type: INDEX; Schema: public; Owner: quoteuser
--
CREATE INDEX idx_quotes_customer_id ON public.quotes USING btree (customer_id);
--
-- Name: idx_quotes_quote_number; Type: INDEX; Schema: public; Owner: quoteuser
--
CREATE INDEX idx_quotes_quote_number ON public.quotes USING btree (quote_number);
--
-- Name: quote_items quote_items_quote_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quote_items
ADD CONSTRAINT quote_items_quote_id_fkey FOREIGN KEY (quote_id) REFERENCES public.quotes(id) ON DELETE CASCADE;
--
-- Name: quotes quotes_customer_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: quoteuser
--
ALTER TABLE ONLY public.quotes
ADD CONSTRAINT quotes_customer_id_fkey FOREIGN KEY (customer_id) REFERENCES public.customers(id);
--
-- PostgreSQL database dump complete
--
\unrestrict bxGU7dQ4DrNrHU2OuyEH16NHE6ZA8yFm2MADa6p2XI8qbowdWdtlaDeKSSp2NYx

102
prod_data_only.sql Normal file
View File

@ -0,0 +1,102 @@
--
-- PostgreSQL database dump
--
\restrict KCbrUeHdJ7srnFlBFWbQWdZ6A6bdMlTKPXbmEoc5qE3gaNBouFxTyfvdD9oETV4
-- Dumped from database version 15.15
-- Dumped by pg_dump version 15.15
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false);
SET check_function_bodies = false;
SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;
--
-- Data for Name: customers; Type: TABLE DATA; Schema: public; Owner: quoteuser
--
INSERT INTO public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) VALUES (1, 'Braselton Development', '5337 Yorktown Blvd. Suite 10-D', 'Corpus Christi', 'TX', '78414', '3617790060', '2026-01-22 01:09:30.914655', '2026-01-22 01:09:30.914655');
INSERT INTO public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) VALUES (2, 'Karen Menn', '5134 Graford Place', 'Corpus Christi', 'TX', '78413', '3619933550', '2026-01-22 01:19:49.357044', '2026-01-22 01:49:16.051712');
INSERT INTO public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) VALUES (3, 'Hearing Aid Company of Texas', '6468 Holly Road', 'Corpus Christi', 'TX', '78412', '3618143487', '2026-01-22 03:33:56.090479', '2026-01-22 03:33:56.090479');
INSERT INTO public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) VALUES (4, 'South Shore Christian Church', '4710 S. Alameda', 'Corpus Christi', 'TX', '78412', '3619926391', '2026-01-22 03:40:33.012646', '2026-01-22 03:40:33.012646');
INSERT INTO public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) VALUES (5, 'JE Construction Services, LLC', '7505 Up River Road', 'Corpus Christi', 'TX', '78409', '3612892901', '2026-01-22 03:41:08.716604', '2026-01-22 03:41:08.716604');
INSERT INTO public.customers (id, name, street, city, state, zip_code, account_number, created_at, updated_at) VALUES (6, 'John T. Thompson, DDS', '4101 US-77', 'Corpus Christi', 'TX', '78410', '3612423151', '2026-01-30 20:50:22.987565', '2026-01-30 21:06:23.354743');
--
-- Data for Name: quotes; Type: TABLE DATA; Schema: public; Owner: quoteuser
--
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (5, '2026-01-0005', 5, '2026-01-22', false, 8.25, 5850.00, 482.63, 6332.63, false, '', '2026-01-22 16:28:42.374654', '2026-01-22 18:02:30.878526');
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (1, '2026-01-0001', 2, '2026-01-22', false, 8.25, 1474.00, 121.61, 1595.61, false, '', '2026-01-22 01:34:06.558046', '2026-01-22 18:51:00.998206');
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (2, '2026-01-0002', 3, '2026-01-22', false, 8.25, 750.00, 61.88, 811.88, false, '', '2026-01-22 03:35:15.021729', '2026-01-22 18:54:57.288474');
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (4, '2026-01-0004', 4, '2026-01-22', false, 8.25, 2330.00, 192.23, 2522.23, false, '', '2026-01-22 03:45:56.686598', '2026-01-22 20:00:28.631846');
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (3, '2026-01-0003', 1, '2026-01-26', false, 8.25, 5847.00, 482.38, 6329.38, true, 'Total excludes labor charges which will be determined based on actual time required.', '2026-01-22 03:36:47.795674', '2026-01-26 18:41:05.501558');
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (7, '2026-01-0007', 6, '2026-01-30', false, 8.25, 1100.00, 90.75, 1190.75, false, '', '2026-01-30 21:01:43.538202', '2026-01-30 21:04:38.661279');
INSERT INTO public.quotes (id, quote_number, customer_id, quote_date, tax_exempt, tax_rate, subtotal, tax_amount, total, has_tbd, tbd_note, created_at, updated_at) VALUES (6, '2026-01-0006', 6, '2026-01-30', false, 8.25, 1700.00, 140.25, 1840.25, false, '', '2026-01-30 20:58:23.014874', '2026-01-30 21:07:26.820637');
--
-- Data for Name: quote_items; Type: TABLE DATA; Schema: public; Owner: quoteuser
--
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (26, 5, '1', '<p>HPE ProLiant MicroServer Gen11 Ultra Micro Tower Server - 1 x Intel Xeon E-2414, 32 GB DDR5 RAM</p>', '1900', '1900.00', false, 0, '2026-01-22 18:02:30.878526');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (27, 5, '2', '<p>Western Digital 24TB WD Red Pro NAS Internal Hard Drive HDD</p>', '850', '1700.00', false, 1, '2026-01-22 18:02:30.878526');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (28, 5, '1', '<ul><li>Off-site installation and base configuration of the TrueNAS system</li><li>Creation of storage pools, datasets, and network shares as specified
</li><li>Configuration of users, user groups, and access permissions
Setup of automated snapshots with defined retention and rollback capability
</li><li>Configuration of cloud backups to iDrive360
Setup of system monitoring and email notifications for proactive issue detection
</li><li>Installation and configuration of AOMEI Backup on selected desktops and laptops, storing backups on designated TrueNAS shares</li></ul>', '2250', '2250.00', false, 2, '2026-01-22 18:02:30.878526');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (44, 1, '1', '<ul><li>Dell OptiPlex 7010 SFF Desktop Intel Core i5-13600,14 Cores</li><li>16GB</li><li>Windows 11 Pro</li><li>Crucial - P310 2TB Internal SSD PCIe Gen 4 x4 NVMe M.2</li></ul>', '1079', '1079.00', false, 0, '2026-01-22 18:51:00.998206');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (45, 1, '1', '<p>DisplayPort to HDMI cable 10ft</p>', '20', '20.00', false, 1, '2026-01-22 18:51:00.998206');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (46, 1, '3', '<p>Setup and configure Dell OptiPlex 7010 off-site
Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network
Transferred data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites.
Setup printing and scanning as required. Install customer requested software.Test all hardware for proper Operation</p>', '125', '375.00', false, 2, '2026-01-22 18:51:00.998206');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (47, 2, '1', '<p>Lenovo Yoga 7 82YN 16" i5-1335U 1.3GHz 16GB RAM 512GB SSD</p>', '500', '500.00', false, 0, '2026-01-22 18:54:57.288474');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (48, 2, '2', '<p>Setup and configure Lenovo yoga 7 82YN 16" i5-1335U 1.3GHz 16GB RAM 512GB SSD off-site. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Transferred data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p>', '125', '250.00', false, 1, '2026-01-22 18:54:57.288474');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (49, 4, '1', '<ul><li>Dell OptiPlex 7020 Plus Tower Desktop PC Core i7-14700 </li><li>32GB DDR5 RAM, </li><li>2 TB SSD M.2 PCIe Gen4 TLC, </li><li>NVIDIA® GeForce RTX™ 5050</li></ul>', '2080', '2080.00', false, 0, '2026-01-22 20:00:28.631846');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (50, 4, '2', '<p>Setup and configure Lenovo Yoga as needed. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Transfer data from old computer including desktop items, documents, downloads, pictures, videos, browser bookmarks and favorites. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p>', '125', '250.00', false, 1, '2026-01-22 20:00:28.631846');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (59, 3, '3', '<ul><li><strong>Lenovo </strong>ThinkPad P16s Mobile Workstation</li><li><strong>Processor:</strong> Intel® Core™ Ultra 7 155H</li><li><strong>Graphics Card:</strong> NVIDIA RTX™ 500 Ada Generation Laptop GPU, <strong>4 GB GDDR6</strong></li><li><strong>Memory: 64 GB DDR5-5600 MT/s</strong></li><li><strong>Storage: 1 TB SSD</strong> M.2 2280 PCIe Gen4&nbsp;</li><li><strong>Display: </strong>16" &nbsp;WQUXGA (3840 × 2400) OLED</li><li><strong>Operating System:</strong> Windows 11 Pro 64-bit</li><li><strong>1 Year Warranty</strong></li><li><strong>(This device is new, not refurbished)</strong></li></ul>', '1949', '5847.00', false, 0, '2026-01-26 18:41:05.501558');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (60, 3, '', '<p>Setup and configure Lenovo Laptops as needed. Install all Lenovo drivers and latest Windows updates. Deliver to site and setup on local network. Setup printing and scanning as required. Install customer requested software. Test all hardware for proper operation.</p>', '125', 'TBD', true, 1, '2026-01-26 18:41:05.501558');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (74, 7, '1', '<p>Dell Optiplex 7010 (or similar) Tower configured with Intel Core i5-13500 processor, 16GB RAM, 512GB solid state drive and Windows 11 Professional. Refurbished with a one year warranty. </p>', '725.00', '725.00', false, 0, '2026-01-30 21:04:38.661279');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (75, 7, '3', '<p>Delivery and installation of Dell Tower PC. Setup on local network and install requested software. Install and configure local and network printers. Transfer requested data from existing PC and verify proper operation of all hardware. </p><p><br></p><p>Microsoft Office (if required) is not included in this quote.</p>', '125', '375.00', false, 1, '2026-01-30 21:04:38.661279');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (76, 6, '1', '<ul><li>Dell Tower Computer configured with Intel Core Ultra 5 235 processor, 16GB RAM, 512GB SSD and Windows 11 Professional. New with One Year Warranty.</li></ul>', '1325.00', '1325.00', false, 0, '2026-01-30 21:07:26.820637');
INSERT INTO public.quote_items (id, quote_id, quantity, description, rate, amount, is_tbd, item_order, created_at) VALUES (77, 6, '3', '<p>Delivery and installation of new Dell Tower PC. Setup on local network and install requested software. Install and configure local and network printers. Transfer requested data from existing PC and verify proper operation of all hardware. </p><p><br></p><p>Microsoft Office (if required) is not included in this quote.</p>', '125.00', '375.00', false, 1, '2026-01-30 21:07:26.820637');
--
-- Name: customers_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--
SELECT pg_catalog.setval('public.customers_id_seq', 6, true);
--
-- Name: quote_items_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--
SELECT pg_catalog.setval('public.quote_items_id_seq', 77, true);
--
-- Name: quotes_id_seq; Type: SEQUENCE SET; Schema: public; Owner: quoteuser
--
SELECT pg_catalog.setval('public.quotes_id_seq', 7, true);
--
-- PostgreSQL database dump complete
--
\unrestrict KCbrUeHdJ7srnFlBFWbQWdZ6A6bdMlTKPXbmEoc5qE3gaNBouFxTyfvdD9oETV4

884
server.js

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,270 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 1.6;
color: #333;
}
.container {
max-width: 8.5in;
margin: 0 auto;
padding: 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid #333;
}
.company-info {
display: flex;
align-items: flex-start;
gap: 15px;
}
.logo {
width: 50px;
height: 50px;
}
.company-details h1 {
font-size: 16px;
font-weight: normal;
margin-bottom: 2px;
}
.company-details p {
font-size: 14px;
line-height: 1.4;
}
.tagline {
text-align: right;
font-style: italic;
font-size: 14px;
margin-bottom: 20px;
}
.contact-info {
text-align: right;
font-size: 13px;
line-height: 1.6;
}
.bill-to-section {
display: flex;
justify-content: space-between;
margin: 30px 0 40px 0;
}
.bill-to {
flex: 1;
}
.bill-to-label {
font-weight: bold;
margin-bottom: 5px;
}
.bill-to-address {
font-size: 14px;
line-height: 1.5;
}
.info-table {
border-collapse: collapse;
font-size: 13px;
margin-left: auto;
}
.info-table th {
background-color: #fff;
border: 1px solid #000;
padding: 8px;
font-weight: bold;
text-align: center;
}
.info-table td {
border: 1px solid #000;
padding: 8px;
text-align: center;
}
.items-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 13px;
}
.items-table th {
background-color: #fff;
border: 1px solid #000;
padding: 8px;
font-weight: bold;
text-align: center;
}
.items-table td {
border: 1px solid #000;
padding: 10px;
vertical-align: top;
}
.items-table td.qty {
text-align: center;
width: 60px;
}
.items-table td.description {
text-align: left;
}
.items-table td.description ul,
.items-table td.description ol {
margin: 5px 0;
padding-left: 20px;
}
.items-table td.description li {
margin: 2px 0;
}
.items-table td.description p {
margin: 5px 0;
}
.items-table td.description strong {
font-weight: bold;
}
.items-table td.description em {
font-style: italic;
}
.items-table td.description u {
text-decoration: underline;
}
.items-table td.rate,
.items-table td.amount {
text-align: right;
width: 100px;
}
.footer-row td {
border: 1px solid #000;
padding: 10px;
}
.total-label {
text-align: right;
font-size: 14px;
font-weight: bold;
padding-right: 20px !important;
}
.total-amount {
text-align: right;
font-size: 14px;
font-weight: bold;
}
.thank-you {
font-size: 13px;
}
.logo-size {
height: 40px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="company-info">
{{LOGO_HTML}}
<div class="company-details">
<h1>Bay Area Affiliates, Inc.</h1>
<p>1001 Blucher Street<br>
Corpus Christi, Texas 78401</p>
</div>
</div>
<div>
<div class="tagline">
<em>Providing IT Services and Support in South Texas Since 1996</em>
</div>
<div class="contact-info">
Phone:<br>
(361) 765-8400<br>
(361) 765-8401<br>
(361) 232-6578<br>
Email:<br>
accounting@bayarea-cc.com
</div>
</div>
</div>
<div class="bill-to-section">
<div class="bill-to">
<div class="bill-to-label">Bill To:</div>
<div class="bill-to-address">
{{CUSTOMER_NAME}}<br>
{{CUSTOMER_STREET}}<br>
{{CUSTOMER_CITY}}, {{CUSTOMER_STATE}} {{CUSTOMER_ZIP}}
</div>
</div>
<table class="info-table">
<thead>
<tr>
<th>INVOICE #</th>
<th>ACCOUNT NO.</th>
<th>DATE</th>
<th>TERMS</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{INVOICE_NUMBER}}</td>
<td>{{ACCOUNT_NUMBER}}</td>
<td>{{INVOICE_DATE}}</td>
<td>{{TERMS}}</td>
</tr>
</tbody>
</table>
</div>
{{AUTHORIZATION}}
<table class="items-table">
<thead>
<tr>
<th>QTY</th>
<th>DESCRIPTION</th>
<th>RATE</th>
<th>AMOUNT</th>
</tr>
</thead>
<tbody>
{{ITEMS}}
</tbody>
</table>
</div>
</body>
</html>

View File

@ -0,0 +1,267 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: Arial, sans-serif;
font-size: 14px;
line-height: 1.6;
color: #333;
}
.container {
max-width: 8.5in;
margin: 0 auto;
padding: 20px;
}
.header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 40px;
padding-bottom: 20px;
border-bottom: 2px solid #333;
}
.company-info {
display: flex;
align-items: flex-start;
gap: 15px;
}
.logo {
width: 50px;
height: 50px;
}
.company-details h1 {
font-size: 16px;
font-weight: normal;
margin-bottom: 2px;
}
.company-details p {
font-size: 14px;
line-height: 1.4;
}
.tagline {
text-align: right;
font-style: italic;
font-size: 14px;
margin-bottom: 20px;
}
.contact-info {
text-align: right;
font-size: 13px;
line-height: 1.6;
}
.bill-to-section {
display: flex;
justify-content: space-between;
margin: 30px 0 60px 0;
}
.bill-to {
flex: 1;
}
.bill-to-label {
font-weight: bold;
margin-bottom: 5px;
}
.bill-to-address {
font-size: 14px;
line-height: 1.5;
}
.info-table {
border-collapse: collapse;
font-size: 13px;
margin-left: auto;
}
.info-table th {
background-color: #fff;
border: 1px solid #000;
padding: 8px;
font-weight: bold;
text-align: center;
}
.info-table td {
border: 1px solid #000;
padding: 8px;
text-align: center;
}
.items-table {
width: 100%;
border-collapse: collapse;
margin: 20px 0;
font-size: 13px;
}
.items-table th {
background-color: #fff;
border: 1px solid #000;
padding: 8px;
font-weight: bold;
text-align: center;
}
.items-table td {
border: 1px solid #000;
padding: 10px;
vertical-align: top;
}
.items-table td.qty {
text-align: center;
width: 60px;
}
.items-table td.description {
text-align: left;
}
.items-table td.description ul,
.items-table td.description ol {
margin: 5px 0;
padding-left: 20px;
}
.items-table td.description li {
margin: 2px 0;
}
.items-table td.description p {
margin: 5px 0;
}
.items-table td.description strong {
font-weight: bold;
}
.items-table td.description em {
font-style: italic;
}
.items-table td.description u {
text-decoration: underline;
}
.items-table td.rate,
.items-table td.amount {
text-align: right;
width: 100px;
}
.footer-row td {
border: 1px solid #000;
padding: 10px;
}
.total-label {
text-align: right;
font-size: 14px;
font-weight: bold;
padding-right: 20px !important;
}
.total-amount {
text-align: right;
font-size: 14px;
font-weight: bold;
}
.thank-you {
font-size: 13px;
}
.logo-size {
height: 40px;
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="company-info">
{{LOGO_HTML}}
<div class="company-details">
<h1>Bay Area Affiliates, Inc.</h1>
<p>1001 Blucher Street<br>
Corpus Christi, Texas 78401</p>
</div>
</div>
<div>
<div class="tagline">
<em>Providing IT Services and Support in South Texas Since 1996</em>
</div>
<div class="contact-info">
Phone:<br>
(361) 765-8400<br>
(361) 765-8401<br>
(361) 232-6578<br>
Email:<br>
support@bayarea-cc.com
</div>
</div>
</div>
<div class="bill-to-section">
<div class="bill-to">
<div class="bill-to-label">Quote For:</div>
<div class="bill-to-address">
{{CUSTOMER_NAME}}<br>
{{CUSTOMER_STREET}}<br>
{{CUSTOMER_CITY}}, {{CUSTOMER_STATE}} {{CUSTOMER_ZIP}}
</div>
</div>
<table class="info-table">
<thead>
<tr>
<th>QUOTE #</th>
<th>ACCOUNT NO.</th>
<th>DATE</th>
</tr>
</thead>
<tbody>
<tr>
<td>{{QUOTE_NUMBER}}</td>
<td>{{ACCOUNT_NUMBER}}</td>
<td>{{QUOTE_DATE}}</td>
</tr>
</tbody>
</table>
</div>
<table class="items-table">
<thead>
<tr>
<th>QTY</th>
<th>DESCRIPTION</th>
<th>RATE</th>
<th>AMOUNT</th>
</tr>
</thead>
<tbody>
{{ITEMS}}
</tbody>
</table>
{{TBD_NOTE}}
</div>
</body>
</html>