Skip to content

fix msp imports of exception times  #3766

@myoualid

Description

@myoualid

Take this below scenario, tweaked from an .xml given by a user:
according to MSP data structure: DayType=0 --> Exception
Except for the usual namespace , there's also this exception nested inside a standard work week.

(This suggests that for a given calendar with standard work hours, there is an exception day where Working Times do not apply and instead, the exception day's work times are to be used during a given time period)

<WeekDays>
   <WeekDay>
      <DayType>5</DayType>
      <DayWorking>1</DayWorking>
      <WorkingTimes>
         <WorkingTime>
            <FromTime>08:00:00</FromTime>
            <ToTime>12:00:00</ToTime>
         </WorkingTime>
         <WorkingTime>
            <FromTime>13:00:00</FromTime>
            <ToTime>17:00:00</ToTime>
         </WorkingTime>
      </WorkingTimes>
   </WeekDay>
   <WeekDay>
      <DayType>6</DayType>
      <DayWorking>1</DayWorking>
      <WorkingTimes>
         <WorkingTime>
            <FromTime>08:00:00</FromTime>
            <ToTime>12:00:00</ToTime>
         </WorkingTime>
         <WorkingTime>
            <FromTime>13:00:00</FromTime>
            <ToTime>17:00:00</ToTime>
         </WorkingTime>
      </WorkingTimes>
   </WeekDay>
   <WeekDay>
      <DayType>7</DayType>
      <DayWorking>0</DayWorking>
   </WeekDay>
<WeekDay>
	<DayType>0</DayType>
	<DayWorking>1</DayWorking>
	<TimePeriod>
		<FromDate>2018-10-12T00:00:00</FromDate>
		<ToDate>2018-10-12T23:59:00</ToDate>
	</TimePeriod>
	<WorkingTimes>
		<WorkingTime>
			<FromTime>09:00:00</FromTime>
			<ToTime>12:00:00</ToTime>
		</WorkingTime>
		<WorkingTime>
			<FromTime>13:00:00</FromTime>
			<ToTime>18:00:00</ToTime>
		</WorkingTime>
	</WorkingTimes>
</WeekDay>
</WeekDays>

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions