mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-23 06:45:46 +00:00
codex/fix: purchase receivement error and recording doesn't show depletion/egg
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user