codex/fix: invisible depletion and egg <= 0

This commit is contained in:
Adnan Zahir
2026-04-06 22:28:39 +07:00
parent 107d412c10
commit 8872b283ac
@@ -620,7 +620,7 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
loadMore: loadMoreDepletionProducts,
} = useSelect(ProductWarehouseApi.basePath, 'id', 'product.name', 'search', {
limit: '100',
available_only: 'true',
available_only: 'false',
location_id: depletionProductsLocationId,
...(selectedKandangId ? { kandang_id: selectedKandangId.toString() } : {}),
type: 'AYAM',
@@ -688,8 +688,8 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
loadMore: loadMoreEggProducts,
} = useSelect(ProductWarehouseApi.basePath, 'id', 'product.name', 'search', {
limit: '100',
available_only: 'false',
type: 'TELUR',
available_only: 'true',
location_id: eggProductsLocationId,
...(selectedKandangId ? { kandang_id: selectedKandangId.toString() } : {}),
});