|
|
|
@@ -194,7 +194,7 @@ export const isPasswordExpiry = () =>{ |
|
|
|
} |
|
|
|
|
|
|
|
export const checkIsOnlyOnlinePaymentByIssueDate = (date) => { |
|
|
|
const targetDate = new Date(2025, 11, 17, 0, 0, 0); // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const targetDate = new Date(2026, 0, 28, 0, 0, 0); // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const checkDate = DateUtils.convertToDate(date) |
|
|
|
if (isDummyLoggedIn()){ |
|
|
|
return false; |
|
|
|
@@ -209,7 +209,7 @@ export const checkIsOnlyOnlinePaymentByIssueDate = (date) => { |
|
|
|
} |
|
|
|
|
|
|
|
export const checkIsOnlyOnlinePayment = () => { |
|
|
|
const targetDate = new Date(2025, 11, 17, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const targetDate = new Date(2026, 0, 28, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const checkDate = DateUtils.convertToDate(new Date()) |
|
|
|
if (isDummyLoggedIn()){ |
|
|
|
return false; |
|
|
|
@@ -224,7 +224,7 @@ export const checkIsOnlyOnlinePayment = () => { |
|
|
|
} |
|
|
|
|
|
|
|
export const checkMarkAsCreditClient = () => { |
|
|
|
const targetDate = new Date(2025, 11, 17, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const targetDate = new Date(2026, 0, 28, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const checkDate = DateUtils.convertToDate(new Date()) |
|
|
|
// console.log(targetDate) |
|
|
|
// console.log(checkDate >= targetDate) |
|
|
|
@@ -236,7 +236,7 @@ export const checkMarkAsCreditClient = () => { |
|
|
|
} |
|
|
|
|
|
|
|
export const checkIsNoPaymentByCreateDate = (date) => { |
|
|
|
const targetDate = new Date(2025, 11, 17, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const targetDate = new Date(2026, 0, 28, 0, 0, 0) // hardcode new Date(2026, 0, 28, 0, 0, 0) 28 Jan 2026 |
|
|
|
const checkDate = DateUtils.convertToDate(date) |
|
|
|
if (isDummyLoggedIn()){ |
|
|
|
return false; |
|
|
|
|