mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 12:49:10 +00:00
actual start and end date calculation - call moved to submit and cancel of Time Log
This commit is contained in:
@@ -7,11 +7,6 @@ $.extend(cur_frm.cscript, {
|
|||||||
cfn_set_fields(doc, dt, dn);
|
cfn_set_fields(doc, dt, dn);
|
||||||
|
|
||||||
this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date");
|
this.frm.add_fetch("sales_order", "delivery_date", "expected_delivery_date");
|
||||||
|
|
||||||
return this.frm.call({
|
|
||||||
doc: this.frm.doc,
|
|
||||||
method: "set_actual_dates"
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
before_submit: function() {
|
before_submit: function() {
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ class TimeLog(Document):
|
|||||||
pro_order.ignore_validate_update_after_submit = True
|
pro_order.ignore_validate_update_after_submit = True
|
||||||
pro_order.update_operation_status()
|
pro_order.update_operation_status()
|
||||||
pro_order.calculate_operating_cost()
|
pro_order.calculate_operating_cost()
|
||||||
|
pro_order.set_actual_dates()
|
||||||
pro_order.save()
|
pro_order.save()
|
||||||
|
|
||||||
def get_operation_start_end_time(self):
|
def get_operation_start_end_time(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user