@@ -222,16 +222,16 @@ public function getForm( $entry = null )
222222 'value ' => 'x_after_month_starts ' ,
223223 ],
224224 ],
225- 'name ' => 'occurence ' ,
225+ 'name ' => 'occurrence ' ,
226226 'label ' => __ ( 'Occurrence ' ),
227227 'description ' => __ ( 'Define how often this expenses occurs ' ),
228- 'value ' => $ entry ->occurence ?? '' ,
228+ 'value ' => $ entry ->occurrence ?? '' ,
229229 ], [
230230 'type ' => 'text ' ,
231- 'name ' => 'occurence_value ' ,
231+ 'name ' => 'occurrence_value ' ,
232232 'label ' => __ ( 'Occurrence Value ' ),
233233 'description ' => __ ( 'Must be used in case of X days after month starts and X days before month ends. ' ),
234- 'value ' => $ entry ->occurence_value ?? '' ,
234+ 'value ' => $ entry ->occurrence_value ?? '' ,
235235 ], [
236236 'type ' => 'textarea ' ,
237237 'name ' => 'description ' ,
@@ -406,7 +406,7 @@ public function getColumns()
406406 '$direction ' => '' ,
407407 '$sort ' => false ,
408408 ],
409- 'occurence ' => [
409+ 'occurrence ' => [
410410 'label ' => __ ( 'Occurrence ' ),
411411 '$direction ' => '' ,
412412 '$sort ' => false ,
@@ -432,18 +432,18 @@ public function setActions( CrudEntry $entry, $namespace )
432432 $ entry ->value = (string ) ns ()->currency ->value ( $ entry ->value );
433433 $ entry ->recurring = (bool ) $ entry ->recurring ? __ ( 'Yes ' ) : __ ( 'No ' );
434434
435- switch ( $ entry ->occurence ) {
436- case 'month_start ' : $ entry ->occurence = __ ( 'Month Starts ' );
435+ switch ( $ entry ->occurrence ) {
436+ case 'month_start ' : $ entry ->occurrence = __ ( 'Month Starts ' );
437437 break ;
438- case 'month_mid ' : $ entry ->occurence = __ ( 'Month Middle ' );
438+ case 'month_mid ' : $ entry ->occurrence = __ ( 'Month Middle ' );
439439 break ;
440- case 'month_end ' : $ entry ->occurence = __ ( 'Month Ends ' );
440+ case 'month_end ' : $ entry ->occurrence = __ ( 'Month Ends ' );
441441 break ;
442- case 'x_after_month_starts ' : $ entry ->occurence = __ ( 'X Days Before Month Starts ' );
442+ case 'x_after_month_starts ' : $ entry ->occurrence = __ ( 'X Days Before Month Starts ' );
443443 break ;
444- case 'x_before_month_ends ' : $ entry ->occurence = __ ( 'X Days Before Month Ends ' );
444+ case 'x_before_month_ends ' : $ entry ->occurrence = __ ( 'X Days Before Month Ends ' );
445445 break ;
446- default : $ entry ->occurence = __ ( 'Unknown Occurrence ' );
446+ default : $ entry ->occurrence = __ ( 'Unknown Occurrence ' );
447447 break ;
448448 }
449449
0 commit comments