fix:prevent modal close on Transfer Qty click

This commit is contained in:
Gadha2311
2026-02-18 12:44:03 +05:30
parent d57cb79e33
commit 7569bbd21f
2 changed files with 2 additions and 21 deletions
-19
View File
@@ -152,25 +152,6 @@ export class Item extends Doc {
current: 1001,
})
.sync();
const batchSeriesDoc = await this.fyo.doc.getDoc(
'BatchSeries',
seriesName
);
const start = (batchSeriesDoc?.start as number) ?? 1001;
const padZeros = (batchSeriesDoc?.padZeros as number) ?? 4;
const batchName = start.toString().padStart(padZeros, '0');
const batchExists = await this.fyo.db.exists('Batch', batchName);
if (!batchExists) {
await this.fyo.doc
.getNewDoc('Batch', {
name: batchName,
item: this.name as string,
})
.sync();
}
}
}
}
@@ -27,7 +27,7 @@
</p>
</div>
<div class="flex items-center" @click="toggleExpandAndEmit">
<div class="flex items-center">
<Int
:df="{
fieldname: 'quantity',
@@ -115,7 +115,7 @@
<div></div>
<template v-if="isExapanded">
<div class="px-4 pt-6 col-span-1" @click="toggleExpandAndEmit">
<div class="px-4 pt-6 col-span-1">
<Int
v-if="isUOMConversionEnabled"
:df="{