@@ -185,9 +185,9 @@ IPluginDbOptions<TimePlanningBaseSettings> options
185185 {
186186 if ( dbAssignedSite . UseGoogleSheetAsDefault )
187187 {
188- if ( ! string . IsNullOrEmpty ( planRegistration . PlanText ) )
188+ if ( planRegistration . Date > dayOfPayment && ! planRegistration . PlanChangedByAdmin )
189189 {
190- if ( planRegistration . Date > dayOfPayment && ! planRegistration . PlanChangedByAdmin )
190+ if ( ! string . IsNullOrEmpty ( planRegistration . PlanText ) )
191191 {
192192 var splitList = planRegistration . PlanText . Split ( ';' ) ;
193193 var firsSplit = splitList [ 0 ] ;
@@ -541,6 +541,24 @@ IPluginDbOptions<TimePlanningBaseSettings> options
541541
542542 }
543543 }
544+ else
545+ {
546+ planRegistration . PlannedStartOfShift1 = 0 ;
547+ planRegistration . PlannedEndOfShift1 = 0 ;
548+ planRegistration . PlannedBreakOfShift1 = 0 ;
549+ planRegistration . PlannedStartOfShift2 = 0 ;
550+ planRegistration . PlannedEndOfShift2 = 0 ;
551+ planRegistration . PlannedBreakOfShift2 = 0 ;
552+ planRegistration . PlannedStartOfShift3 = 0 ;
553+ planRegistration . PlannedEndOfShift3 = 0 ;
554+ planRegistration . PlannedBreakOfShift3 = 0 ;
555+ planRegistration . PlannedStartOfShift4 = 0 ;
556+ planRegistration . PlannedEndOfShift4 = 0 ;
557+ planRegistration . PlannedBreakOfShift4 = 0 ;
558+ planRegistration . PlannedStartOfShift5 = 0 ;
559+ planRegistration . PlannedEndOfShift5 = 0 ;
560+ planRegistration . PlannedBreakOfShift5 = 0 ;
561+ }
544562 }
545563
546564 var preTimePlanning =
@@ -1187,10 +1205,10 @@ DateTime dayOfPayment
11871205 {
11881206 if ( dbAssignedSite . UseGoogleSheetAsDefault )
11891207 {
1208+ if ( planRegistration . Date > dayOfPayment && ! planRegistration . PlanChangedByAdmin )
1209+ {
11901210 if ( ! string . IsNullOrEmpty ( planRegistration . PlanText ) )
11911211 {
1192- if ( planRegistration . Date > dayOfPayment && ! planRegistration . PlanChangedByAdmin )
1193- {
11941212 var splitList = planRegistration . PlanText . Split ( ';' ) ;
11951213 var firsSplit = splitList [ 0 ] ;
11961214
@@ -1524,6 +1542,24 @@ DateTime dayOfPayment
15241542
15251543 }
15261544 }
1545+ else
1546+ {
1547+ planRegistration . PlannedStartOfShift1 = 0 ;
1548+ planRegistration . PlannedEndOfShift1 = 0 ;
1549+ planRegistration . PlannedBreakOfShift1 = 0 ;
1550+ planRegistration . PlannedStartOfShift2 = 0 ;
1551+ planRegistration . PlannedEndOfShift2 = 0 ;
1552+ planRegistration . PlannedBreakOfShift2 = 0 ;
1553+ planRegistration . PlannedStartOfShift3 = 0 ;
1554+ planRegistration . PlannedEndOfShift3 = 0 ;
1555+ planRegistration . PlannedBreakOfShift3 = 0 ;
1556+ planRegistration . PlannedStartOfShift4 = 0 ;
1557+ planRegistration . PlannedEndOfShift4 = 0 ;
1558+ planRegistration . PlannedBreakOfShift4 = 0 ;
1559+ planRegistration . PlannedStartOfShift5 = 0 ;
1560+ planRegistration . PlannedEndOfShift5 = 0 ;
1561+ planRegistration . PlannedBreakOfShift5 = 0 ;
1562+ }
15271563 }
15281564
15291565 var preTimePlanning =
0 commit comments