balance sheet
This commit is contained in:
@@ -161,6 +161,23 @@ const getFourWeekPeriods = endDate => {
|
||||
return periods;
|
||||
};
|
||||
|
||||
const withLastYear = (date) => {
|
||||
|
||||
if (!date) {
|
||||
date= new Date()
|
||||
} else {
|
||||
date = parseMMDDYYYY(date)
|
||||
}
|
||||
const originalYear = date.getFullYear();
|
||||
const priorYear = originalYear - 1;
|
||||
|
||||
// Create new Date objects for both years
|
||||
const originalDate = new Date(originalYear, date.getMonth(), date.getDate());
|
||||
const priorYearDate = new Date(priorYear, date.getMonth(), date.getDate());
|
||||
|
||||
return [formatDateMMDDYYYY(originalDate), formatDateMMDDYYYY(priorYearDate)];
|
||||
}
|
||||
|
||||
initMultiDatepicker = function(elem, startingValue) {
|
||||
const modalParent = elem.closest('#modal-content');
|
||||
if (modalParent) {
|
||||
|
||||
Reference in New Issue
Block a user