mirror of
https://github.com/frappe/books.git
synced 2026-08-24 10:04:45 -05:00
refactor: replace fyo.pesa conversion with float property for amount
This commit is contained in:
@@ -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,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user