@optimiser/common 1.0.262 → 1.0.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/helper.js +4 -0
- package/package.json +1 -1
package/dist/lib/helper.js
CHANGED
|
@@ -620,6 +620,10 @@ var GetDateRangeFromOperatorValue = function (operator, fiscalMonth, fiscalFrom)
|
|
|
620
620
|
startDate = momentObj.clone().add(1, "years").startOf('year').format(requiredDateFormat);
|
|
621
621
|
endDate = momentObj.clone().add(1, "years").endOf('year').format(requiredDateFormat);
|
|
622
622
|
break;
|
|
623
|
+
case "Year to Date":
|
|
624
|
+
startDate = momentObj.clone().subtract(1, "years").startOf('month').month("Apr").format(requiredDateFormat);
|
|
625
|
+
endDate = momentObj.clone().format(requiredDateFormat);
|
|
626
|
+
break;
|
|
623
627
|
default:
|
|
624
628
|
break;
|
|
625
629
|
}
|