refactor: replace fyo.pesa conversion with float property for amount

This commit is contained in:
AbleKSaju
2025-03-20 12:49:47 +05:30
parent d88551c7a0
commit 0b35d2a8a7
+2 -2
View File
@@ -659,7 +659,7 @@ export default defineComponent({
if (paymentMethodDoc?.type !== 'Cash') {
await this.paymentDoc.setMultiple({
amount: this.fyo.pesa(this.paidAmount as unknown as number).abs(),
amount: this.paidAmount.float,
referenceId: this.transferRefNo,
clearanceDate: this.transferClearanceDate,
});
@@ -668,7 +668,7 @@ export default defineComponent({
if (paymentMethodDoc?.type === 'Cash') {
await this.paymentDoc.setMultiple({
paymentAccount: this.defaultPOSCashAccount,
amount: this.fyo.pesa(this.paidAmount as unknown as number).abs(),
amount: this.paidAmount.float,
});
}