mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
Apply formula if readOnly always (#95)
This commit is contained in:
parent
fb4295a12b
commit
667a966769
@ -251,11 +251,11 @@ module.exports = class BaseDocument extends Observable {
|
||||
return true;
|
||||
|
||||
function shouldApplyFormula (field, doc) {
|
||||
if (frappe.isServer) {
|
||||
if (field.readOnly) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (field.readOnly) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!frappe.isServer) {
|
||||
if (doc[field.fieldname] == null) {
|
||||
return true;
|
||||
}
|
||||
@ -347,4 +347,4 @@ module.exports = class BaseDocument extends Observable {
|
||||
}
|
||||
return _values[fieldname];
|
||||
}
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user