Compare commits
4 Commits
0f071e6dda
...
cd075e628e
| Author | SHA1 | Date |
|---|---|---|
|
|
cd075e628e | |
|
|
aa9f2aa12d | |
|
|
1fb8f3b552 | |
|
|
52e90b5d04 |
|
|
@ -146,10 +146,10 @@ export class NetflixProfileContainer extends Component {
|
|||
attendanceLines.forEach(line => {
|
||||
let createDate = new Date(line.create_date);
|
||||
line.create_date = createDate.toISOString().split('T')[0]; // Format as 'YYYY-MM-DD'
|
||||
let checkIn = new Date(line.check_in);
|
||||
line.check_in = checkIn.toTimeString().slice(0, 5); // Format as 'HH:MM'
|
||||
let checkOut = new Date(line.check_out);
|
||||
line.check_out = checkOut.toTimeString().slice(0, 5); // Format as 'HH:MM'
|
||||
let checkIn = new Date(line.check_in + 'Z');
|
||||
line.check_in = checkIn.toLocaleTimeString([], {hour: '2-digit', minute: '2-digit', timeZone:'Asia/Kolkata'}); // Format as 'HH:MM'
|
||||
let checkOut = new Date(line.check_out + 'Z');
|
||||
line.check_out = checkOut.toLocaleTimeString([], {hour: '2-digit', minute: '2-digit', timeZone:'Asia/Kolkata'}); // Format as 'HH:MM'
|
||||
line.worked_hours = line.worked_hours.toFixed(2);
|
||||
});
|
||||
this.state.attendance_lines = attendanceLines,
|
||||
|
|
|
|||
|
|
@ -241,22 +241,26 @@
|
|||
</xpath>
|
||||
<xpath expr="//group[@name='milestone']" position="replace">
|
||||
<group name="milestone">
|
||||
<div class="o_td_label">
|
||||
<label for="experience_required" string="Experience Required"/>
|
||||
</div>
|
||||
<div>
|
||||
<field name="experience_required"/>
|
||||
</div>
|
||||
<div class="o_td_label" invisible="!experience_required">
|
||||
|
||||
<div class="o_td_label" invisible="not experience_required">
|
||||
<label for="start_count" string="Employee total Experience"/>
|
||||
</div>
|
||||
<div invisible="!experience_required">Min
|
||||
<field name="start_count" style="width: 2rem" invisible="!experience_required"
|
||||
<div invisible="not experience_required">Min
|
||||
<field name="start_count" style="width: 2rem" invisible="not experience_required"
|
||||
required="experience_required and (max_start_count > 0 or max_start_type != False)"/>
|
||||
<field name="start_type" style="width: 4.75rem" invisible="!experience_required"
|
||||
<field name="start_type" style="width: 4.75rem" invisible="not experience_required"
|
||||
required="experience_required and (max_start_count > 0 or max_start_type != False)"/>
|
||||
&
|
||||
Max of
|
||||
<field name="max_start_count" style="width: 2rem" invisible="!experience_required"
|
||||
<field name="max_start_count" style="width: 2rem" invisible="not experience_required"
|
||||
required="experience_required and (start_count > 0 or start_type != False)"/>
|
||||
<field name="max_start_type" style="width: 4.75rem" invisible="!experience_required"
|
||||
<field name="max_start_type" style="width: 4.75rem" invisible="not experience_required"
|
||||
required="experience_required and (start_count > 0 or start_type != False)"/>
|
||||
|
||||
Experience is required
|
||||
|
|
|
|||
Loading…
Reference in New Issue