صفحة داخلية للمراجعةثقة متصفحمصدر ومتصفح فقطلا ملفات مولدةAI للمراجعة فقط

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

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

إرشاد الثقة: مصدر ومتصفح فقط

هذه الصفحة تعطي confidence browser/source evidence only لمعاينة طباعة فاتورة مشتريات V1. الثقة هنا ليست PDF proof، وليست export proof، وليست download proof، وليست backend save أو posting أو journal أو stock أو inventory mutation. سياسة هذه الموجة: no-generated-artifact policy؛ لا صور شاشة ملتزمة، لا tmp captures، لا ملفات PDF، لا exports، لا downloads، ولا report output.

Confidence dashboard / لوحة ثقة V1

هذه لوحة owner review وليست developer notes فقط: تربط route map، read-model coverage، responsive/readability، RTL/Arabic labels، supplier/inbound warehouse context، line-table readability، totals readability، signature area readability، PDF/export/download blockers، AI review-only، no generated artifacts، وEli acceptance في صفحة واحدة.

Route map / خريطة المساراتowner-review readyParent, print preview, browser evidence, and browser confidence routes are visible from the purchase invoice workflow.
Read-model coverage / تغطية نموذج القراءةlocal typed sourceThe preview stays anchored to purchaseInvoicePrintableReadModel instead of a backend endpoint.
Responsive/readability / قابلية القراءةbrowser confidenceDense desktop and smaller browser review are both treated as V1 acceptance checks.
RTL/Arabic labels / العربية واتجاه RTLrequired V1 signalواجهة عربية labels and dir=rtl remain visible for Eli owner review.
Supplier/inbound warehouse context / المورد والاستلامvisible and non-mutatingSupplier, payable/purchase accounts, warehouse, and INBOUND context are visible without inventory movement.
Line-table readability / قراءة جدول السطورlegacy document parityItem names, quantities, unit costs, discounts, taxes, line totals, and inbound notes remain reviewable.
Totals readability / قراءة الإجمالياتreview-only totalsTotals are grouped for print readiness without claiming official posting or VAT truth.
Signature area readability / قراءة التواقيعplaceholder onlyPrepared, reviewed, received, and signature areas are placeholders, not approval workflow state.
Blocked PDF/export/download / حظر الإخراجblockedNo renderer, PDF/export/download package, file output, delivery, storage, or report lifecycle exists.
AI review-only / AI للمراجعة فقطnon-mutating helperAI may help review visible gaps but cannot create invoice truth, supplier truth, posting truth, or report output.
No generated artifacts / بلا ملفات مولدةsource evidence onlyNo screenshots, tmp captures, PDFs, exports, downloads, images, archives, or report files are committed.
Eli acceptance / قبول EliV1 confidence surfaceEli can accept browser readability and source guardrails while renderer/backend decisions stay blocked.

Route confidence matrix

كل صف يعرض expected source/build signal للمسار: وجود الملف، link آمن، local-only read-model، وغياب backend أو renderer أو mutation.

Parent purchase invoice route / شاشة فاتورة المشتريات/accounting/purchase-invoiceSource/build signal: parent route remains the local Arabic purchase invoice shell with print-preview navigation only.
Print preview route / معاينة الطباعة/accounting/purchase-invoice/print-previewSource/build signal: route imports purchaseInvoicePrintableReadModel and renders the local printable document.
Browser evidence route / دليل المتصفح/accounting/purchase-invoice/print-preview/browser-evidenceSource/build signal: evidence page documents manual route/read-model checks without screenshots or generated artifacts.
Browser confidence route / ثقة المتصفح/accounting/purchase-invoice/print-preview/browser-confidenceSource/build signal: this confidence route renders route, read-model, responsive, parity, failure, and owner acceptance matrices.

Cross-document parity comparison

مقارنة static source-evidence فقط بين receipt/payment print-preview pattern وsales invoice print-preview pattern وpurchase invoice current preview. لا تعدل هذه المقارنة ملفات receipt/payment أو sales invoice.

Printable read-model existsPurchase invoice current preview: yes: purchaseInvoicePrintableReadModelReceipt/payment print-preview pattern: yes: receiptPaymentPrintableReadModel. Sales invoice print-preview pattern: yes: salesInvoicePrintableReadModel.
Print-preview route existsPurchase invoice current preview: /accounting/purchase-invoice/print-preview existsReceipt/payment print-preview pattern: /accounting/receipt-payment-voucher/print-preview exists. Sales invoice print-preview pattern: /accounting/sales-invoice/print-preview exists.
Browser-evidence route existsPurchase invoice current preview: /accounting/purchase-invoice/print-preview/browser-evidence existsReceipt/payment print-preview pattern: /accounting/receipt-payment-voucher/print-preview/browser-evidence exists. Sales invoice print-preview pattern: /accounting/sales-invoice/print-preview/browser-evidence exists.
Browser-confidence route existsPurchase invoice current preview: /accounting/purchase-invoice/print-preview/browser-confidence exists in Wave 244Receipt/payment print-preview pattern: not yet, evidence route carries confidence checklist. Sales invoice print-preview pattern: not yet, evidence route carries confidence checklist.
Parent document shell link existsPurchase invoice current preview: yes: parent purchase shell links to print, evidence, and confidenceReceipt/payment print-preview pattern: yes: parent voucher shell links to print/evidence. Sales invoice print-preview pattern: yes: parent sales shell links to print/evidence.
Line table existsPurchase invoice current preview: purchase line table existsReceipt/payment print-preview pattern: allocation rows exist. Sales invoice print-preview pattern: sales line table exists.
Totals section existsPurchase invoice current preview: subtotal, discount, taxable, VAT/tax, grand total existReceipt/payment print-preview pattern: amount/currency and allocation totals exist. Sales invoice print-preview pattern: subtotal, tax, discount, grand total exist.
Signature area existsPurchase invoice current preview: prepared/reviewed/received/signatures existReceipt/payment print-preview pattern: prepared/reviewed/received/signatures exist. Sales invoice print-preview pattern: prepared/reviewed/received/signatures exist.
AI review-only note existsPurchase invoice current preview: yes, AI remains review-only and non-mutatingReceipt/payment print-preview pattern: yes, AI cannot create accounting truth. Sales invoice print-preview pattern: yes, AI cannot create accounting truth.
PDF/export/download blockedPurchase invoice current preview: blockedReceipt/payment print-preview pattern: blocked. Sales invoice print-preview pattern: blocked.
No generated artifactsPurchase invoice current preview: source/browser evidence onlyReceipt/payment print-preview pattern: source-only evidence. Sales invoice print-preview pattern: source-only evidence.

Read-model confidence matrix

مصدر الثقة هو purchaseInvoicePrintableReadModel المستخدم في /accounting/purchase-invoice/print-preview. لا يوجد API fetch ولا server action ولا backend read-model endpoint.

Header / رأس المستندlocal printable read-modelCompany/document header is visible from the printable read-model before any renderer exists.
Purchase identity / هوية فاتورة المشترياتlocal printable read-modelPurchase type, number, date, and supplier invoice reference are explicit placeholders, not saved truth.
Supplier/account context / سياق المورد والحسابlocal printable read-modelSupplier, payable account, and purchase account are display-only review context.
Warehouse/INBOUND context / المستودع والاستلامlocal printable read-modelWarehouse and inbound direction are visible while stock, inventory movement, and cost-layer mutation remain blocked.
Purchase lines / سطور المشترياتlocal printable read-modelItem code/name, quantity, unit, unit cost, discount, tax/VAT, line total, and inbound note remain readable.
Totals / الإجمالياتlocal printable read-modelSubtotal, discount total, taxable amount, VAT/tax total, grand total, and currency are grouped.
Memo/payment terms / الملاحظات وشروط الدفعlocal printable read-modelMemo, notes, and payment terms stay local review fields with no persisted template.
Signatures / التواقيعlocal printable read-modelPrepared, reviewed, received, and signature placeholders are present for visual parity.
Blockers / الموانعlocal printable read-modelPDF/export/download, backend read-model, storage, delivery, audit, save, approval, posting, journal, stock, and inventory actions are blocked.
AI review-only context / AI للمراجعة فقطlocal printable read-modelAI may describe visible gaps but cannot create accounting truth, supplier truth, receiving truth, print output, export output, or report output.

Responsive/readability checklist with acceptance levels

كل صف يحدد expected V1 behavior، risk if unclear، accepted V1 state، وblocked future work حتى تكون مراجعة Eli عملية وليست ملاحظة عامة.

Desktop dense layoutHeader, context, lines, totals, signatures, and blockers scan together.Risk if unclear: Reviewer may think the page is a loose checklist instead of a print-readiness surface. Accepted V1 state: Accepted V1 state: dense but readable owner-review page. Blocked future work: Future work: renderer-specific pagination and printable CSS.
Smaller browser widthSections stack without hiding the route map or blocker text.Risk if unclear: Owner may miss blocked PDF/export/backend actions on narrow review. Accepted V1 state: Accepted V1 state: stacked browser review remains readable. Blocked future work: Future work: true mobile print renderer inspection.
Arabic/RTL label flowArabic labels and RTL direction stay visible across panels.Risk if unclear: English-only confidence would not be acceptable for V1 owner review. Accepted V1 state: Accepted V1 state: واجهة عربية and RTL route is visible. Blocked future work: Future work: final bilingual print template copy review.
Long supplier namesSupplier text wraps as display-only context.Risk if unclear: Long supplier names could obscure account or blocker context. Accepted V1 state: Accepted V1 state: long supplier names remain reviewable. Blocked future work: Future work: renderer overflow and legal supplier name rules.
Long item namesItem names wrap in the line-table review area.Risk if unclear: Cost, tax, and line total columns could become ambiguous. Accepted V1 state: Accepted V1 state: item text can be inspected without mutation. Blocked future work: Future work: renderer column-width rules.
Warehouse labelsWarehouse and INBOUND labels remain separate from mutation claims.Risk if unclear: Receiving context could be mistaken for inventory movement. Accepted V1 state: Accepted V1 state: warehouse context is visible and non-mutating. Blocked future work: Future work: real receiving and stock movement contracts.
Tax/discount/totalsTax, discount, taxable amount, and grand total remain grouped.Risk if unclear: Reviewer may treat local totals as official posting or VAT truth. Accepted V1 state: Accepted V1 state: totals are readable and review-only. Blocked future work: Future work: tax, currency, rounding, and posting contracts.
Signature gridSignature placeholders stay visible and clearly placeholder-only.Risk if unclear: Placeholders could be mistaken for approval workflow state. Accepted V1 state: Accepted V1 state: signature area supports visual parity only. Blocked future work: Future work: approval workflow, signer identity, and audit lifecycle.
Print-preview scrollingScrolling keeps blockers and acceptance areas discoverable.Risk if unclear: Owner may inspect only the top of the document and miss blocked actions. Accepted V1 state: Accepted V1 state: all confidence sections are reachable in one route. Blocked future work: Future work: page-break, print viewport, and renderer preview.
No screenshot evidence policyManual smoke can happen without committing screenshots or tmp files.Risk if unclear: Generated artifacts could be mistaken for committed proof. Accepted V1 state: Accepted V1 state: source/build evidence only unless local smoke is clearly unstaged. Blocked future work: Future work: approved evidence artifact workflow if Eli requests it.

Responsive/readability matrix

Arabic/RTL visual confidence means the preview remains readable in a dense desktop layout and a narrow browser layout without a screenshot artifact policy violation.

Dense desktop layout / تخطيط سطح المكتبbrowser readability evidenceThe preview should scan as header, context, line table, totals, signatures, and blockers without marketing layout.
Narrow browser layout guidance / الشاشة الضيقةbrowser readability evidenceOn narrow browsers, stacked fields must remain legible and route confidence can be checked without horizontal guessing.
Line table readability / قراءة جدول السطورbrowser readability evidenceLong item text must wrap inside cells while quantity, cost, tax, and total columns stay identifiable.
Totals readability / قراءة الإجمالياتbrowser readability evidenceTotals must remain visually grouped and not look like posting confirmation or final ledger truth.
Signature grid readability / قراءة التواقيعbrowser readability evidenceSignature placeholders must stay visible as placeholders, not approval workflow state.
Arabic labels and RTL direction / العربية وRTLbrowser readability evidenceواجهة عربية labels and dir=rtl are required confidence signals for owner review.
Long supplier/item text / النصوص الطويلةbrowser readability evidenceLong supplier and item names should wrap naturally and remain reviewable before any real print renderer exists.
No screenshot artifact policy / بلا صور ملتزمةbrowser readability evidenceManual visual checks may be done locally, but no screenshots, tmp captures, images, archives, PDFs, exports, or downloads are committed.

Source-confidence/no-live-wiring matrix

Source confidence هنا يثبت أن preview imports local read-model وأنه لا يوجد fetch call، ولا server action، ولا API client، ولا PDF/export package، ولا generated file output، ولا save/post/approval/journal /stock/inventory mutation، ولا fake report result، ولا fake AI answer.

Preview imports local read-modelsource confidencePrint preview imports purchaseInvoicePrintableReadModel from the local read-model file.
No fetch callsource confidenceNo fetch invocation belongs in the preview, evidence, or confidence source.
No server actionsource confidenceNo server action is used for print preview confidence.
No API clientsource confidenceNo HTTP client is introduced for printable purchase data.
No PDF/export packagesource confidenceNo renderer, print package, PDF package, or export package is wired.
No generated file outputsource confidenceNo screenshot, tmp capture, PDF, export, download, image, archive, or report file is generated.
No save/post/approval/journal/stock/inventory mutationsource confidenceBackend save, draft-save, approval, posting, journal creation, stock mutation, inventory movement, and cost-layer mutation remain blocked.
No fake report resultsource confidenceNo fake report result is produced; report output remains blocked.
No fake AI answersource confidenceNo fake AI answer is produced; AI remains review-only context and cannot create accounting truth.

Legacy visual parity matrix

Legacy form/document parity here is visual and local only. It improves reports/print readiness without enabling renderer, PDF/export/download, backend save, posting, journal, stock, inventory, or cost-layer wiring.

Supplier invoice referencerepresented locallySupplier invoice reference is visible as a safe placeholder because legacy purchase documents depend on it.
Purchase order/receiving context if presentrepresented locallyReceiving context is represented by warehouse/INBOUND notes without inventing purchase order truth.
Inbound warehouse contextrepresented locallyWarehouse and inbound direction remain review-only, with inventory movement blocked.
Line-cost/tax/total structurerepresented locallyLine cost, discount, tax/VAT, and total structure is visible before renderer or posting work.
Memo/payment termsrepresented locallyMemo and payment terms remain local text fields for owner review.
Signature placeholdersrepresented locallyPrepared/reviewed/received/signature placeholders support legacy form parity without approval state.
Operational blockers before real print/exportrepresented locallyReal print/export remains blocked until renderer, backend read-model, storage, delivery, authorization, and audit contracts exist.

Optional manual smoke commands panel

هذه command-like guidance للنسخ اليدوي فقط. لا تنشئ screenshots ولا tmp HTML captures ولا PDFs ولا exports ولا downloads ولا ملفات مولدة داخل git.

Start web app locallypnpm --filter @lebanon-accounting/web devOpen the local Next app without committing runtime outputs.
Open parent purchase invoice route/accounting/purchase-invoiceConfirm parent shell links to preview, evidence, and confidence.
Open print preview route/accounting/purchase-invoice/print-previewConfirm the local printable read-model document is visible.
Open browser evidence route/accounting/purchase-invoice/print-preview/browser-evidenceConfirm browser evidence remains review-only.
Open browser confidence route/accounting/purchase-invoice/print-preview/browser-confidenceConfirm dashboard, comparison, source matrix, and Eli checklist are visible.
Run focused testspnpm --filter @lebanon-accounting/web exec node --test tests/purchase-invoice-print-preview-confidence-dashboard.test.mjsFocused dashboard source assertions pass.
Run buildpnpm buildBuild lists purchase invoice print preview confidence as a static route.
Check generated artifactsgit status --shortNo screenshots, tmp captures, PDFs, exports, downloads, .next files, dist files, coverage files, images, or archives are staged.

Failure-state matrix

Route missingblocked until correctedDo not claim browser confidence; restore the App Router file and route link.
Read-model not importedblocked until correctedDo not replace it with fetch; restore purchaseInvoicePrintableReadModel usage.
Arabic labels missingblocked until correctedDo not accept V1 confidence until واجهة عربية labels and RTL direction are visible.
Totals missingblocked until correctedDo not claim printable purchase invoice parity without subtotal, tax/VAT, grand total, and currency.
Signatures missingblocked until correctedDo not claim legacy visual parity until signature placeholders are restored.
PDF/export accidentally enabledblocked until correctedRemove the action; no PDF/export/download package, renderer, file, or output belongs in this wave.
Backend/API fetch accidentally addedblocked until correctedRemove fetch/server action/backend save wiring and keep the route source-only and local-only.
AI shown as accounting truthblocked until correctedReturn AI wording to review-only helper context with no invoice truth or report output.
Inventory mutation accidentally addedblocked until correctedRemove stock, inventory movement, and cost-layer mutation wiring immediately.

Eli owner review checklist

هذه checklist تفصل what Eli should visually check، what is accepted for V1، what is not accepted yet، what must stay blocked، what can move to later renderer/PDF/export waves، وno external owner decision blocker.

What Eli should visually checkEli owner reviewRoute links, Arabic/RTL labels, supplier context, INBOUND warehouse context, line table, totals, memo/payment terms, signatures, blockers, and AI review-only status.
What is accepted for V1Eli owner reviewBrowser-readable purchase invoice print-preview confidence with source/browser evidence, local read-model coverage, and no live workflow.
What is not accepted yetEli owner reviewNo final PDF, no export, no download, no official report output, no persisted print template, and no backend read-model endpoint.
What must stay blockedEli owner reviewBackend save, draft-save, approval, posting, journal creation, stock mutation, inventory movement, cost-layer mutation, audit/domain/outbox writes, billing/quota/subscription mutation, and AI-created accounting truth.
What can move to later renderer/PDF/export wavesEli owner reviewPrint renderer, PDF/export/download delivery, storage, authorization, audit lifecycle, page-break rules, template persistence, and owner-approved evidence artifacts.
No external owner decision blockerEli owner reviewWave 244 confidence can be accepted now because it does not require live report/export/backend decisions.

Eli owner acceptance panel

Eli acceptance هنا تعني قبول confidence surface مرئي ومقروء للـ V1، لا قبول PDF/export/download ولا report renderer ولا backend workflow. لا يوجد external owner decision blocker لهذه الثقة المحلية.

What Eli should visually checkV1 browser confidenceHeader, purchase identity, supplier/account context, warehouse/INBOUND context, line table, totals, memo/payment terms, signatures, blockers, Arabic labels, RTL direction, and AI review-only note.
What is acceptable for V1V1 browser confidenceA browser-readable local purchase invoice print-preview workflow with source/browser evidence only, no generated artifacts, and no live accounting action.
What remains blocked after V1 previewV1 browser confidencePDF, export, download, renderer, backend read-model endpoint, persisted print template, storage, delivery, save, approval, posting, journal, stock, inventory movement, cost-layer, audit, and report lifecycle.
No external owner decision blockerV1 browser confidenceThis confidence hardening can ship as V1-safe browser evidence without waiting for real report/export/backend decisions.

AI review-only/non-mutating confidence

AI capability/readiness في هذه الموجة review-only helper context فقط. AI لا يخترع إجابة محاسبية، ولا invoice truth، ولا supplier truth، ولا receiving truth، ولا accounting truth، ولا report output، ولا PDF/export /download، ولا save/approval/posting/journal/stock/inventory action.