Done: нельзя при нерешённой проблеме (Can't done - not solved yet. SS, исходная проблема сохраняется), точечная проверка операции в QuickBooks; вложения документов в QuickBooks (qbo-attach, миграция 078, ссылка на Drive в Memo); review-done-action.md по замечаниям
Some checks failed
ci / test (push) Failing after 1m0s
ci / deploy (push) Has been skipped

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 19:32:51 +03:00
parent 2419bd26d3
commit 1112dac733
12 changed files with 523 additions and 55 deletions

View File

@@ -0,0 +1,16 @@
-- Вложения документов (чек, инвойс) к записям QuickBooks: что уже приложено или заменено ссылкой на Drive в Memo.
create table if not exists acc_qbo_attachments (
id uuid primary key default gen_random_uuid(),
qbo_entity_type text not null,
qbo_entity_id text not null,
drive_file_id text not null,
source text,
status text not null default 'pending' check (status in ('pending', 'attached', 'memo_link', 'failed')),
attachable_id text,
attempts int not null default 0,
error text,
created_at timestamptz not null default now(),
done_at timestamptz,
unique (qbo_entity_type, qbo_entity_id, drive_file_id)
);
alter table acc_qbo_attachments enable row level security;