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]);
|
||||
|
||||
// Get available quantity from selected product
|
||||
const selectedProductQuantity = useMemo(() => {
|
||||
if (!selectedProduct) return 0;
|
||||
const product = productOptions.find(
|
||||
@@ -222,7 +221,6 @@ const InventoryAdjustmentForm = ({
|
||||
return product?.quantity ?? 0;
|
||||
}, [selectedProduct, productOptions]);
|
||||
|
||||
// Check if current transaction subtype reduces stock
|
||||
const isStockOutSubtype = useMemo(() => {
|
||||
const subtype = selectedTransactionSubtype?.value;
|
||||
return (
|
||||
@@ -393,7 +391,6 @@ const InventoryAdjustmentForm = ({
|
||||
}
|
||||
}, [selectedTransactionSubtype]);
|
||||
|
||||
// Validate quantity against available stock
|
||||
useEffect(() => {
|
||||
const qty = Number(formik.values.qty);
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user