fixed bug with employee_number
This commit is contained in:
parent
c28c968710
commit
dca5a13de3
|
|
@ -1594,6 +1594,7 @@ def create_single_employee_from_amas(asan_login_name, employee_data, company, cr
|
||||||
emp.last_name = last_name
|
emp.last_name = last_name
|
||||||
emp.company = company
|
emp.company = company
|
||||||
emp.passport_number = fin
|
emp.passport_number = fin
|
||||||
|
emp.employee_number = fin
|
||||||
emp.date_of_birth = dob or "2000-01-01"
|
emp.date_of_birth = dob or "2000-01-01"
|
||||||
emp.date_of_joining = doj or frappe.utils.today()
|
emp.date_of_joining = doj or frappe.utils.today()
|
||||||
emp.gender = gender
|
emp.gender = gender
|
||||||
|
|
@ -1879,6 +1880,7 @@ def create_single_employee_from_amas(asan_login_name, emp_data, company, create_
|
||||||
emp.last_name = last_name
|
emp.last_name = last_name
|
||||||
emp.company = company
|
emp.company = company
|
||||||
emp.passport_number = fin
|
emp.passport_number = fin
|
||||||
|
emp.employee_number = fin
|
||||||
emp.date_of_birth = dob or "2000-01-01"
|
emp.date_of_birth = dob or "2000-01-01"
|
||||||
emp.date_of_joining = doj or frappe.utils.today()
|
emp.date_of_joining = doj or frappe.utils.today()
|
||||||
emp.gender = gender
|
emp.gender = gender
|
||||||
|
|
@ -2186,6 +2188,7 @@ def create_employees_from_amas(asan_login_name, employees, company, create_desig
|
||||||
emp.last_name = last_name
|
emp.last_name = last_name
|
||||||
emp.company = company
|
emp.company = company
|
||||||
emp.passport_number = fin
|
emp.passport_number = fin
|
||||||
|
emp.employee_number = fin
|
||||||
emp.date_of_birth = dob or "2000-01-01"
|
emp.date_of_birth = dob or "2000-01-01"
|
||||||
emp.date_of_joining = doj or frappe.utils.today()
|
emp.date_of_joining = doj or frappe.utils.today()
|
||||||
emp.gender = gender
|
emp.gender = gender
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,18 @@ frappe.ui.form.on('E-Taxes Settings', {
|
||||||
bulk_edit_table(frm, 'unit_mappings');
|
bulk_edit_table(frm, 'unit_mappings');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
frm.fields_dict['customer_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
|
||||||
|
bulk_edit_table(frm, 'customer_mappings');
|
||||||
|
});
|
||||||
|
|
||||||
|
frm.fields_dict['supplier_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
|
||||||
|
bulk_edit_table(frm, 'supplier_mappings');
|
||||||
|
});
|
||||||
|
|
||||||
|
frm.fields_dict['vat_account_mappings'].grid.add_custom_button(__('Bulk Edit'), function() {
|
||||||
|
bulk_edit_table(frm, 'vat_account_mappings');
|
||||||
|
});
|
||||||
|
|
||||||
// Items section buttons
|
// Items section buttons
|
||||||
frm.add_custom_button(__('Match items by similar name'), function() {
|
frm.add_custom_button(__('Match items by similar name'), function() {
|
||||||
if(frm.is_dirty()) {
|
if(frm.is_dirty()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue