[freeside-commits] branch FREESIDE_4_BRANCH updated. af83a2daa732fd10663da2bee1ac745b635213df

Ivan Kohler ivan at freeside.biz
Sat Apr 11 12:14:29 PDT 2020


The branch, FREESIDE_4_BRANCH has been updated
       via  af83a2daa732fd10663da2bee1ac745b635213df (commit)
      from  742d3de7641cdd18ef35d4c6b7e843315914d2d2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit af83a2daa732fd10663da2bee1ac745b635213df
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Apr 11 12:14:28 2020 -0700

    clarification

diff --git a/FS/FS/part_event/Condition/holiday.pm b/FS/FS/part_event/Condition/holiday.pm
index 1639a17a6..77538b009 100644
--- a/FS/FS/part_event/Condition/holiday.pm
+++ b/FS/FS/part_event/Condition/holiday.pm
@@ -34,10 +34,8 @@ tie my %holidays, 'Tie::IxHash',
     => { 'rule' => 'RRULE:FREQ=YEARLY;BYMONTH=12;BYMONTHDAY=25' }, # December 25
 ;
 
-my $oneday = DateTime::Duration->new(days => 1);
-
 sub description {
-  "Do not run on holidays",
+  "Do not run on US holidays",
 }
 
 sub option_fields {
@@ -52,6 +50,8 @@ sub option_fields {
   );
 }
 
+my $oneday = DateTime::Duration->new(days => 1);
+
 sub condition {
   my( $self, $object, %opt ) = @_;
   my $today = DateTime->from_epoch(

-----------------------------------------------------------------------

Summary of changes:
 FS/FS/part_event/Condition/holiday.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)




More information about the freeside-commits mailing list