Skip to content
Permalink
Browse files

Add "National Orange Juice Day" as new campaign

  • Loading branch information
bkimminich committed Dec 19, 2019
1 parent a06b99c commit c85572ad9bcdda71fcd67b3dfb36687d1a2e46a5
Showing with 10 additions and 2 deletions.
  1. +5 −1 frontend/src/app/payment/payment.component.ts
  2. +5 −1 routes/order.js
@@ -58,7 +58,11 @@ export class PaymentComponent implements OnInit {
WMNSDY2020: { validOn: 1583622000000, discount: 60 },
WMNSDY2021: { validOn: 1615158000000, discount: 60 },
WMNSDY2022: { validOn: 1646694000000, discount: 60 },
WMNSDY2023: { validOn: 1678230000000, discount: 60 }
WMNSDY2023: { validOn: 1678230000000, discount: 60 },
ORANGE2020: { validOn: 1588546800000, discount: 50 },
ORANGE2021: { validOn: 1620082800000, discount: 40 },
ORANGE2022: { validOn: 1651618800000, discount: 40 },
ORANGE2023: { validOn: 1683154800000, discount: 40 }
}

constructor (private cookieService: CookieService, private userService: UserService, private deliveryService: DeliveryService, private walletService: WalletService, private router: Router, private dialog: MatDialog, private configurationService: ConfigurationService, private basketService: BasketService, private translate: TranslateService, private activatedRoute: ActivatedRoute) { }
@@ -192,5 +192,9 @@ const campaigns = {
WMNSDY2020: { validOn: new Date('Mar 08, 2020 00:00:00 GMT+0100').getTime(), discount: 60 },
WMNSDY2021: { validOn: new Date('Mar 08, 2021 00:00:00 GMT+0100').getTime(), discount: 60 },
WMNSDY2022: { validOn: new Date('Mar 08, 2022 00:00:00 GMT+0100').getTime(), discount: 60 },
WMNSDY2023: { validOn: new Date('Mar 08, 2023 00:00:00 GMT+0100').getTime(), discount: 60 }
WMNSDY2023: { validOn: new Date('Mar 08, 2023 00:00:00 GMT+0100').getTime(), discount: 60 },
ORANGE2020: { validOn: new Date('May 04, 2020 00:00:00 GMT+0100').getTime(), discount: 50 },
ORANGE2021: { validOn: new Date('May 04, 2021 00:00:00 GMT+0100').getTime(), discount: 40 },
ORANGE2022: { validOn: new Date('May 04, 2022 00:00:00 GMT+0100').getTime(), discount: 40 },
ORANGE2023: { validOn: new Date('May 04, 2023 00:00:00 GMT+0100').getTime(), discount: 40 }
}

0 comments on commit c85572a

Please sign in to comment.
You can’t perform that action at this time.