Employemnt Type filter removed from salary manager
This commit is contained in:
parent
ae00547592
commit
c67e0d85d3
@ -46,7 +46,7 @@ class DocType:
|
|||||||
self.check_mandatory()
|
self.check_mandatory()
|
||||||
|
|
||||||
cond = ''
|
cond = ''
|
||||||
for f in ['company', 'branch', 'department', 'designation', 'grade', 'employment_type']:
|
for f in ['company', 'branch', 'department', 'designation', 'grade']:
|
||||||
if self.doc.fields.get(f):
|
if self.doc.fields.get(f):
|
||||||
cond += " and t1." + f + " = '" + self.doc.fields.get(f) + "'"
|
cond += " and t1." + f + " = '" + self.doc.fields.get(f) + "'"
|
||||||
|
|
||||||
|
|||||||
@ -5,18 +5,19 @@
|
|||||||
{
|
{
|
||||||
'creation': '2011-08-11 16:40:04',
|
'creation': '2011-08-11 16:40:04',
|
||||||
'docstatus': 0,
|
'docstatus': 0,
|
||||||
'modified': '2011-08-25 12:02:57',
|
'modified': '2011-11-07 10:47:32',
|
||||||
'modified_by': 'Administrator',
|
'modified_by': 'Administrator',
|
||||||
'owner': 'Administrator'
|
'owner': 'Administrator'
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocType
|
# These values are common for all DocType
|
||||||
{
|
{
|
||||||
'_last_update': '1314179318',
|
'_last_update': '1314253977',
|
||||||
'allow_copy': 1,
|
'allow_copy': 1,
|
||||||
'allow_email': 1,
|
'allow_email': 1,
|
||||||
'allow_print': 1,
|
'allow_print': 1,
|
||||||
'colour': 'White:FFF',
|
'colour': 'White:FFF',
|
||||||
|
'default_print_format': 'Standard',
|
||||||
'doctype': 'DocType',
|
'doctype': 'DocType',
|
||||||
'document_type': 'Other',
|
'document_type': 'Other',
|
||||||
'issingle': 1,
|
'issingle': 1,
|
||||||
@ -24,7 +25,7 @@
|
|||||||
'name': '__common__',
|
'name': '__common__',
|
||||||
'section_style': 'Simple',
|
'section_style': 'Simple',
|
||||||
'show_in_menu': 1,
|
'show_in_menu': 1,
|
||||||
'version': 29
|
'version': 30
|
||||||
},
|
},
|
||||||
|
|
||||||
# These values are common for all DocField
|
# These values are common for all DocField
|
||||||
@ -59,21 +60,18 @@
|
|||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': 'DocPerm',
|
'doctype': 'DocPerm',
|
||||||
'idx': 1,
|
|
||||||
'role': 'System Manager'
|
'role': 'System Manager'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': 'DocPerm',
|
'doctype': 'DocPerm',
|
||||||
'idx': 2,
|
|
||||||
'role': 'HR User'
|
'role': 'HR User'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocPerm
|
# DocPerm
|
||||||
{
|
{
|
||||||
'doctype': 'DocPerm',
|
'doctype': 'DocPerm',
|
||||||
'idx': 3,
|
|
||||||
'role': 'HR Manager'
|
'role': 'HR Manager'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -82,7 +80,6 @@
|
|||||||
'colour': 'White:FFF',
|
'colour': 'White:FFF',
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'HTML',
|
'fieldtype': 'HTML',
|
||||||
'idx': 1,
|
|
||||||
'label': 'Document Description',
|
'label': 'Document Description',
|
||||||
'options': '<div class="field_description">You can generate multiple salary slips based on the selected criteria, submit and mail those to the employee directly from here</div>'
|
'options': '<div class="field_description">You can generate multiple salary slips based on the selected criteria, submit and mail those to the employee directly from here</div>'
|
||||||
},
|
},
|
||||||
@ -90,15 +87,13 @@
|
|||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Section Break',
|
'fieldtype': 'Section Break'
|
||||||
'idx': 2
|
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Column Break',
|
'fieldtype': 'Column Break',
|
||||||
'idx': 3,
|
|
||||||
'width': '50%'
|
'width': '50%'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -107,7 +102,6 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'company',
|
'fieldname': 'company',
|
||||||
'fieldtype': 'Select',
|
'fieldtype': 'Select',
|
||||||
'idx': 4,
|
|
||||||
'label': 'Company',
|
'label': 'Company',
|
||||||
'options': 'link:Company',
|
'options': 'link:Company',
|
||||||
'reqd': 1
|
'reqd': 1
|
||||||
@ -118,7 +112,6 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'branch',
|
'fieldname': 'branch',
|
||||||
'fieldtype': 'Link',
|
'fieldtype': 'Link',
|
||||||
'idx': 5,
|
|
||||||
'label': 'Branch',
|
'label': 'Branch',
|
||||||
'options': 'Branch'
|
'options': 'Branch'
|
||||||
},
|
},
|
||||||
@ -128,7 +121,6 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'department',
|
'fieldname': 'department',
|
||||||
'fieldtype': 'Link',
|
'fieldtype': 'Link',
|
||||||
'idx': 6,
|
|
||||||
'label': 'Department',
|
'label': 'Department',
|
||||||
'options': 'Department'
|
'options': 'Department'
|
||||||
},
|
},
|
||||||
@ -138,7 +130,6 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'designation',
|
'fieldname': 'designation',
|
||||||
'fieldtype': 'Link',
|
'fieldtype': 'Link',
|
||||||
'idx': 7,
|
|
||||||
'label': 'Designation',
|
'label': 'Designation',
|
||||||
'options': 'Designation'
|
'options': 'Designation'
|
||||||
},
|
},
|
||||||
@ -147,7 +138,6 @@
|
|||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Column Break',
|
'fieldtype': 'Column Break',
|
||||||
'idx': 8,
|
|
||||||
'width': '50%'
|
'width': '50%'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -156,28 +146,16 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'grade',
|
'fieldname': 'grade',
|
||||||
'fieldtype': 'Select',
|
'fieldtype': 'Select',
|
||||||
'idx': 9,
|
|
||||||
'label': 'Grade',
|
'label': 'Grade',
|
||||||
'options': 'link:Grade'
|
'options': 'link:Grade'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
|
||||||
{
|
|
||||||
'doctype': 'DocField',
|
|
||||||
'fieldname': 'employment_type',
|
|
||||||
'fieldtype': 'Select',
|
|
||||||
'idx': 10,
|
|
||||||
'label': 'Employment Type',
|
|
||||||
'options': 'link:Employment Type'
|
|
||||||
},
|
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'colour': 'White:FFF',
|
'colour': 'White:FFF',
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'fiscal_year',
|
'fieldname': 'fiscal_year',
|
||||||
'fieldtype': 'Select',
|
'fieldtype': 'Select',
|
||||||
'idx': 11,
|
|
||||||
'label': 'Fiscal Year',
|
'label': 'Fiscal Year',
|
||||||
'options': 'link:Fiscal Year',
|
'options': 'link:Fiscal Year',
|
||||||
'reqd': 1
|
'reqd': 1
|
||||||
@ -189,7 +167,6 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'month',
|
'fieldname': 'month',
|
||||||
'fieldtype': 'Select',
|
'fieldtype': 'Select',
|
||||||
'idx': 12,
|
|
||||||
'label': 'Month',
|
'label': 'Month',
|
||||||
'options': '\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12',
|
'options': '\n01\n02\n03\n04\n05\n06\n07\n08\n09\n10\n11\n12',
|
||||||
'reqd': 1
|
'reqd': 1
|
||||||
@ -202,22 +179,19 @@
|
|||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldname': 'send_email',
|
'fieldname': 'send_email',
|
||||||
'fieldtype': 'Check',
|
'fieldtype': 'Check',
|
||||||
'idx': 13,
|
|
||||||
'label': 'Send Email'
|
'label': 'Send Email'
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Section Break',
|
'fieldtype': 'Section Break'
|
||||||
'idx': 14
|
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Column Break',
|
'fieldtype': 'Column Break',
|
||||||
'idx': 15,
|
|
||||||
'width': '50%'
|
'width': '50%'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -227,7 +201,6 @@
|
|||||||
'description': 'Creates salary slip for above mentioned criteria.',
|
'description': 'Creates salary slip for above mentioned criteria.',
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Button',
|
'fieldtype': 'Button',
|
||||||
'idx': 16,
|
|
||||||
'label': 'Create Salary Slip',
|
'label': 'Create Salary Slip',
|
||||||
'trigger': 'Client'
|
'trigger': 'Client'
|
||||||
},
|
},
|
||||||
@ -236,7 +209,6 @@
|
|||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Column Break',
|
'fieldtype': 'Column Break',
|
||||||
'idx': 17,
|
|
||||||
'width': '25%'
|
'width': '25%'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -246,7 +218,6 @@
|
|||||||
'description': 'Submit all salary slips for the above selected criteria',
|
'description': 'Submit all salary slips for the above selected criteria',
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Button',
|
'fieldtype': 'Button',
|
||||||
'idx': 18,
|
|
||||||
'label': 'Submit Salary Slip',
|
'label': 'Submit Salary Slip',
|
||||||
'trigger': 'Client'
|
'trigger': 'Client'
|
||||||
},
|
},
|
||||||
@ -255,7 +226,6 @@
|
|||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Column Break',
|
'fieldtype': 'Column Break',
|
||||||
'idx': 19,
|
|
||||||
'width': '25%'
|
'width': '25%'
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -265,7 +235,6 @@
|
|||||||
'description': 'Create Bank Voucher for the total salary paid for the above selected criteria',
|
'description': 'Create Bank Voucher for the total salary paid for the above selected criteria',
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Button',
|
'fieldtype': 'Button',
|
||||||
'idx': 20,
|
|
||||||
'label': 'Make Bank Voucher',
|
'label': 'Make Bank Voucher',
|
||||||
'trigger': 'Client'
|
'trigger': 'Client'
|
||||||
},
|
},
|
||||||
@ -273,15 +242,13 @@
|
|||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'Section Break',
|
'fieldtype': 'Section Break'
|
||||||
'idx': 21
|
|
||||||
},
|
},
|
||||||
|
|
||||||
# DocField
|
# DocField
|
||||||
{
|
{
|
||||||
'doctype': 'DocField',
|
'doctype': 'DocField',
|
||||||
'fieldtype': 'HTML',
|
'fieldtype': 'HTML',
|
||||||
'idx': 22,
|
|
||||||
'label': 'Activity Log'
|
'label': 'Activity Log'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
Loading…
x
Reference in New Issue
Block a user