PhoenixKitWarehouse.Web.SupplierOrderFormLive (PhoenixKitWarehouse v0.1.0)

Copy Markdown View Source

LiveView for creating and editing supplier orders.

Handles:

  • :new — creates an empty draft (no supplier, no lines) and
              push_navigate to :edit. Immediate-draft pattern.
  • :edit — loads an existing order; :general tab.
  • :lines — ordered lines editor (ordered_quantity editable on draft).
  • :files — MediaBrowser; storage folder resolved asynchronously.
  • :comments — supplier order comments thread.

Uses the admin-chrome pattern: use PhoenixKitWeb, :live_view + <.admin_page_header>. No <Layouts.app>, no streams. All navigation paths wrapped in PhoenixKit.Utils.Routes.path/1.