[Minor] Demo fixes (#7499)
This commit is contained in:
parent
4ad121e1a4
commit
b89be1e193
@ -163,11 +163,10 @@ def setup_salary_structure(employees, salary_slip_based_on_timesheet=0):
|
|||||||
ss.append('deductions', {
|
ss.append('deductions', {
|
||||||
'salary_component': 'Income Tax',
|
'salary_component': 'Income Tax',
|
||||||
"abbr":'IT',
|
"abbr":'IT',
|
||||||
'condition': 'base > 1000',
|
'condition': 'base > 10000',
|
||||||
'amount': random.random() * 1000,
|
'formula': 'base*.1',
|
||||||
"idx": 1
|
"idx": 1
|
||||||
})
|
})
|
||||||
|
|
||||||
ss.insert()
|
ss.insert()
|
||||||
|
|
||||||
return ss
|
return ss
|
||||||
|
@ -304,9 +304,9 @@ class ProductionOrder(Document):
|
|||||||
|
|
||||||
def get_operations_data(self, data):
|
def get_operations_data(self, data):
|
||||||
return {
|
return {
|
||||||
'from_time': data.planned_start_time,
|
'from_time': get_datetime(data.planned_start_time),
|
||||||
'hours': data.time_in_mins / 60.0,
|
'hours': data.time_in_mins / 60.0,
|
||||||
'to_time': data.planned_end_time,
|
'to_time': get_datetime(data.planned_end_time),
|
||||||
'project': self.project,
|
'project': self.project,
|
||||||
'operation': data.operation,
|
'operation': data.operation,
|
||||||
'operation_id': data.name,
|
'operation_id': data.name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user