mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
adjust get detail recording
This commit is contained in:
@@ -636,21 +636,13 @@ const RecordingForm = ({ type = 'add', initialValues }: RecordingFormProps) => {
|
|||||||
rawData: stockProductsPW,
|
rawData: stockProductsPW,
|
||||||
isLoadingOptions: isLoadingStockProductsPW,
|
isLoadingOptions: isLoadingStockProductsPW,
|
||||||
loadMore: loadMoreStockProductsPW,
|
loadMore: loadMoreStockProductsPW,
|
||||||
} = useSelect(
|
} = useSelect(ProductWarehouseApi.basePath, 'id', 'product.name', 'search', {
|
||||||
isMigrationMode ? null : ProductWarehouseApi.basePath,
|
flags: 'PAKAN,OVK',
|
||||||
'id',
|
limit: '100',
|
||||||
'product.name',
|
available_only: 'false',
|
||||||
'search',
|
location_id: stockProductsLocationId,
|
||||||
{
|
...(selectedKandangId ? { kandang_id: selectedKandangId.toString() } : {}),
|
||||||
flags: 'PAKAN,OVK',
|
});
|
||||||
limit: '100',
|
|
||||||
available_only: 'false',
|
|
||||||
location_id: stockProductsLocationId,
|
|
||||||
...(selectedKandangId
|
|
||||||
? { kandang_id: selectedKandangId.toString() }
|
|
||||||
: {}),
|
|
||||||
}
|
|
||||||
);
|
|
||||||
|
|
||||||
const {
|
const {
|
||||||
setInputValue: setStockMasterInputValue,
|
setInputValue: setStockMasterInputValue,
|
||||||
|
|||||||
Reference in New Issue
Block a user