Fixed error messages while making Time Log Batch from Time Log List view
diff --git a/erpnext/projects/doctype/time_log/time_log_list.js b/erpnext/projects/doctype/time_log/time_log_list.js
index a2eb05c..361a930 100644
--- a/erpnext/projects/doctype/time_log/time_log_list.js
+++ b/erpnext/projects/doctype/time_log/time_log_list.js
@@ -18,12 +18,20 @@
for(var i in selected) {
var d = selected[i];
if(!d.billable) {
- msgprint(__("Time Log is not billable") + ": " + d.name);
+ msgprint(__("Time Log is not billable") + ": " + d.name + " - " + d.title);
+ return;
+ }
+ if(d.status=="Batched for Billing") {
+ msgprint(__("Time Log has been Batched for Billing") + ": " + d.name + " - " + d.title);
+ return;
+ }
+ if(d.status=="Billed") {
+ msgprint(__("Time Log has been Billed") + ": " + d.name + " - " + d.title);
return;
}
if(d.status!="Submitted") {
- msgprint(__("Time Log Status must be Submitted."));
- return
+ msgprint(__("Time Log Status must be Submitted.") + ": " + d.name + " - " + d.title);
+ return;
}
}