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:
commit
bba8bc4b70
@ -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);
|
||||
|
@ -74,6 +74,6 @@
|
||||
"nodemon": "^1.18.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=8.11.0"
|
||||
"node": ">=16.4.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user