Description 📝
Introduce a Draft status for invoices. Draft invoices are stored but are not visible to public queries or payable by customers until they are "finalized" by the merchant.
Proposed Steps 📝
- Update Types: Add Draft to InvoiceStatus.
- Implement functions: finalize_invoice(env, merchant, id).
Acceptance Criteria ✅
- Draft invoices do not appear in standard get_invoices lists.
- Draft invoices cannot be paid.
Description 📝
Introduce a Draft status for invoices. Draft invoices are stored but are not visible to public queries or payable by customers until they are "finalized" by the merchant.
Proposed Steps 📝
Acceptance Criteria ✅