diff --git a/erpnext/accounts/Print Format/Sales Invoice Classic/Sales Invoice Classic.txt b/erpnext/accounts/Print Format/Sales Invoice Classic/Sales Invoice Classic.txt index d20ac5b97a..8bc45f1303 100644 --- a/erpnext/accounts/Print Format/Sales Invoice Classic/Sales Invoice Classic.txt +++ b/erpnext/accounts/Print Format/Sales Invoice Classic/Sales Invoice Classic.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - 'creation': '2012-05-14 13:17:42', + 'creation': '2012-05-17 17:27:49', 'docstatus': 0, - 'modified': '2012-05-14 14:04:28', + 'modified': '2012-05-17 17:53:54', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -14,7 +14,7 @@ { 'doc_type': u'Sales Invoice', 'doctype': 'Print Format', - 'html': u'\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n \n \t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Invoice Date
Due Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information: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t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', 'module': u'Accounts', 'name': '__common__', 'standard': u'Yes' diff --git a/erpnext/accounts/Print Format/Sales Invoice Modern/Sales Invoice Modern.txt b/erpnext/accounts/Print Format/Sales Invoice Modern/Sales Invoice Modern.txt index 4b0b6f4cb8..c0957980a0 100644 --- a/erpnext/accounts/Print Format/Sales Invoice Modern/Sales Invoice Modern.txt +++ b/erpnext/accounts/Print Format/Sales Invoice Modern/Sales Invoice Modern.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - 'creation': '2012-05-14 13:17:54', + 'creation': '2012-05-17 17:27:49', 'docstatus': 0, - 'modified': '2012-05-14 14:06:38', + 'modified': '2012-05-17 17:57:23', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -14,7 +14,7 @@ { 'doc_type': u'Sales Invoice', 'doctype': 'Print Format', - 'html': u'\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t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\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n \n \t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Invoice No.
Invoice Date
Due Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', 'module': u'Accounts', 'name': '__common__', 'standard': u'Yes' diff --git a/erpnext/accounts/Print Format/Sales Invoice Spartan/Sales Invoice Spartan.txt b/erpnext/accounts/Print Format/Sales Invoice Spartan/Sales Invoice Spartan.txt index 197efcd246..01dd7654a5 100644 --- a/erpnext/accounts/Print Format/Sales Invoice Spartan/Sales Invoice Spartan.txt +++ b/erpnext/accounts/Print Format/Sales Invoice Spartan/Sales Invoice Spartan.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - 'creation': '2012-05-14 13:18:05', + 'creation': '2012-05-17 17:27:49', 'docstatus': 0, - 'modified': '2012-05-14 14:06:16', + 'modified': '2012-05-17 17:58:06', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -14,7 +14,7 @@ { 'doc_type': u'Sales Invoice', 'doctype': 'Print Format', - 'html': u'\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n \n \t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Invoice Date
Due Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t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n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', 'module': u'Accounts', 'name': '__common__', 'standard': u'Yes' diff --git a/erpnext/accounts/doctype/journal_voucher/listview.js b/erpnext/accounts/doctype/journal_voucher/listview.js index f3c6a74607..94d698f523 100644 --- a/erpnext/accounts/doctype/journal_voucher/listview.js +++ b/erpnext/accounts/doctype/journal_voucher/listview.js @@ -7,7 +7,7 @@ wn.doclistviews['Journal Voucher'] = wn.views.ListView.extend({ '`tabJournal Voucher`.total_debit', '`tabJournal Voucher`.company', ]); - this.stats = this.stats.concat(['voucher_type']); + this.stats = this.stats.concat(['voucher_type', 'company']); }, prepare_data: function(data) { this._super(data); diff --git a/erpnext/buying/doctype/supplier/listview.js b/erpnext/buying/doctype/supplier/listview.js index 86e22d6f63..45ab1a4396 100644 --- a/erpnext/buying/doctype/supplier/listview.js +++ b/erpnext/buying/doctype/supplier/listview.js @@ -4,8 +4,9 @@ wn.doclistviews['Supplier'] = wn.views.ListView.extend({ this._super(d) this.fields = this.fields.concat([ "`tabSupplier`.supplier_type", + "`tabSupplier`.supplier_name", ]); - this.stats = this.stats.concat([]); + //this.stats = this.stats.concat(['company']); }, prepare_data: function(data) { @@ -14,7 +15,8 @@ wn.doclistviews['Supplier'] = wn.views.ListView.extend({ columns: [ {width: '5%', content:'avatar'}, - {width: '50%', content:'name'}, + {width: '20%', content:'name'}, + {width: '30%', content:'supplier_name'}, {width: '10%', content:'tags'}, {width: '23%', content:'supplier_type', css: {'color': '#aaa'}}, {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}} diff --git a/erpnext/hr/doctype/appraisal/listview.js b/erpnext/hr/doctype/appraisal/listview.js new file mode 100644 index 0000000000..34653f3687 --- /dev/null +++ b/erpnext/hr/doctype/appraisal/listview.js @@ -0,0 +1,31 @@ +// render +wn.doclistviews['Appraisal'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d) + this.fields = this.fields.concat([ + "`tabAppraisal`.employee_name", + "`tabAppraisal`.start_date", + "`tabAppraisal`.end_date", + "`tabAppraisal`.total_score", + "`tabAppraisal`.status", + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + data.start_date = wn.datetime.str_to_user(data.start_date); + data.end_date = wn.datetime.str_to_user(data.end_date); + data.date_range = data.start_date + " to " + data.end_date; + }, + + columns: [ + {width: '3%', content: 'docstatus'}, + {width: '15%', content: 'name'}, + {width: '28%', content: 'employee_name'}, + {width: '12%', content: 'status+tags'}, + {width: '12%', content: 'total_score', css: {'text-align': 'right'}}, + {width: '30%', content:'date_range', + css: {'text-align': 'right', 'color': '#777'}}, +] +}); \ No newline at end of file diff --git a/erpnext/hr/doctype/attendance/listview.js b/erpnext/hr/doctype/attendance/listview.js new file mode 100644 index 0000000000..45729eacb2 --- /dev/null +++ b/erpnext/hr/doctype/attendance/listview.js @@ -0,0 +1,28 @@ +// render +wn.doclistviews['Attendance'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d) + this.fields = this.fields.concat([ + "`tabAttendance`.att_date", + "`tabAttendance`.employee_name", + "`tabAttendance`.`status`", + + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + data.att_date = wn.datetime.str_to_user(data.att_date); + }, + + columns: [ + {width: '3%', content:'docstatus'}, + {width: '12%', content:'name'}, + {width: '50%', content:'employee_name'}, + {width: '13%', content:'status'}, + {width: '10%', content:'tags'}, + //{width: '23%', content:'supplier_type', css: {'color': '#aaa'}}, + {width: '12%', content:'att_date', css: {'text-align': 'right', 'color':'#777'}} + ] +}); \ No newline at end of file diff --git a/erpnext/hr/doctype/employee/listview.js b/erpnext/hr/doctype/employee/listview.js new file mode 100644 index 0000000000..3aa87d29b1 --- /dev/null +++ b/erpnext/hr/doctype/employee/listview.js @@ -0,0 +1,46 @@ +// render +wn.doclistviews['Employee'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d) + this.fields = this.fields.concat([ + "`tabEmployee`.employee_name", + "`tabEmployee`.employee_number", + "`tabEmployee`.employment_type", + "`tabEmployee`.designation", + "`tabEmployee`.department", + "`tabEmployee`.branch", + "`tabEmployee`.company", + "`tabEmployee`.reports_to", + "`tabEmployee`.date_of_joining", + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + + data.employee_name = data.employee_name + + (data.employee_number ? ' [' + data.employee_number + ']' : ''); + + data.date_of_joining = wn.datetime.str_to_user(data.date_of_joining); + data.designation = data.designation + + (data.employment_type ? ' [' + data.employment_type + ']' : ''); + + var concat_list = []; + data.designation && concat_list.push(data.designation); + data.department && concat_list.push(data.department); + data.company && concat_list.push(data.company); + data.branch && concat_list.push(data.branch); + data.description = concat_list.join(", "); + }, + + columns: [ + {width: '3%', content: 'docstatus'}, + {width: '12%', content: 'name'}, + {width: '25%', content: 'employee_name'}, + {width: '48%', content: 'description+tags', + css: {'color': '#aaa'}}, + {width: '12%', content:'date_of_joining', + css: {'text-align': 'right', 'color': '#777'}}, +] +}); \ No newline at end of file diff --git a/erpnext/hr/doctype/expense_claim/listview.js b/erpnext/hr/doctype/expense_claim/listview.js new file mode 100644 index 0000000000..8f9fea11c1 --- /dev/null +++ b/erpnext/hr/doctype/expense_claim/listview.js @@ -0,0 +1,41 @@ +// render +wn.doclistviews['Expense Claim'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d) + this.fields = this.fields.concat([ + "`tabExpense Claim`.employee_name", + "`tabExpense Claim`.posting_date", + "`tabExpense Claim`.approval_status", + "`tabExpense Claim`.total_claimed_amount", + "`tabExpense Claim`.total_sanctioned_amount", + "`tabExpense Claim`.company", + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + data.posting_date = wn.datetime.str_to_user(data.posting_date); + data.employee_name = data.employee_name + 'claimed ' + + wn.boot.company[data.company].default_currency + ' ' + + fmt_money(data.total_claimed_amount); + }, + + columns: [ + {width: '5%', content: 'avatar'}, + {width: '3%', content: 'docstatus'}, + {width: '12%', content: 'name'}, + {width: '44%', content: 'employee_name+tags'}, + {width: '10%', content: 'approval_status'}, + { + width: '12%', + content: function(parent, data) { + $(parent).html(wn.boot.company[data.company].default_currency + + ' ' + fmt_money(data.total_sanctioned_amount)); + }, + css: {'text-align': 'right'}, + }, + {width: '12%', content: 'posting_date', + css: {'text-align': 'right', 'color': '#777'}}, + ] +}); \ No newline at end of file diff --git a/erpnext/hr/doctype/leave_application/listview.js b/erpnext/hr/doctype/leave_application/listview.js new file mode 100644 index 0000000000..0f1b1b7ff7 --- /dev/null +++ b/erpnext/hr/doctype/leave_application/listview.js @@ -0,0 +1,36 @@ +// render +wn.doclistviews['Leave Application'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d) + this.fields = this.fields.concat([ + "`tabLeave Application`.employee_name", + "`tabLeave Application`.total_leave_days", + "`tabLeave Application`.from_date", + "`tabLeave Application`.to_date", + + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + data.from_date = wn.datetime.str_to_user(data.from_date); + data.to_date = wn.datetime.str_to_user(data.to_date); + data.date_range = (data.from_date === data.to_date) + ? data.from_date + : data.from_date + " to " + data.to_date; + data.total_leave_days = data.total_leave_days<=1 + ? data.total_leave_days + " day" + : data.total_leave_days + " days" + }, + + columns: [ + {width: '5%', content:'avatar'}, + {width: '3%', content:'docstatus'}, + {width: '12%', content:'name'}, + {width: '40%', content:'employee_name+tags'}, + {width: '10%', content:'total_leave_days', + css: {'color':'#777'}}, + {width: '30%', content:'date_range'}, + ] +}); \ No newline at end of file diff --git a/erpnext/hr/doctype/salary_slip/listview.js b/erpnext/hr/doctype/salary_slip/listview.js new file mode 100644 index 0000000000..cb3cfe4185 --- /dev/null +++ b/erpnext/hr/doctype/salary_slip/listview.js @@ -0,0 +1,46 @@ +// render +wn.doclistviews['Salary Slip'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d) + this.fields = this.fields.concat([ + "`tabSalary Slip`.employee_name", + "`tabSalary Slip`.designation", + "`tabSalary Slip`.branch", + "`tabSalary Slip`.rounded_total", + "`tabSalary Slip`.company", + "`tabSalary Slip`.month", + "`tabSalary Slip`.fiscal_year", + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + var concat_list = []; + data.designation && concat_list.push(data.designation); + data.branch && concat_list.push(data.branch); + data.description = concat_list.join(", "); + data.month = month_list[cint(data.month)-1] + " [" + data.fiscal_year + "]"; + }, + + columns: [ + {width: '3%', content: 'docstatus'}, + {width: '14%', content: 'name'}, + {width: '20%', content: 'employee_name'}, + {width: '30%', content: 'description+tags', css: {'color': '#aaa'}}, + {width: '17%', content:'month', css: {'text-align': 'right', 'color':'#aaa'}}, + { + width: '16%', + content: function(parent, data) { + $(parent).html( + ( + data.company + ? wn.boot.company[data.company].default_currency + : sys_defaults.currency + ) + + ' ' + fmt_money(data.rounded_total)); + }, + css: {'text-align': 'right'}, + }, +] +}); \ No newline at end of file diff --git a/erpnext/patches/may_2012/customize_form_cleanup.py b/erpnext/patches/may_2012/customize_form_cleanup.py new file mode 100644 index 0000000000..c81bd2240d --- /dev/null +++ b/erpnext/patches/may_2012/customize_form_cleanup.py @@ -0,0 +1,5 @@ +def execute(): + import webnotes + webnotes.conn.sql("delete from `tabCustomize Form Field`") + webnotes.conn.sql("""delete from `tabSingles` + where doctype='Customize Form'""") \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index b2983b52bc..190996d6a7 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -362,5 +362,10 @@ patch_list = [ 'patch_file': 'reload_so_pending_items', 'description': 'reload so pending items' }, + { + 'patch_module': 'patches.may_2012', + 'patch_file': 'customize_form_cleanup', + 'description': 'cleanup customize form records' + }, ] \ No newline at end of file diff --git a/erpnext/production/doctype/bom/listview.js b/erpnext/production/doctype/bom/listview.js new file mode 100644 index 0000000000..e1398479d8 --- /dev/null +++ b/erpnext/production/doctype/bom/listview.js @@ -0,0 +1,47 @@ +// render +wn.doclistviews['BOM'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d); + this.fields = this.fields.concat([ + '`tabBOM`.item', + '`tabBOM`.uom', + 'IFNULL(`tabBOM`.quantity, 0) as quantity', + '`tabBOM`.is_active', + '`tabBOM`.costing_date', + '`tabBOM`.total_cost', + '`tabBOM`.description', + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + data.costing_date = wn.datetime.str_to_user(data.costing_date); + data.description = (data.is_active === 'Yes' ? '' : '[Inactive] ') + data.description; + }, + + columns: [ + {width: '3%', content: 'docstatus'}, + {width: '15%', content: 'name'}, + {width: '15%', content: 'item'}, + {width: '26%', content: 'description+tags'}, + { + width: '12%', + content: function(parent, data) { + $(parent).html(data.quantity + ' ' + data.uom) + }, + css: {'text-align':'right'}, + }, + { + width: '20%', + content: function(parent, data) { + $(parent).html(sys_defaults.currency + " " + + fmt_money(data.total_cost)); + }, + css: {'text-align': 'right'}, + }, + {width: '12%', content:'costing_date', css: { + 'text-align': 'right', 'color':'#777' + }}, + ] +}); diff --git a/erpnext/production/doctype/production_order/listview.js b/erpnext/production/doctype/production_order/listview.js new file mode 100644 index 0000000000..5f510297ee --- /dev/null +++ b/erpnext/production/doctype/production_order/listview.js @@ -0,0 +1,39 @@ +// render +wn.doclistviews['Production Order'] = wn.views.ListView.extend({ + init: function(d) { + this._super(d); + this.fields = this.fields.concat([ + '`tabProduction Order`.production_item', + '`tabProduction Order`.fg_warehouse', + '`tabProduction Order`.stock_uom', + 'IFNULL(`tabProduction Order`.qty, 0) as qty', + '`tabProduction Order`.posting_date', + '`tabProduction Order`.status', + ]); + this.stats = this.stats.concat(['company']); + }, + + prepare_data: function(data) { + this._super(data); + data.posting_date = wn.datetime.str_to_user(data.posting_date); + }, + + columns: [ + {width: '5%', content: 'avatar'}, + {width: '3%', content: 'docstatus'}, + {width: '20%', content: 'name'}, + {width: '16%', content: 'production_item'}, + {width: '20%', content: 'fg_warehouse'}, + {width: '12%', content: 'status+tags'}, + { + width: '12%', + content: function(parent, data) { + $(parent).html(data.qty + ' ' + data.stock_uom) + }, + css: {'text-align':'right'} + }, + {width: '12%', content:'posting_date', css: { + 'text-align': 'right', 'color':'#777' + }}, + ] +}); diff --git a/erpnext/selling/Print Format/Quotation Classic/Quotation Classic.txt b/erpnext/selling/Print Format/Quotation Classic/Quotation Classic.txt index a912888a60..719c572b40 100644 --- a/erpnext/selling/Print Format/Quotation Classic/Quotation Classic.txt +++ b/erpnext/selling/Print Format/Quotation Classic/Quotation Classic.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:17:12', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 18:01:08', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Quotation', + 'doc_type': u'Quotation', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\t\n\t\t\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Quotation Date
\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n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Selling', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Quotation Classic { 'doctype': 'Print Format', - 'name': 'Quotation Classic' + 'name': u'Quotation Classic' } ] \ No newline at end of file diff --git a/erpnext/selling/Print Format/Quotation Modern/Quotation Modern.txt b/erpnext/selling/Print Format/Quotation Modern/Quotation Modern.txt index 3bdc6936df..0cd529998a 100644 --- a/erpnext/selling/Print Format/Quotation Modern/Quotation Modern.txt +++ b/erpnext/selling/Print Format/Quotation Modern/Quotation Modern.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:17:27', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 18:00:12', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Quotation', + 'doc_type': u'Quotation', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t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t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Quotation No.
Quotation Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Selling', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Quotation Modern { 'doctype': 'Print Format', - 'name': 'Quotation Modern' + 'name': u'Quotation Modern' } ] \ No newline at end of file diff --git a/erpnext/selling/Print Format/Quotation Spartan/Quotation Spartan.txt b/erpnext/selling/Print Format/Quotation Spartan/Quotation Spartan.txt index 1571b410af..d176e64e4c 100644 --- a/erpnext/selling/Print Format/Quotation Spartan/Quotation Spartan.txt +++ b/erpnext/selling/Print Format/Quotation Spartan/Quotation Spartan.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:17:40', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 18:03:06', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Quotation', + 'doc_type': u'Quotation', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Quotation Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', - 'module': 'Selling', + 'html': u'\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Quotation Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Selling', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Quotation Spartan { 'doctype': 'Print Format', - 'name': 'Quotation Spartan' + 'name': u'Quotation Spartan' } ] \ No newline at end of file diff --git a/erpnext/selling/Print Format/Sales Order Classic/Sales Order Classic.txt b/erpnext/selling/Print Format/Sales Order Classic/Sales Order Classic.txt index 79afbceeb4..1e654a3c52 100644 --- a/erpnext/selling/Print Format/Sales Order Classic/Sales Order Classic.txt +++ b/erpnext/selling/Print Format/Sales Order Classic/Sales Order Classic.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:18:38', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 17:45:52', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Sales Order', + 'doc_type': u'Sales Order', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Sales Order Date
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\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Selling', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Sales Order Classic { 'doctype': 'Print Format', - 'name': 'Sales Order Classic' + 'name': u'Sales Order Classic' } ] \ No newline at end of file diff --git a/erpnext/selling/Print Format/Sales Order Modern/Sales Order Modern.txt b/erpnext/selling/Print Format/Sales Order Modern/Sales Order Modern.txt index 639ed631f6..e676870a96 100644 --- a/erpnext/selling/Print Format/Sales Order Modern/Sales Order Modern.txt +++ b/erpnext/selling/Print Format/Sales Order Modern/Sales Order Modern.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:18:51', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 17:48:22', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Sales Order', + 'doc_type': u'Sales Order', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n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common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Sales Order Modern { 'doctype': 'Print Format', - 'name': 'Sales Order Modern' + 'name': u'Sales Order Modern' } ] \ No newline at end of file diff --git a/erpnext/selling/Print Format/Sales Order Spartan/Sales Order Spartan.txt b/erpnext/selling/Print Format/Sales Order Spartan/Sales Order Spartan.txt index dd603b3697..7532bd32a7 100644 --- a/erpnext/selling/Print Format/Sales Order Spartan/Sales Order Spartan.txt +++ b/erpnext/selling/Print Format/Sales Order Spartan/Sales Order Spartan.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:19:02', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 17:49:46', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Sales Order', + 'doc_type': u'Sales Order', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Sales Order Date
Delivery Date
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n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n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Selling', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Sales Order Spartan { 'doctype': 'Print Format', - 'name': 'Sales Order Spartan' + 'name': u'Sales Order Spartan' } ] \ No newline at end of file diff --git a/erpnext/selling/doctype/quotation_item/quotation_item.txt b/erpnext/selling/doctype/quotation_item/quotation_item.txt index 9cee3de24a..5bb2121b02 100644 --- a/erpnext/selling/doctype/quotation_item/quotation_item.txt +++ b/erpnext/selling/doctype/quotation_item/quotation_item.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - 'creation': '2012-03-27 14:36:13', + 'creation': '2012-05-15 12:14:54', 'docstatus': 0, - 'modified': '2012-03-27 14:36:13', + 'modified': '2012-05-18 18:21:08', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -23,7 +23,7 @@ 'section_style': u'Tray', 'server_code_error': u' ', 'show_in_menu': 0, - 'version': 33 + 'version': 1 }, # These values are common for all DocField @@ -108,6 +108,21 @@ 'width': u'100px' }, + # DocField + { + 'colour': u'White:FFF', + 'doctype': u'DocField', + 'fieldname': u'stock_uom', + 'fieldtype': u'Data', + 'label': u'UOM', + 'oldfieldname': u'stock_uom', + 'oldfieldtype': u'Data', + 'permlevel': 1, + 'print_hide': 0, + 'reqd': 0, + 'width': u'100px' + }, + # DocField { 'default': u'0.00', @@ -223,21 +238,6 @@ 'width': u'100px' }, - # DocField - { - 'colour': u'White:FFF', - 'doctype': u'DocField', - 'fieldname': u'stock_uom', - 'fieldtype': u'Data', - 'label': u'UOM', - 'oldfieldname': u'stock_uom', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 0, - 'reqd': 0, - 'width': u'100px' - }, - # DocField { 'doctype': u'DocField', diff --git a/erpnext/stock/Print Format/Delivery Note Classic/Delivery Note Classic.txt b/erpnext/stock/Print Format/Delivery Note Classic/Delivery Note Classic.txt index 30181e364e..b1914a4873 100644 --- a/erpnext/stock/Print Format/Delivery Note Classic/Delivery Note Classic.txt +++ b/erpnext/stock/Print Format/Delivery Note Classic/Delivery Note Classic.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:16:03', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 18:05:15', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Delivery Note', + 'doc_type': u'Delivery Note', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\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\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Delivery Note Date
Sales Order No.\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t()\n\t\t\t\t\t\t
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Stock', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Delivery Note Classic { 'doctype': 'Print Format', - 'name': 'Delivery Note Classic' + 'name': u'Delivery Note Classic' } ] \ No newline at end of file diff --git a/erpnext/stock/Print Format/Delivery Note Modern/Delivery Note Modern.txt b/erpnext/stock/Print Format/Delivery Note Modern/Delivery Note Modern.txt index 8da9cb7357..bfe6358e64 100644 --- a/erpnext/stock/Print Format/Delivery Note Modern/Delivery Note Modern.txt +++ b/erpnext/stock/Print Format/Delivery Note Modern/Delivery Note Modern.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:16:38', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 18:04:19', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Delivery Note', + 'doc_type': u'Delivery Note', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Delivery Note No.
Delivery Note Date
Sales Order No.\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t()\n\t\t\t\t\t\t
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', - 'module': 'Stock', + 'html': u'\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Delivery Note No.
Delivery Note Date
Sales Order No.\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t()\n\t\t\t\t\t\t
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Stock', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Delivery Note Modern { 'doctype': 'Print Format', - 'name': 'Delivery Note Modern' + 'name': u'Delivery Note Modern' } ] \ No newline at end of file diff --git a/erpnext/stock/Print Format/Delivery Note Spartan/Delivery Note Spartan.txt b/erpnext/stock/Print Format/Delivery Note Spartan/Delivery Note Spartan.txt index 7e5fd31423..73dcf7d227 100644 --- a/erpnext/stock/Print Format/Delivery Note Spartan/Delivery Note Spartan.txt +++ b/erpnext/stock/Print Format/Delivery Note Spartan/Delivery Note Spartan.txt @@ -3,26 +3,26 @@ # These values are common in all dictionaries { - 'creation': '2011-12-21 11:02:04', + 'creation': '2012-05-17 17:27:50', 'docstatus': 0, - 'modified': '2012-01-06 14:16:51', - 'modified_by': 'Administrator', - 'owner': 'Administrator' + 'modified': '2012-05-17 18:05:49', + 'modified_by': u'Administrator', + 'owner': u'Administrator' }, # These values are common for all Print Format { - 'doc_type': 'Delivery Note', + 'doc_type': u'Delivery Note', 'doctype': 'Print Format', - 'html': '\n\n\n\n\n\n\n\n\n\n\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t

\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t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t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t
Name
Address
Contact
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t
Delivery Note Date
Sales Order No.\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t()\n\t\t\t\t\t\t
\n
\n
\n\t\n\t\n
\n
\n\t\n\t\n\t\t\n\t\t\t\n\t\t\n\t\t\n\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t
\n\t\t\t\t\tTerms, Conditions & Other Information:
\n\t\t\t\t\t\n\t\t\t\t
\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t
Net Total
Grand Total
Rounded Total
\n\t\t\t\t\t
In Words
\n\t\t\t\t\t\n\t\t\t\t
\n
\n', + 'module': u'Stock', 'name': '__common__', - 'standard': 'Yes' + 'standard': u'Yes' }, # Print Format, Delivery Note Spartan { 'doctype': 'Print Format', - 'name': 'Delivery Note Spartan' + 'name': u'Delivery Note Spartan' } ] \ No newline at end of file diff --git a/erpnext/stock/doctype/delivery_note/delivery_note.txt b/erpnext/stock/doctype/delivery_note/delivery_note.txt index 6f9cb3d62b..7db951328b 100644 --- a/erpnext/stock/doctype/delivery_note/delivery_note.txt +++ b/erpnext/stock/doctype/delivery_note/delivery_note.txt @@ -3,9 +3,9 @@ # These values are common in all dictionaries { - 'creation': '2012-05-01 17:10:32', + 'creation': '2012-05-15 12:15:05', 'docstatus': 0, - 'modified': '2012-05-03 10:26:43', + 'modified': '2012-05-18 18:06:26', 'modified_by': u'Administrator', 'owner': u'Administrator' }, @@ -106,24 +106,11 @@ 'write': 1 }, - # DocPerm - { - 'amend': 1, - 'cancel': 1, - 'create': 1, - 'doctype': u'DocPerm', - 'permlevel': 0, - 'role': u'Sales Manager', - 'submit': 1, - 'write': 1 - }, - # DocPerm { 'doctype': u'DocPerm', 'permlevel': 1, - 'role': u'All', - 'write': 0 + 'role': u'All' }, # DocPerm @@ -307,6 +294,38 @@ 'print_hide': 1 }, + # DocField + { + 'doctype': u'DocField', + 'fieldname': u'po_no', + 'fieldtype': u'Data', + 'hidden': 1, + 'label': u'P.O. No', + 'no_copy': 0, + 'oldfieldname': u'po_no', + 'oldfieldtype': u'Data', + 'permlevel': 1, + 'print_hide': 1, + 'width': u'100px' + }, + + # DocField + { + 'colour': u'White:FFF', + 'depends_on': u'eval:doc.po_no', + 'doctype': u'DocField', + 'fieldname': u'po_date', + 'fieldtype': u'Data', + 'hidden': 1, + 'label': u'P.O. Date', + 'no_copy': 0, + 'oldfieldname': u'po_date', + 'oldfieldtype': u'Data', + 'permlevel': 1, + 'print_hide': 1, + 'width': u'100px' + }, + # DocField { 'colour': u'White:FFF', @@ -953,38 +972,6 @@ 'width': u'100px' }, - # DocField - { - 'doctype': u'DocField', - 'fieldname': u'po_no', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'P.O. No', - 'no_copy': 0, - 'oldfieldname': u'po_no', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'width': u'100px' - }, - - # DocField - { - 'colour': u'White:FFF', - 'depends_on': u'eval:doc.po_no', - 'doctype': u'DocField', - 'fieldname': u'po_date', - 'fieldtype': u'Data', - 'hidden': 1, - 'label': u'P.O. Date', - 'no_copy': 0, - 'oldfieldname': u'po_date', - 'oldfieldtype': u'Data', - 'permlevel': 1, - 'print_hide': 1, - 'width': u'100px' - }, - # DocField { 'default': u'Draft', diff --git a/erpnext/stock/doctype/item/listview.js b/erpnext/stock/doctype/item/listview.js index 7f0dbc8ae9..a483e35cbc 100644 --- a/erpnext/stock/doctype/item/listview.js +++ b/erpnext/stock/doctype/item/listview.js @@ -12,12 +12,15 @@ wn.doclistviews['Item'] = wn.views.ListView.extend({ prepare_data: function(data) { this._super(data); data.description = repl("%(item_name)s | %(description)s", data); + if(data.description && data.description.length > 50) { + data.description = '' + data.description.substr(0,50) + '...'; + } }, columns: [ {width: '5%', content:'avatar'}, {width: '20%', content:'name'}, - {width: '63%', content:'tags+description', css: {'color': '#aaa'}}, + {width: '63%', content:'tags+description', css: {'color': '#777'}}, {width: '12%', content:'modified', css: {'text-align': 'right', 'color':'#777'}} ] }); diff --git a/js/all-app.js b/js/all-app.js index 76be9795c7..ba25f13a99 100644 --- a/js/all-app.js +++ b/js/all-app.js @@ -270,6 +270,8 @@ this.prepare_opts();$.extend(this,this.opts);$(this.parent).html(repl('\
\
\
\ + \ \
\ @@ -316,7 +318,7 @@ if(this.onrun)this.onrun();if(this.callback)this.callback(r);},render_list:funct /* * lib/js/wn/ui/filters.js */ -wn.ui.FilterList=Class.extend({init:function(opts){wn.require('lib/js/legacy/widgets/form/fields.js');$.extend(this,opts);this.filters=[];this.$w=this.$parent;this.set_events();},set_events:function(){var me=this;this.$w.find('.add-filter-btn').bind('click',function(){me.add_filter();});},show_filters:function(){this.$w.find('.show_filters').toggle();if(!this.filters.length) +wn.ui.FilterList=Class.extend({init:function(opts){wn.require('lib/js/legacy/widgets/form/fields.js');$.extend(this,opts);this.filters=[];this.$w=this.$parent;this.set_events();},set_events:function(){var me=this;this.$w.find('.add-filter-btn').bind('click',function(){me.add_filter();});this.$w.find('.search-btn').bind('click',function(){me.listobj.run();});},show_filters:function(){this.$w.find('.show_filters').toggle();if(!this.filters.length) this.add_filter();},add_filter:function(fieldname,condition,value){this.filters.push(new wn.ui.Filter({flist:this,fieldname:fieldname,condition:condition,value:value}));if(fieldname){this.$w.find('.show_filters').toggle(true);}},get_filters:function(){var values=[];$.each(this.filters,function(i,f){if(f.field) values.push(f.get_value());}) return values;},update_filters:function(){var fl=[];$.each(this.filters,function(i,f){if(f.field)fl.push(f);}) diff --git a/js/all-web.js b/js/all-web.js index 988b3e23af..458e45082f 100644 --- a/js/all-web.js +++ b/js/all-web.js @@ -157,6 +157,8 @@ this.prepare_opts();$.extend(this,this.opts);$(this.parent).html(repl('\
\
\
\ + \ \
\ @@ -203,7 +205,7 @@ if(this.onrun)this.onrun();if(this.callback)this.callback(r);},render_list:funct /* * lib/js/wn/ui/filters.js */ -wn.ui.FilterList=Class.extend({init:function(opts){wn.require('lib/js/legacy/widgets/form/fields.js');$.extend(this,opts);this.filters=[];this.$w=this.$parent;this.set_events();},set_events:function(){var me=this;this.$w.find('.add-filter-btn').bind('click',function(){me.add_filter();});},show_filters:function(){this.$w.find('.show_filters').toggle();if(!this.filters.length) +wn.ui.FilterList=Class.extend({init:function(opts){wn.require('lib/js/legacy/widgets/form/fields.js');$.extend(this,opts);this.filters=[];this.$w=this.$parent;this.set_events();},set_events:function(){var me=this;this.$w.find('.add-filter-btn').bind('click',function(){me.add_filter();});this.$w.find('.search-btn').bind('click',function(){me.listobj.run();});},show_filters:function(){this.$w.find('.show_filters').toggle();if(!this.filters.length) this.add_filter();},add_filter:function(fieldname,condition,value){this.filters.push(new wn.ui.Filter({flist:this,fieldname:fieldname,condition:condition,value:value}));if(fieldname){this.$w.find('.show_filters').toggle(true);}},get_filters:function(){var values=[];$.each(this.filters,function(i,f){if(f.field) values.push(f.get_value());}) return values;},update_filters:function(){var fl=[];$.each(this.filters,function(i,f){if(f.field)fl.push(f);})