2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00

Merge branch 'master' of github.com:frappe/frappejs

This commit is contained in:
Ankit Singhaniya 2021-10-20 14:00:02 +05:30
commit bba8bc4b70
2 changed files with 3 additions and 3 deletions

View File

@ -437,8 +437,8 @@ module.exports = class BaseDocument extends Observable {
.getMeta(tablefield.childtype)
.getFormulaFields();
if (formulaFields.length) {
// for each row
for (let row of this[tablefield.fieldname] || []) {
const value = this[tablefield.fieldname]??[];
for (let row of value) {
for (let field of formulaFields) {
if (shouldApplyFormula(field, row)) {
let val = await this.getValueFromFormula(field, row);

View File

@ -74,6 +74,6 @@
"nodemon": "^1.18.3"
},
"engines": {
"node": ">=8.11.0"
"node": ">=16.4.0"
}
}