@company-six/qbosync 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +338 -325
- package/dist/client.d.ts +5 -3
- package/dist/client.js +5 -3
- package/package.json +44 -44
- package/sql/002_daily_report.sql +258 -258
- package/sql/003_daily_report_bills.sql +25 -25
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
-- The daily report keeps rows for bills and vendor credits too (SDK 0.5.1).
|
|
2
|
-
--
|
|
3
|
-
-- Run this once if your app ran sql/002_daily_report.sql before 0.5.1 and sends bills or vendor credits. Until then,
|
|
4
|
-
-- 002's check allowed only 'invoice' and 'credit_memo', so the first morning with a bill failed whole ("new row for
|
|
5
|
-
-- relation qbosync_report_rows violates check constraint qbosync_report_rows_type_check") and every later morning with
|
|
6
|
-
-- one did too. 002 itself now allows all four types, so an app that runs 002 from 0.5.1 on does not need this file;
|
|
7
|
-
-- running it anyway changes nothing. One transaction; re-running it is a no-op.
|
|
8
|
-
--
|
|
9
|
-
-- Found by Aztec's end-to-end run on 2026-11-16, the first app to send bills.
|
|
10
|
-
--
|
|
11
|
-
-- Undo (only while no bill or vendor credit row exists):
|
|
12
|
-
-- alter table public.qbosync_report_rows drop constraint qbosync_report_rows_type_check;
|
|
13
|
-
-- alter table public.qbosync_report_rows add constraint qbosync_report_rows_type_check
|
|
14
|
-
-- check (document_type in ('invoice', 'credit_memo'));
|
|
15
|
-
|
|
16
|
-
begin;
|
|
17
|
-
|
|
18
|
-
alter table public.qbosync_report_rows
|
|
19
|
-
drop constraint if exists qbosync_report_rows_type_check;
|
|
20
|
-
|
|
21
|
-
alter table public.qbosync_report_rows
|
|
22
|
-
add constraint qbosync_report_rows_type_check
|
|
23
|
-
check (document_type in ('invoice', 'credit_memo', 'bill', 'vendor_credit'));
|
|
24
|
-
|
|
25
|
-
commit;
|
|
1
|
+
-- The daily report keeps rows for bills and vendor credits too (SDK 0.5.1).
|
|
2
|
+
--
|
|
3
|
+
-- Run this once if your app ran sql/002_daily_report.sql before 0.5.1 and sends bills or vendor credits. Until then,
|
|
4
|
+
-- 002's check allowed only 'invoice' and 'credit_memo', so the first morning with a bill failed whole ("new row for
|
|
5
|
+
-- relation qbosync_report_rows violates check constraint qbosync_report_rows_type_check") and every later morning with
|
|
6
|
+
-- one did too. 002 itself now allows all four types, so an app that runs 002 from 0.5.1 on does not need this file;
|
|
7
|
+
-- running it anyway changes nothing. One transaction; re-running it is a no-op.
|
|
8
|
+
--
|
|
9
|
+
-- Found by Aztec's end-to-end run on 2026-11-16, the first app to send bills.
|
|
10
|
+
--
|
|
11
|
+
-- Undo (only while no bill or vendor credit row exists):
|
|
12
|
+
-- alter table public.qbosync_report_rows drop constraint qbosync_report_rows_type_check;
|
|
13
|
+
-- alter table public.qbosync_report_rows add constraint qbosync_report_rows_type_check
|
|
14
|
+
-- check (document_type in ('invoice', 'credit_memo'));
|
|
15
|
+
|
|
16
|
+
begin;
|
|
17
|
+
|
|
18
|
+
alter table public.qbosync_report_rows
|
|
19
|
+
drop constraint if exists qbosync_report_rows_type_check;
|
|
20
|
+
|
|
21
|
+
alter table public.qbosync_report_rows
|
|
22
|
+
add constraint qbosync_report_rows_type_check
|
|
23
|
+
check (document_type in ('invoice', 'credit_memo', 'bill', 'vendor_credit'));
|
|
24
|
+
|
|
25
|
+
commit;
|