@shisyamo4131/air-guard-v2-schemas 2.3.7-dev.4 → 2.3.7-dev.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/OperationResult.js
CHANGED
|
@@ -695,18 +695,12 @@ export default class SiteOperationSchedule extends Operation {
|
|
|
695
695
|
return this[prop].map((w) => {
|
|
696
696
|
const notification = notifications[w.notificationKey];
|
|
697
697
|
if (!notification) return w;
|
|
698
|
-
const {
|
|
699
|
-
actualStartTime: startTime,
|
|
700
|
-
actualEndTime: endTime,
|
|
701
|
-
actualBreakMinutes: breakMinutes,
|
|
702
|
-
actualIsStartNextDay: isStartNextDay,
|
|
703
|
-
} = notification;
|
|
704
698
|
return new SiteOperationScheduleDetail({
|
|
705
699
|
...w.toObject(),
|
|
706
|
-
startTime,
|
|
707
|
-
endTime,
|
|
708
|
-
breakMinutes,
|
|
709
|
-
isStartNextDay,
|
|
700
|
+
startTime: notification.actualStartTime,
|
|
701
|
+
endTime: notification.actualEndTime,
|
|
702
|
+
breakMinutes: notification.actualBreakMinutes,
|
|
703
|
+
isStartNextDay: notification.actualIsStartNextDay,
|
|
710
704
|
});
|
|
711
705
|
});
|
|
712
706
|
};
|
|
@@ -718,10 +712,10 @@ export default class SiteOperationSchedule extends Operation {
|
|
|
718
712
|
...this.toObject(),
|
|
719
713
|
employees,
|
|
720
714
|
outsourcers,
|
|
721
|
-
agreement: agreement || null,
|
|
715
|
+
// agreement: agreement || null,
|
|
722
716
|
siteOperationScheduleId: this.docId,
|
|
723
717
|
});
|
|
724
|
-
operationResult.refreshBillingDateAt();
|
|
718
|
+
// operationResult.refreshBillingDateAt();
|
|
725
719
|
await this.constructor.runTransaction(async (transaction) => {
|
|
726
720
|
const docRef = await operationResult.create({
|
|
727
721
|
docId: this.docId,
|