Forum

First day of the we...
 
Notifications
Retirer tout

First day of the week

6 Posts
3 Utilisateurs
0 Reactions
3,026 Vu
(@mohamedabdelwahed)
Posts: 17
Eminent Member
Début du sujet
 
[#5616]

Gentlemen ,
Off days are Friday and Saturday which is set in the global parameters , However in the time sheet still Monday is the first day of the week , How can this be solved.
Regards


 
Posté : 11/12/2018 5:28 pm
(@babynus)
Posts: 14952
Membre Admin
 

Timesheet screen does not depend on off days.
I always start on monday...


 
Posté : 11/12/2018 5:41 pm
(@mohamedabdelwahed)
Posts: 17
Eminent Member
Début du sujet
 

You always start on Monday because it is the first working day in Europe and USA , In the middeleast the first day working day is Sunday and some places it is Saturday , Can enhancement be added to this area allowing you to choose the first day appearing in the week of time sheet


 
Posté : 12/12/2018 1:29 pm
(@babynus)
Posts: 14952
Membre Admin
 

Hi,

The request already exists in the roadmap (#2704) with low priority (high cost, low benefit)


 
Posté : 12/12/2018 2:01 pm
(@ma_bou)
Posts: 24
Trusted Member
 

Hello,

I'm looking to modify the code myself to implement that function since it will be easier for our organization.

Could you point me out where to start looking since projeqtor is a big project.

Regards


 
Posté : 27/07/2020 3:03 pm
(@babynus)
Posts: 14952
Membre Admin
 

Unfortunately it(s not an easy piece of cake.
There are many places where "firt day of week" is important.

Maybe you can have a look at function

function firstDayofWeek($week=null, $year=null) {

because this, at least, will have to be changed.

But it's not the only one. Have a look at

function lastDayofWeek($week=null, $year=null) {
function weekNumber($dateValue) {
function weekFormat($dateValue) {
function getWeekNumberFromDate($date) {

and possibly other functions (at least all thoose who deal with week)

Andd there you'll have to investagate everywhere thoose functions are called to check how their result is used...


 
Posté : 28/07/2020 11:21 am
Share:
Retour en haut