瀏覽代碼

full impl date

CR013B2
Jason Chuang 1 周之前
父節點
當前提交
c9708dfcc8
共有 1 個檔案被更改,包括 4 行新增4 行删除
  1. +4
    -4
      src/utils/Utils.js

+ 4
- 4
src/utils/Utils.js 查看文件

@@ -195,7 +195,7 @@ export const isPasswordExpiry = () =>{


export const checkIsOnlyOnlinePaymentByIssueDate = (date) => { export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {
// const targetDate = new Date(2025, 7, 1, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode // const targetDate = new Date(2025, 7, 1, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode
const targetDate = new Date(2025, 11, 3, 0, 0, 0) //2026-01-28T08:00:00.000Z
const targetDate = new Date(2025, 11, 17, 0, 0, 0) //2026-01-28T08:00:00.000Z
const checkDate = DateUtils.convertToDate(date) const checkDate = DateUtils.convertToDate(date)
if (isDummyLoggedIn()){ if (isDummyLoggedIn()){
return false; return false;
@@ -211,7 +211,7 @@ export const checkIsOnlyOnlinePaymentByIssueDate = (date) => {


export const checkIsOnlyOnlinePayment = () => { export const checkIsOnlyOnlinePayment = () => {
// const targetDate = new Date(2025, 10, 17, 0, 0, 0) // hardcode // const targetDate = new Date(2025, 10, 17, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 11, 3, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026
const targetDate = new Date(2025, 11, 17, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026
const checkDate = DateUtils.convertToDate(new Date()) const checkDate = DateUtils.convertToDate(new Date())
if (isDummyLoggedIn()){ if (isDummyLoggedIn()){
return false; return false;
@@ -227,7 +227,7 @@ export const checkIsOnlyOnlinePayment = () => {


export const checkMarkAsCreditClient = () => { export const checkMarkAsCreditClient = () => {
// const targetDate = new Date(2025, 10, 17, 0, 0, 0) // hardcode // const targetDate = new Date(2025, 10, 17, 0, 0, 0) // hardcode
const targetDate = new Date(2025, 11, 3, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026
const targetDate = new Date(2025, 11, 17, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026
const checkDate = DateUtils.convertToDate(new Date()) const checkDate = DateUtils.convertToDate(new Date())
// console.log(targetDate) // console.log(targetDate)
// console.log(checkDate >= targetDate) // console.log(checkDate >= targetDate)
@@ -240,7 +240,7 @@ export const checkMarkAsCreditClient = () => {


export const checkIsNoPaymentByCreateDate = (date) => { export const checkIsNoPaymentByCreateDate = (date) => {
// const targetDate = new Date(2025, 10, 18, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode // const targetDate = new Date(2025, 10, 18, 0, 0, 0) //2026-01-28T08:00:00.000Z hardcode
const targetDate = new Date(2025, 11, 3, 0, 0, 0) //2026-01-28T08:00:00.000Z
const targetDate = new Date(2025, 11, 17, 0, 0, 0) //2026-01-28T08:00:00.000Z
const checkDate = DateUtils.convertToDate(date) const checkDate = DateUtils.convertToDate(date)
if (isDummyLoggedIn()){ if (isDummyLoggedIn()){
return false; return false;


Loading…
取消
儲存