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t\n\t\t\t
\n\t\t\t\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
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
Net Total
\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
Grand Total
\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
Rounded Total
\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
\n\t\t\t\t\t In Words \n\t\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
\n',
'module': u'Accounts',
'name': '__common__',
'standard': u'Yes'
diff --git a/erpnext/hr/search_criteria/salary_register/salary_register.py b/erpnext/hr/search_criteria/salary_register/salary_register.py
index 9b9d5d4a9bf..875c7db08b3 100644
--- a/erpnext/hr/search_criteria/salary_register/salary_register.py
+++ b/erpnext/hr/search_criteria/salary_register/salary_register.py
@@ -19,13 +19,14 @@ for r in res:
if not sal_slips_ids == '': sal_slips_ids +=","
sal_slips_ids+="'%s'"%r[col_idx['ID']]
-earn_heads =[i[0] for i in sql("select distinct e_type from `tabSalary Slip Earning` where parent in (%s)"%sal_slips_ids)]
-ded_heads =[i[0] for i in sql("select distinct d_type from `tabSalary Slip Deduction` where parent in (%s)"%sal_slips_ids)]
+earn_heads, ded_heads = [], []
+if res:
+ earn_heads =[i[0] for i in sql("select distinct e_type from `tabSalary Slip Earning` where parent in (%s)"%sal_slips_ids)]
+ ded_heads =[i[0] for i in sql("select distinct d_type from `tabSalary Slip Deduction` where parent in (%s)"%sal_slips_ids)]
col=[]
-
for e in earn_heads:
- l = (len(e)*9)
+ l = (len(cstr(e))*9)
if l < 150 :
col_width = '150px'
else:
@@ -35,9 +36,8 @@ for e in earn_heads:
col.append(['Arrear Amount','Currency','150px',''])
col.append(['Encashment Amount','Currency','170px',''])
col.append(['Gross Pay','Currency','150px',''])
-
for d in ded_heads:
- l = (len(d)*9)
+ l = (len(cstr(d))*9)
if l < 150 : col_width = '150px'
else: col_width = '%spx'%(l)
col.append([d,'Currency',col_width,''])
@@ -54,7 +54,6 @@ for c in col:
grand_tot = 0
for r in res:
-
for i in range(6,len(colnames)):
if colnames[i] not in ('Arrear Amount','Encashment Amount','Net Pay','Gross Pay','Total Deduction'):
amt = sql("select e_modified_amount from `tabSalary Slip Earning` where e_type = '%s' and parent = '%s'"%(colnames[i],r[0]))
@@ -65,7 +64,6 @@ for r in res:
else:
fld_nm = cstr(colnames[i]).lower().replace(' ','_')
- errprint(fld_nm)
tot = sql("select %s from `tabSalary Slip` where name ='%s'"%(fld_nm,r[0]))
tot = tot and flt(tot[0][0]) or 0
if colnames[i] == 'Net Pay':
@@ -75,4 +73,4 @@ for r in res:
gt_row = ['' for i in range(len(colnames))]
gt_row[col_idx['Employee Name']] = 'Grand Totals'
gt_row[col_idx['Net Pay']-1] = fmt_money(grand_tot)
-res.append(gt_row)
+res.append(gt_row)
\ No newline at end of file
diff --git a/erpnext/patches/may_2012/reload_so_pending_items.py b/erpnext/patches/may_2012/reload_so_pending_items.py
new file mode 100644
index 00000000000..8c9aee7d52c
--- /dev/null
+++ b/erpnext/patches/may_2012/reload_so_pending_items.py
@@ -0,0 +1,8 @@
+def execute():
+ import webnotes
+ from webnotes.model import delete_doc
+ delete_doc("Search Criteria", "sales_order_pending_items1")
+
+ webnotes.conn.sql("update `tabSearch Criteria` set module = 'Selling' where module = 'CRM'")
+ from webnotes.modules import reload_doc
+ reload_doc('selling', 'search_criteria', 'sales_order_pending_items')
\ No newline at end of file
diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py
index 727fa228fd2..c9ae44b3875 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -362,5 +362,10 @@ patch_list = [
'patch_file': 'std_pf_readonly',
'description': 'Make standard print formats readonly for system manager'
},
+ {
+ 'patch_module': 'patches.may_2012',
+ 'patch_file': 'reload_so_pending_items',
+ 'description': 'reload so pending items'
+ },
]
diff --git a/erpnext/selling/Print Format/Quotation Classic/Quotation Classic.txt b/erpnext/selling/Print Format/Quotation Classic/Quotation Classic.txt
index a912888a604..719c572b407 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\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\t
\n\t\t\t\t\t\t
Name
\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
Address
\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
Contact
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
Quotation Date
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\t\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
\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\tTerms, Conditions & Other Information: \n\t\t\t\t\t\n\t\t\t\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
\n\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
Net Total
\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
Grand Total
\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
Rounded Total
\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
\n\t\t\t\t\t In Words \n\t\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
\n',
+ 'module': u'Selling',
'name': '__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 dd603b36976..7532bd32a7b 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\t
\n\t\t\t\t\t\t
Name
\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
Address
\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
Contact
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t\t\t\t
Sales Order Date
\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
Delivery Date
\n\t\t\t\t\t\t
\n\t\t\t\t\t
\t\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
\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\tTerms, Conditions & Other Information: \n\t\t\t\t\t\n\t\t\t\t