mirror of
https://github.com/frappe/books.git
synced 2026-09-24 15:19:45 -05:00
fix: reading 'map' but found null error
This commit is contained in:
@@ -70,6 +70,7 @@ export default class PaymentServer extends BaseDocument {
|
||||
}
|
||||
|
||||
validateReferenceAmount() {
|
||||
if (!this.for?.length) return;
|
||||
const referenceAmountTotal = this.for
|
||||
.map(({ amount }) => amount)
|
||||
.reduce((a, b) => a + b, 0);
|
||||
|
||||
Reference in New Issue
Block a user