Merge pull request #1306 from frappe/fix-free-item

fix: apply free item when conditions are met
This commit is contained in:
Able k Saju
2025-07-29 12:08:37 +05:30
committed by GitHub
2 changed files with 3 additions and 2 deletions
@@ -227,7 +227,7 @@
/>
</div>
<div v-if="showAvlQuantityInBatch()" class="px-2 pt-6 col-span-2">
<div v-if="showAvlQuantityInBatch()" class="px-5 pt-6 col-span-2">
<Float
:df="{
fieldname: 'availableQtyInBatch',
@@ -244,7 +244,7 @@
/>
</div>
<div v-if="hasSerialNumber" class="px-2 pt-8 col-span-2">
<div v-if="hasSerialNumber" class="px-6 pt-6 col-span-3">
<Text
:df="{
label: t`Serial Number`,
+1
View File
@@ -752,6 +752,7 @@ export default defineComponent({
}
await existingItems[0].set('quantity', currentQty + addQty);
await this.applyPricingRule();
await this.sinvDoc.runFormulas();
if (isInventoryItem) {
await validateQty(