elioria-sst-x
    Preparing search index...

    Implements

    • EpiMovementRpc
    Index
    supabase: PostgrestClient

    The supabase value.

    • Generated

      Executes registerMovement.

      Parameters

      • params: {
            p_epi_catalog_id: string | null;
            p_expiry_date: string | null;
            p_lot_number: string | null;
            p_movement_date: string | null;
            p_quantity: number;
            p_reason: string;
            p_related_unit_id: string | null;
            p_reorder_point: number | null;
            p_tenant_id: string;
            p_type: string;
            p_unit_cost: number | null;
            p_user_id: string;
            p_warehouse_id: string;
            p_warehouse_location: string | null;
        }

        The params value.

      Returns Promise<RegisterEpiMovementRpcResult>

      The function result.

      Objective: In module packages/db/src/repositories/epi-movement-rpc.ts, run registerMovement.

      Behavior: Async; accepts params; returns a value; invokes this.supabase.rpc; may throw.

      When the function cannot complete normally.