fix:remove redundant quantity check in return validation

This commit is contained in:
Gadha2311
2025-06-23 14:30:06 +05:30
parent 5d6e4db189
commit 2e0224a734
@@ -388,15 +388,13 @@ export default defineComponent({
const manualDiscountAmount = this.row.itemDiscountAmount;
const manualDiscountPercent = this.row.itemDiscountPercent;
if (!this.row.isReturn && quantity <= 0) {
if (quantity <= 0) {
showToast({
type: 'error',
message: 'Quantity must be greater than zero.',
duration: 'short',
});
showToast({
type: 'error',
message: 'Quantity must be greater than zero.',
duration: 'short',
});
quantity = this.row.quantity ?? 1;
}
quantity = this.row.quantity ?? 1;
}
this.row.set('quantity', quantity);