Merge pull request #13445 from shreyashah115/typo-in-payroll
Typo in Payroll Entry
This commit is contained in:
		
						commit
						9c1cac80fe
					
				| @ -34,14 +34,14 @@ def work(): | ||||
| 		payroll_entry.salary_slip_based_on_timesheet = 0 | ||||
| 		payroll_entry.create_salary_slips() | ||||
| 		payroll_entry.submit_salary_slips() | ||||
| 		payroll_entry.make_accural_jv_entry() | ||||
| 		payroll_entry.make_accrual_jv_entry() | ||||
| 		# payroll_entry.make_journal_entry(reference_date=frappe.flags.current_date, | ||||
| 		# 	reference_number=random_string(10)) | ||||
| 
 | ||||
| 		payroll_entry.salary_slip_based_on_timesheet = 1 | ||||
| 		payroll_entry.create_salary_slips() | ||||
| 		payroll_entry.submit_salary_slips() | ||||
| 		payroll_entry.make_accural_jv_entry() | ||||
| 		payroll_entry.make_accrual_jv_entry() | ||||
| 		# payroll_entry.make_journal_entry(reference_date=frappe.flags.current_date, | ||||
| 		# 	reference_number=random_string(10)) | ||||
| 
 | ||||
|  | ||||
| @ -164,7 +164,7 @@ class PayrollEntry(Document): | ||||
| 				except frappe.ValidationError: | ||||
| 					not_submitted_ss.append(ss_dict) | ||||
| 		if submitted_ss: | ||||
| 			jv_name = self.make_accural_jv_entry() | ||||
| 			jv_name = self.make_accrual_jv_entry() | ||||
| 			frappe.msgprint(_("Salary Slip submitted for period from {0} to {1}") | ||||
| 				.format(ss_obj.start_date, ss_obj.end_date)) | ||||
| 
 | ||||
| @ -237,7 +237,7 @@ class PayrollEntry(Document): | ||||
| 
 | ||||
| 		return payroll_payable_account | ||||
| 
 | ||||
| 	def make_accural_jv_entry(self): | ||||
| 	def make_accrual_jv_entry(self): | ||||
| 		self.check_permission('write') | ||||
| 		earnings = self.get_salary_component_total(component_type = "earnings") or {} | ||||
| 		deductions = self.get_salary_component_total(component_type = "deductions") or {} | ||||
| @ -249,7 +249,7 @@ class PayrollEntry(Document): | ||||
| 		if earnings or deductions: | ||||
| 			journal_entry = frappe.new_doc('Journal Entry') | ||||
| 			journal_entry.voucher_type = 'Journal Entry' | ||||
| 			journal_entry.user_remark = _('Accural Journal Entry for salaries from {0} to {1}')\ | ||||
| 			journal_entry.user_remark = _('Accrual Journal Entry for salaries from {0} to {1}')\ | ||||
| 				.format(self.start_date, self.end_date) | ||||
| 			journal_entry.company = self.company | ||||
| 			journal_entry.posting_date = self.posting_date | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user