2 Коміти

Автор SHA1 Повідомлення Дата
  Jason Chuang 63d1af9565 Merge branch 'CR013B1' of https://git.2fi-solutions.com/alex/PNSPS-frontend-MaterialUI into CR013B1 1 місяць тому
  Jason Chuang a73453306b update 1 місяць тому
1 змінених файлів з 4 додано та 4 видалено
  1. +4
    -4
      src/utils/Utils.js

+ 4
- 4
src/utils/Utils.js Переглянути файл

@@ -184,8 +184,8 @@ export const isPasswordExpiry = () =>{
}

export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
const targetDate = new Date(2026, 1, 6, 0, 0, 0) //2026-02-06T00:00:00.000Z
// const targetDate = new Date(2025, 6, 18, 0, 0, 0); //2025-07-13T00:00:00.000Z
const targetDate = new Date(2025, 6, 25, 0, 0, 0) //2026-01-28T08:00:00.000Z
// const targetDate = new Date(2025, 6, 13, 8, 0, 0); //2025-07-13T08:00:00.000Z
const checkDate = DateUtils.convertToDate(date)
if (isDummyLoggedIn()){
return false;
@@ -200,7 +200,7 @@ export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
}

export const checkIsOnlyOnlinePayment = () => {
const targetDate = new Date(2026, 1, 6, 8, 0, 0)
const targetDate = new Date(2025, 6, 25, 0, 0, 0)
const checkDate = DateUtils.convertToDate(new Date())
if (isDummyLoggedIn()){
return false;
@@ -215,7 +215,7 @@ export const checkIsOnlyOnlinePayment = () => {
}

export const checkMarkAsCreditClient = () => {
const targetDate = new Date(2026, 1, 6, 8, 0, 0)
const targetDate = new Date(2025, 6, 25, 0, 0, 0)
const checkDate = DateUtils.convertToDate(new Date())
// console.log(targetDate)
// console.log(checkDate >= targetDate)


Завантаження…
Відмінити
Зберегти