Merge branch 'codex/sales-at-farm-level' into 'development'

codex/fix: invisible depletion and egg <= 0

See merge request mbugroup/lti-web-client!368
This commit is contained in:
Adnan Zahir
2026-04-06 22:32:46 +07:00
@@ -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() } : {}),
});