Summary
Functions
Get check status badge color for UI
Returns check status options for display
Create minimal item record for stock opname initialization. Only stores item_id and collection_id - changes recorded later by librarian.
Record changes found by librarian during checking. Only stores the changed fields in JSONB.
Functions
Get check status badge color for UI
Returns check status options for display
Create minimal item record for stock opname initialization. Only stores item_id and collection_id - changes recorded later by librarian.
Record changes found by librarian during checking. Only stores the changed fields in JSONB.
Example changes: %{ "status" => "damaged", "condition" => "poor", "location" => "Storage Room", "availability" => "unavailable" }