Calendar display for employee

  • Xavier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #32439 by Xavier
Calendar display for employee was created by Xavier
I have several questions regarding the employee layout:

1) The filter seem to be not working. I try to filter the date where have appointments but it is not displaying anything and only display "no work found" and I can see the work clearly on the "My working Calendar"

2) On the my working Calendar, is there anyway I can put it to display custom fields to replace the additional info? What is the data that additional info capture anyway?


Thanks

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32450 by Mr. Dam
Replied by Mr. Dam on topic Re: Calendar display for employee
Hi Xavier,
1. I will check the issue again, if it's the bug, i will fix and let you know how to solve it.
2. Can you explain more details, if you can please attach the picture to make it clearer.
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Xavier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago - 10 years 10 months ago #32451 by Xavier
Replied by Xavier on topic Re: Calendar display for employee
Hi Dam,

Thanks for your reply. Do provide me the solution for item 1 once you got it

For item 2, please see below, the additional information is empty but surprisingly, after I activate the employee calendar, the custom field information appear on additional information there. The picture below are task that already schedule in before activate this option on the menu.
You can see the additional information is empty ( The custom field are there but not shown)


After I activate the employee layout in the menu, surprisingly it captured the new scheduled with custom field information as per below.



Is it a normal behavior as in I need to activate it in the menu first before it will capture new data in the custom field?
Attachments:
Last edit: 10 years 10 months ago by Xavier.

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32480 by Mr. Dam
Replied by Mr. Dam on topic Re: Calendar display for employee
Sorry, but there are 2 different days in your screenshots?
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Xavier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #32483 by Xavier
Replied by Xavier on topic Re: Calendar display for employee
Hi Dam,

That is what I am trying to show. the 1st picture did not capture the custom field ( the date was booked before I activate the employee layout in the menu) and the 2nd picture captured the custom field ( The date was booked after I activated the employee layout) Anyway, this is no longer a concern since it manage to capture the custom field info in the additional info for the new booking)

I am more concern on the filtering. It seem to be not working at all. Please advice

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32490 by Mr. Dam
Replied by Mr. Dam on topic Re: Calendar display for employee
Hi Xavier,
Please send me ftp of your site to : damdt@joomservices.com. I will help you to update the filter function
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Xavier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #32493 by Xavier
Replied by Xavier on topic Re: Calendar display for employee
Hi Dam,

Is this a bug? If this is a bug, can you issue a solution for me here instead? I might be putting this on other sites as well and it will be very inefficient if I need to provide you the Ftp of other sites that might have this component.


Thanks

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32495 by Mr. Dam
Replied by Mr. Dam on topic Re: Calendar display for employee
Hi Xavier,
Yes, it's the bug. To fix it. Please follow these steps :
1. Open file
components > com_osservicesbooking > classes > default.php
2. find
$date = "";
if($date1 != ""){
$date = " and a.booking_date >= '$date1'";
}
if($date2 != ""){
$date = " and a.booking_date <= '$date2'";
}
and change to

$date = "";
if($date1 != ""){
$date .= " and a.booking_date >= '$date1'";
}
if($date2 != ""){
$date .= " and a.booking_date <= '$date2'";
}


Please do not make backup file and put it at the same folder "classes"
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • Xavier
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 10 months ago #32503 by Xavier
Replied by Xavier on topic Re: Calendar display for employee
Hi Dam,

I tried to replace those lines by following your instruction but seem to be not effective. It still show no work found. Can you please advice?

Please Log in or Create an account to join the conversation.

More
10 years 10 months ago #32509 by Mr. Dam
Replied by Mr. Dam on topic Re: Calendar display for employee
Hi Xavier,
Please send your site information with super admin acc, ftp account to : damdt@joomservices.com i will fix the issue for you
Thanks
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam