mirror of
https://gitlab.com/mbugroup/lti-web-client.git
synced 2026-05-20 13:32:00 +00:00
chore(FE): Remove redundant comments in InventoryAdjustmentForm
This commit is contained in:
@@ -213,7 +213,6 @@ const InventoryAdjustmentForm = ({
|
|||||||
: [];
|
: [];
|
||||||
}, [productWarehouses]);
|
}, [productWarehouses]);
|
||||||
|
|
||||||
// Get available quantity from selected product
|
|
||||||
const selectedProductQuantity = useMemo(() => {
|
const selectedProductQuantity = useMemo(() => {
|
||||||
if (!selectedProduct) return 0;
|
if (!selectedProduct) return 0;
|
||||||
const product = productOptions.find(
|
const product = productOptions.find(
|
||||||
@@ -222,7 +221,6 @@ const InventoryAdjustmentForm = ({
|
|||||||
return product?.quantity ?? 0;
|
return product?.quantity ?? 0;
|
||||||
}, [selectedProduct, productOptions]);
|
}, [selectedProduct, productOptions]);
|
||||||
|
|
||||||
// Check if current transaction subtype reduces stock
|
|
||||||
const isStockOutSubtype = useMemo(() => {
|
const isStockOutSubtype = useMemo(() => {
|
||||||
const subtype = selectedTransactionSubtype?.value;
|
const subtype = selectedTransactionSubtype?.value;
|
||||||
return (
|
return (
|
||||||
@@ -393,7 +391,6 @@ const InventoryAdjustmentForm = ({
|
|||||||
}
|
}
|
||||||
}, [selectedTransactionSubtype]);
|
}, [selectedTransactionSubtype]);
|
||||||
|
|
||||||
// Validate quantity against available stock
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const qty = Number(formik.values.qty);
|
const qty = Number(formik.values.qty);
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user