Przeglądaj źródła

fix the opening invoice creation tool

version-14
Manas Solanki 7 lat temu
rodzic
commit
4fd6e14275
1 zmienionych plików z 7 dodań i 2 usunięć
  1. +7
    -2
      frappe/public/js/frappe/form/grid.js

+ 7
- 2
frappe/public/js/frappe/form/grid.js Wyświetl plik

@@ -645,10 +645,15 @@ frappe.ui.form.Grid = Class.extend({
data.push([__("Do not edit headers which are preset in the template")]);
data.push(["------"]);
$.each(frappe.get_meta(me.df.options).fields, function(i, df) {
if(frappe.model.is_value_type(df.fieldtype)) {
// don't include the hidden field in the template
if(frappe.model.is_value_type(df.fieldtype) && !df.hidden) {
data[1].push(df.label);
data[2].push(df.fieldname);
data[3].push(df.description || "");
let description = (df.description || "") + ' ';
if (df.fieldtype === "Date") {
description += frappe.boot.sysdefaults.date_format;
}
data[3].push(description);
docfields.push(df);
}
});


Ładowanie…
Anuluj
Zapisz