mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
Merge pull request #1306 from frappe/fix-free-item
fix: apply free item when conditions are met
This commit is contained in:
@@ -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`,
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user