codex/fix: purchase receivement error and recording doesn't show depletion/egg

This commit is contained in:
Adnan Zahir
2026-04-01 11:03:56 +07:00
parent 8d92da75cf
commit 8b1546a305
2 changed files with 17 additions and 1 deletions
+5 -1
View File
@@ -50,7 +50,11 @@ export const isProductWarehouseSelectableForKandang = (
}
if (warehouse.type === 'KANDANG') {
return Boolean(kandangId) && warehouse.kandang?.id === kandangId;
return (
Boolean(kandangId) &&
(warehouse.kandang?.id === kandangId ||
productWarehouse.project_flock_kandang?.kandang_id === kandangId)
);
}
return false;