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,
|
||||
isLoadingOptions: isLoadingStockProductsPW,
|
||||
loadMore: loadMoreStockProductsPW,
|
||||
} = useSelect(
|
||||
isMigrationMode ? null : ProductWarehouseApi.basePath,
|
||||
'id',
|
||||
'product.name',
|
||||
'search',
|
||||
{
|
||||
} = useSelect(ProductWarehouseApi.basePath, 'id', 'product.name', 'search', {
|
||||
flags: 'PAKAN,OVK',
|
||||
limit: '100',
|
||||
available_only: 'false',
|
||||
location_id: stockProductsLocationId,
|
||||
...(selectedKandangId
|
||||
? { kandang_id: selectedKandangId.toString() }
|
||||
: {}),
|
||||
}
|
||||
);
|
||||
...(selectedKandangId ? { kandang_id: selectedKandangId.toString() } : {}),
|
||||
});
|
||||
|
||||
const {
|
||||
setInputValue: setStockMasterInputValue,
|
||||
|
||||
Reference in New Issue
Block a user