PhoenixKitWarehouse.GoodsReceipt (PhoenixKitWarehouse v0.1.0)

Copy Markdown View Source

Summary

Functions

Changeset for creating/editing draft goods receipts.

Changeset for correcting a posted goods receipt (note + storage_folder only — lines immutable after posting).

Changeset for posting a goods receipt (programmatic fields only — no cast).

Changeset for soft-deleting a goods receipt.

Changeset for setting the storage folder (programmatic — single field).

Types

t()

@type t() :: %PhoenixKitWarehouse.GoodsReceipt{
  __meta__: term(),
  created_by_uuid: term(),
  deleted_at: term(),
  deleted_by_uuid: term(),
  inserted_at: term(),
  lines: term(),
  location_uuid: term(),
  note: term(),
  number: term(),
  performed_by_uuid: term(),
  posted_at: term(),
  source_refs: term(),
  status: term(),
  storage_folder_uuid: term(),
  supplier_order_uuid: term(),
  supplier_uuid: term(),
  updated_at: term(),
  uuid: term()
}

Functions

changeset(receipt, attrs)

Changeset for creating/editing draft goods receipts.

correction_changeset(receipt, attrs)

Changeset for correcting a posted goods receipt (note + storage_folder only — lines immutable after posting).

post_changeset(receipt, audited_lines, performed_by_uuid)

Changeset for posting a goods receipt (programmatic fields only — no cast).

soft_delete_changeset(receipt, attrs)

Changeset for soft-deleting a goods receipt.

statuses()

storage_changeset(receipt, attrs)

Changeset for setting the storage folder (programmatic — single field).