mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-15 09:53:09 +00:00
fix: Travis (#25078)
* fix(test): set default accounts in mode of payment * fix(test): import_doc params in shopify settings test * fix: syntax error in salary slip test * fix(test): use Temporary Opening account for Stock Reco opening entry * fix(test): skip GST doc naming validations for tests * fix(test): Salary Structure Assignment date edge case * fix(test): GST doc naming validations * fix: sider * revert: skip GST doc naming validations for tests
This commit is contained in:
@@ -312,7 +312,7 @@ class TestSalarySlip(unittest.TestCase):
|
||||
frappe.db.sql("DELETE FROM `tabSalary Slip` where employee_name = 'test_ytd@salary.com'")
|
||||
|
||||
create_salary_slips_for_payroll_period(applicant, salary_structure.name,
|
||||
payroll_period, deduct_random=False)
|
||||
payroll_period, deduct_random=False, num=6)
|
||||
|
||||
salary_slips = frappe.get_all('Salary Slip', fields=['year_to_date', 'net_pay'], filters={'employee_name':
|
||||
'test_ytd@salary.com'}, order_by = 'posting_date')
|
||||
|
||||
@@ -164,7 +164,13 @@ def create_salary_structure_assignment(employee, salary_structure, from_date=Non
|
||||
salary_structure_assignment.employee = employee
|
||||
salary_structure_assignment.base = 50000
|
||||
salary_structure_assignment.variable = 5000
|
||||
salary_structure_assignment.from_date = from_date or add_days(nowdate(), -1)
|
||||
|
||||
if getdate(nowdate()).day == 1:
|
||||
date = from_date or nowdate()
|
||||
else:
|
||||
date = from_date or add_days(nowdate(), -1)
|
||||
|
||||
salary_structure_assignment.from_date = date
|
||||
salary_structure_assignment.salary_structure = salary_structure
|
||||
salary_structure_assignment.currency = currency
|
||||
salary_structure_assignment.payroll_payable_account = get_payable_account(company)
|
||||
|
||||
Reference in New Issue
Block a user