diff --git a/api/main.bal b/api/main.bal index 6f32b04..20b4910 100644 --- a/api/main.bal +++ b/api/main.bal @@ -5014,7 +5014,7 @@ lock { I.consumable_id, I.organization_id, I.person_id, - I.quantity, + I.prev_quantity, COALESCE(SUM_In.quantity_in_sum, 0.00) AS quantity_in, COALESCE(SUM_Out.quantity_out_sum, 0.00) AS quantity_out, RP.id AS resource_property_id,