Hello!
I have a problem at job cards section. When i want to start the job, i get this error: Row 1: From time must be less than to time. But my Time log is empty. How can i solve this bug? I use ERPNext: v12.10.1 (version-12) and Frappe Framework: v12.8.4 (version-12). It is possible to be already solved in a newer version?
EDIT_1:
Here is an image with the error:
This appear when i press the start
button. Mean while the time log
is empty:
And the error log in console is:
Traceback (most recent call last):
File "/home/bench/erpnext/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 273, in save
return self._save(*args, **kwargs)
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 309, in _save
self.run_before_save_methods()
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 896, in run_before_save_methods
self.run_method("validate")
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 797, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 1071, in composer
return composed(self, method, *args, **kwargs)
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 1054, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 791, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/bench/erpnext/apps/erpnext/erpnext/manufacturing/doctype/job_card/job_card.py", line 14, in validate
self.validate_time_logs()
File "/home/bench/erpnext/apps/erpnext/erpnext/manufacturing/doctype/job_card/job_card.py", line 24, in validate_time_logs
frappe.throw(_("Row {0}: From time must be less than to time").format(d.idx))
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 376, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable)
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 355, in msgprint
_raise_exception()
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 315, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Row 1: From time must be less than to time
request.js:355 Traceback (most recent call last):
File "/home/bench/erpnext/apps/frappe/frappe/app.py", line 64, in application
response = frappe.api.handle()
File "/home/bench/erpnext/apps/frappe/frappe/api.py", line 59, in handle
return frappe.handler.handle()
File "/home/bench/erpnext/apps/frappe/frappe/handler.py", line 24, in handle
data = execute_cmd(cmd)
File "/home/bench/erpnext/apps/frappe/frappe/handler.py", line 63, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 1054, in call
return fn(*args, **newargs)
File "/home/bench/erpnext/apps/frappe/frappe/desk/form/save.py", line 22, in savedocs
doc.save()
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 273, in save
return self._save(*args, **kwargs)
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 309, in _save
self.run_before_save_methods()
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 896, in run_before_save_methods
self.run_method("validate")
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 797, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 1071, in composer
return composed(self, method, *args, **kwargs)
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 1054, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/bench/erpnext/apps/frappe/frappe/model/document.py", line 791, in <lambda>
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/bench/erpnext/apps/erpnext/erpnext/manufacturing/doctype/job_card/job_card.py", line 14, in validate
self.validate_time_logs()
File "/home/bench/erpnext/apps/erpnext/erpnext/manufacturing/doctype/job_card/job_card.py", line 24, in validate_time_logs
frappe.throw(_("Row {0}: From time must be less than to time").format(d.idx))
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 376, in throw
msgprint(msg, raise_exception=exc, title=title, indicator='red', is_minimizable=is_minimizable)
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 355, in msgprint
_raise_exception()
File "/home/bench/erpnext/apps/frappe/frappe/__init__.py", line 315, in _raise_exception
raise raise_exception(msg)
frappe.exceptions.ValidationError: Row 1: From time must be less than to time
I don’t know if it is relevant but i also have this 404
error:
DevTools failed to load SourceMap: Could not load content for http://<mydomain>/assets/js/awesomplete.min.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE