when compute, it should get level directly from current staff level
parent
8e091e131b
commit
eb4f63e3c6
|
@ -281,7 +281,10 @@ class LaborCost(Model):
|
|||
# cost's nurses
|
||||
for line in item.lines:
|
||||
nurse=line.nurse_id
|
||||
level=line.level_id or nurse.level_id
|
||||
#level=line.level_id or nurse.level_id
|
||||
level=nurse.level_id
|
||||
if not level:
|
||||
raise Exception("Please specify level for %s"%nurse.name)
|
||||
vals=levels.get(level.id)
|
||||
rate,amt,qty=0.0,0.0,0
|
||||
level_id=level.id
|
||||
|
|
Loading…
Reference in New Issue