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

Apply formula when doc value is empty string

This commit is contained in:
Faris Ansari 2018-09-28 18:42:18 +05:30
parent e6d254749b
commit db7050512f

View File

@ -256,7 +256,7 @@ module.exports = class BaseDocument extends Observable {
}
if (!frappe.isServer) {
if (doc[field.fieldname] == null) {
if (doc[field.fieldname] == null || doc[field.fieldname] == '') {
return true;
}
}