Skip to content

Commit

Permalink
[FIX]修改
Browse files Browse the repository at this point in the history
  • Loading branch information
yxs1205 committed Mar 21, 2017
1 parent 79579e6 commit 0a778a3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion staff_wages/demo/staff_wages_demo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<data>
<!--员工工资-->
<record id='staff_wages_lili' model='staff.wages'>
<field name='date'>2017-03-20</field>
<field name='date'>2017-01-20</field>
<field name='payment' ref='core.alipay'/>
</record>
<record id='staff_wages_line' model='wages.line'>
Expand Down
4 changes: 3 additions & 1 deletion staff_wages/tests/test_staff_wages.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
from odoo.tests.common import TransactionCase


class test_staff_wages(TransactionCase):

def setUp(self):
Expand All @@ -14,6 +15,8 @@ def test_compute_period_id(self):
def test_total_amount_wage(self):
for line in self.staff_wages.line_ids:
line.change_social_security()
line._all_wage_value()
line.change_wage_addhour()
self.staff_wages._total_amount_wage()
self.assertAlmostEqual(self.staff_wages.totoal_amount, 2463.64)
self.assertAlmostEqual(self.staff_wages.totoal_wage, 2863.64)
Expand All @@ -23,4 +26,3 @@ def test_total_amount_wage(self):
self.assertAlmostEqual(self.staff_wages.totoal_housing_fund, 100)
self.assertAlmostEqual(self.staff_wages.totoal_personal_tax, 0)


0 comments on commit 0a778a3

Please sign in to comment.