Merge pull request #1437 from frappe/fix-uom-calculation

fix: uom quantity calculation
This commit is contained in:
Able k Saju
2026-01-29 17:19:22 +05:30
committed by GitHub
2 changed files with 13 additions and 10 deletions
+1 -1
View File
@@ -317,7 +317,7 @@ export abstract class InvoiceItem extends Doc {
return safeParseFloat(conversionItems[0]?.conversionFactor ?? 0);
},
dependsOn: ['transferUnit'],
dependsOn: ['transferUnit', 'qty'],
},
account: {
formula: () => {
+12 -9
View File
@@ -23,16 +23,19 @@
<div
v-for="df in tableFields"
:key="df.fieldname"
class="items-center px-2 h-row-mid"
:class="{
'ms-auto': isNumeric(df),
}"
:style="{
height: ``,
}"
class="flex px-2 h-row-mid"
:class="[
df.sub_label
? 'flex-col items-center text-center'
: isNumeric(df)
? 'ms-auto items-center'
: 'items-center',
]"
>
{{ df.label }}
<p class="text-xs">{{ df.sub_label }}</p>
<span>{{ df.label }}</span>
<p v-if="df.sub_label" class="text-xs">
{{ df.sub_label }}
</p>
</div>
</Row>