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

fix: breaking of patch due to deprecated field numberFormat

This commit is contained in:
18alantom 2022-01-07 11:42:21 +05:30
parent 85cd124024
commit e1cac53fa8

View File

@ -31,6 +31,11 @@ export default async function execute() {
for (let field of fields) {
row[field] = frappe.pesa(row[field] ?? 0).store;
}
if ('numberFormat' in row) {
delete row.numberFormat;
}
return row;
});
await frappe.db.prestigeTheTable(name, convertedRows);