From 051d0ab79a17464db3f642676393bdc20cc29213 Mon Sep 17 00:00:00 2001 From: Neil Trini Lasrado Date: Tue, 21 Apr 2015 19:04:36 +0530 Subject: [PATCH] function name validate cost changed to update cost in Time Log --- erpnext/projects/doctype/time_log/time_log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/erpnext/projects/doctype/time_log/time_log.py b/erpnext/projects/doctype/time_log/time_log.py index 25383a0b09d..f7b501d4519 100644 --- a/erpnext/projects/doctype/time_log/time_log.py +++ b/erpnext/projects/doctype/time_log/time_log.py @@ -25,7 +25,7 @@ class TimeLog(Document): self.validate_production_order() self.validate_manufacturing() self.validate_task() - self.validate_cost() + self.update_cost() def on_submit(self): self.update_production_order() @@ -211,7 +211,7 @@ class TimeLog(Document): self.operation = None self.quantity = None - def validate_cost(self): + def update_cost(self): rate = get_activity_cost(self.employee, self.activity_type) if rate: self.costing_rate = rate.get('costing_rate')