صفحة داخلية للمراجعةدليل متصفحنموذج قراءة محليبلا تعديل

دليل المتصفح لمعاينة طباعة فاتورة مشتريات

صفحة داخلية للمراجعة وليست شاشة إدخال نهائية.

خطوات تحقق يدوية بلا ملفات مولدة

للتحقق اليدوي، شغل تطبيق web محليا ثم افتح /accounting/purchase-invoice/print-preview في المتصفح. راجع أن المستند يظهر من local printable read-model، وأن route reachability وreadability وlegacy document parity وPDF/export/download blockers وAI review-only evidence ظاهرة. لا تلتزم بصور شاشة أو tmp outputs أو أي generated artifacts. صفحة /accounting/purchase-invoice/print-preview/browser-confidence تجمع confidence matrices كدليل source/browser فقط، وليست PDF/export/download proof وليست backend proof.

Route/read-model evidence matrix

مصدر العرض هو Wave 243 local printable read-model for /accounting/purchase-invoice/print-preview. لا يوجد backend read-model endpoint ولا API fetch ولا server action.

Route reachability / قابلية فتح المسار/accounting/purchase-invoice/print-previewافتح المسار في المتصفح وتحقق أن عنوان معاينة طباعة فاتورة مشتريات V1 يظهر من App Router file.
Read-model source / مصدر القراءةapps/web/app/accounting/purchase-invoice/print-preview/purchase-invoice-printable-read-model.tsالصفحة تستخدم local printable read-model باسم purchaseInvoicePrintableReadModel ولا تعتمد على endpoint.
Static browser preview / معاينة ثابتةlocal-only browser previewالمعاينة تعرض بيانات محلية فقط: header, identity, scope, supplier, accounts, warehouse/inbound context, line items, totals, memo, payment terms, and signatures.
No accounting mutation / بلا تغيير محاسبيnon-mutatingلا يوجد save أو draft-save أو approval أو posting أو journal أو stock أو inventory أو cost-layer أو audit أو domain أو outbox mutation.

Browser smoke checklist

هذا checklist يدعم browser-testable evidence بلا screenshots ولا tmp outputs ولا generated artifacts. الهدف إثبات route reachability وغياب PDF/export/download.

Start web app locally / تشغيل الواجهة محلياpnpm --filter @lebanon-accounting/web devNext.js serves the web app on a local port without adding files.
Open parent purchase invoice route / فتح شاشة الفاتورة/accounting/purchase-invoiceThe browser shows the purchase invoice shell and browser-only links.
Open print preview route / فتح معاينة الطباعة/accounting/purchase-invoice/print-previewThe browser shows معاينة طباعة فاتورة مشتريات V1.
Open browser evidence route / فتح دليل المتصفح/accounting/purchase-invoice/print-preview/browser-evidenceThe browser shows دليل المتصفح لمعاينة طباعة فاتورة مشتريات.
Verify both routes return 200 OK / تحقق من HTTPcurl -I each routeRoutes return HTTP 200 OK when the local server is running.
Verify static build lists routes / تحقق من buildpnpm buildBuild output lists the purchase invoice print preview and browser evidence routes.
Verify no generated artifacts are staged / تحقق من الملفاتgit status --shortNo screenshots, tmp outputs, image files, archives, .next, dist, or coverage files are staged.

Visual/readability checklist

Visible check / فحص مرئيbrowser-readableرأس الشركة وعنوان فاتورة المشتريات واضحان في أول مساحة قابلة للمراجعة.
Visible check / فحص مرئيbrowser-readableنوع فاتورة المشتريات ورقمها وتاريخها ومرجع فاتورة المورد ظاهرة كحقول placeholder.
Visible check / فحص مرئيbrowser-readableسياق الشركة والسنة والفترة يبقى ظاهرا قبل أي حفظ أو ترحيل.
Visible check / فحص مرئيbrowser-readableسياق المورد وحساب الموردين وحساب المشتريات لا يختلط مع ledger truth.
Visible check / فحص مرئيbrowser-readableسياق المستودع وINBOUND visible ولا يعني inventory movement أو cost-layer mutation.
Visible check / فحص مرئيbrowser-readableجدول line items يعرض item code/name, quantity, unit, unit cost, discount, tax/VAT, line total, warehouse/inbound note.
Visible check / فحص مرئيbrowser-readabletotals grid يعرض subtotal, discount total, taxable amount, VAT/tax total, grand total, currency.
Visible check / فحص مرئيbrowser-readablememo/notes/payment terms والتواقيع محفوظة كمناطق قراءة محلية قابلة للمراجعة.
Visible check / فحص مرئيbrowser-readablePDF/export/download blockers وAI review-only note ظاهرة بوضوح.

Legacy document parity checklist

Legacy parity / مطابقة المستند القديمlocal evidenceCompany/document header represented locally.
Legacy parity / مطابقة المستند القديمlocal evidencePurchase invoice identity represented as safe placeholders.
Legacy parity / مطابقة المستند القديمlocal evidenceAccounting scope represented locally with company, fiscal year, and period.
Legacy parity / مطابقة المستند القديمlocal evidenceSupplier/party/account context represented as display-only context.
Legacy parity / مطابقة المستند القديمlocal evidenceWarehouse/inbound purchase context represented without inventory mutation.
Legacy parity / مطابقة المستند القديمlocal evidenceLine items represented with item code/name, quantity, unit, unit cost, discount, tax/VAT, line total, and inbound note.
Legacy parity / مطابقة المستند القديمlocal evidenceTotals represented with subtotal, discount total, taxable amount, VAT/tax total, grand total, and currency.
Legacy parity / مطابقة المستند القديمlocal evidenceMemo, payment terms, and prepared/reviewed/received/signature placeholders represented locally.
Legacy parity / مطابقة المستند القديمlocal evidenceOperational print/export parity remains blocked until renderer, storage, delivery, authorization, audit, and backend read-model contracts exist.

Legacy visual acceptance matrix

هذه matrix تحول المعاينة إلى acceptance evidence: expected visible area، سبب legacy parity، وV1 blocker إذا لم تكتمل.

Company/document headerLegacy printed purchase invoices start with company identity and document title.Complete branding, legal footer, and renderer-specific layout remain blocked.
Purchase invoice number/date/type/supplier referenceLegacy users identify the purchase invoice by type, number, date, and supplier invoice reference.Number, date persistence, and final supplier reference truth remain placeholders until save/read contracts exist.
Accounting scopeCompany, fiscal year, and period must stay visible for accounting review.Persisted scope IDs and backend read-model state remain blocked.
Supplier/party/account contextLegacy review depends on supplier, payable, and purchase account context before printing.Persisted party/account lookup truth remains blocked.
Warehouse/inbound purchase contextPurchase documents need visible receiving and warehouse context for review.Inventory movement, cost-layer mutation, and final receiving truth remain blocked.
Line itemsA printable purchase invoice must show item code/name, quantity, unit, unit cost, discount, tax/VAT, line total, and inbound note.Saved lines, stock direction, and posting truth remain blocked.
TotalsA printable purchase invoice must show subtotal, discount total, taxable amount, VAT/tax total, grand total, and currency.Final tax, currency, exchange, and rounding contracts remain blocked.
Memo/notes/payment termsPrintable purchase invoices need notes and supplier payment terms for human review.Persisted document notes and template storage remain blocked.
Prepared/reviewed/received/signaturesLegacy forms reserve signature lines for workflow accountability and receiving.Approval workflow, signer identity, and audit lifecycle remain blocked.
AI review-only noteAI can help reviewers understand visible gaps without becoming truth.AI-created accounting truth and operational report output remain blocked.
Blocked PDF/export/downloadThe page must be honest that reports are not operational yet.Renderer, storage, delivery, authorization, and download remain blocked.

Print/readiness failure-state matrix

إذا ظهرت أي failure signal، فالاستجابة الآمنة هي إبقاء workflow محليا ومقروءا في المتصفح مع منع action الحي حتى يوجد عقد حقيقي.

Route not reachableTreat browser evidence as not proven; use build output and local server logs to diagnose.Do not claim browser reachability or report readiness.
Read-model missingKeep the preview blocked until purchaseInvoicePrintableReadModel is restored.Do not wire backend fetch or create replacement invoice truth.
Layout labels missingRestore visible واجهة عربية purchase invoice labels before any owner acceptance claim.Do not accept V1 visual parity.
Line table or totals missingRestore line items and totals grid before claiming legacy document parity.Do not claim purchase invoice print/readiness progress.
PDF/export accidentally enabledRemove the action and return to browser-only evidence.Do not produce files, downloads, packages, or renderer output.
AI shown as accounting truthChange AI wording back to review-only helper context.Do not use AI to create invoice truth, supplier truth, approvals, postings, receiving, print, export, download, or report output.
Backend mutation accidentally addedRemove mutation wiring and keep route static/local until a real contract is approved.Do not save, draft-save, approve, post, create journals, mutate stock, move inventory, mutate cost layers, or write audit/domain/outbox state.

PDF/export/download blockers

Blocked report action / إجراء تقرير ممنوعblockedPDF/export/download blocked: no report renderer exists.
Blocked report action / إجراء تقرير ممنوعblockedPDF/export/download blocked: no persisted print template exists.
Blocked report action / إجراء تقرير ممنوعblockedPDF/export/download blocked: no file storage or delivery authorization exists.
Blocked report action / إجراء تقرير ممنوعblockedPDF/export/download blocked: no backend read-model endpoint exists.
Blocked report action / إجراء تقرير ممنوعblockedPDF/export/download blocked: no audit or report-delivery lifecycle exists.
Blocked report action / إجراء تقرير ممنوعblockedPDF/export/download blocked: no print package or file output is wired.

AI review-only/non-mutating evidence

Missing-field reviewAI may explain visible placeholder fields and blocked areas.AI cannot invent purchase invoice number, supplier truth, ledger truth, receiving truth, approval, posting, print, export, download, or report output.
Readable preview summaryAI may summarize the visible browser preview for human review.AI cannot create accounting truth or replace the local printable read-model.
Report readinessAI may describe renderer, storage, delivery, endpoint, and audit blockers.AI cannot produce an operational report or file artifact.

No generated artifact policy

Artifact policy / سياسة الملفاتsource-only evidenceManual browser checks may inspect the route locally without committing screenshots.
Artifact policy / سياسة الملفاتsource-only evidenceDo not stage screenshots, tmp outputs, image files, archives, browser cache artifacts, or file outputs.
Artifact policy / سياسة الملفاتsource-only evidenceThis evidence page is the committed evidence surface; runtime visual proof stays local and unstaged.
Artifact policy / سياسة الملفاتsource-only evidenceNo PDF/export/download artifact is produced by this route.

Eli owner acceptance panel

Eli/V1 owner acceptance panel: قبول preview مرئي وآمن للـ V1، وليس قبول report renderer أو backend workflow. لا يوجد external owner decision blocker لهذه المعاينة المحلية.

What Eli should visually checkV1 owner evidenceHeader, purchase invoice type/date/number/supplier reference placeholders, scope, supplier/account context, warehouse/inbound context, line items, totals, memo, payment terms, signatures, blockers, and AI review-only note.
What is accepted for V1V1 owner evidenceA browser-readable local purchase invoice print preview from a typed read-model, with route evidence and honest blocked actions.
What remains blocked after V1 previewV1 owner evidenceBackend read-model endpoint, save lifecycle, approval, posting, journal creation, stock mutation, inventory movement, cost-layer mutation, renderer, PDF/export/download, storage, delivery, audit, and operational report output.
No external owner decision blockerV1 owner evidenceThe browser preview can be accepted as a V1-safe local evidence surface without waiting for owner decisions about live reports or backend mutations.