Fix for react hook ()

* Fix for react hook

* Improve quantity input
This commit is contained in:
Oliver 2024-05-03 20:13:36 +10:00 committed by GitHub
parent acfd50372d
commit 7f12d55609
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -143,7 +143,6 @@ function StockItemDefaultMove({
stockItem: any;
value: any;
}) {
console.log('item', stockItem);
const { data } = useSuspenseQuery({
queryKey: [
'location',
@ -289,7 +288,7 @@ function StockOperationsRow({
} else {
return `#${record.serial}`;
}
}, record);
}, [record]);
return (
<tr>
@ -317,6 +316,7 @@ function StockOperationsRow({
<NumberInput
value={value}
onChange={onChange}
disabled={!!record.serial && record.quantity == 1}
max={setMax ? record.quantity : undefined}
min={0}
style={{ maxWidth: '100px' }}