taxtank-core 1.0.26 → 1.0.28
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.
@@ -887,6 +887,9 @@ var TimezoneEnum;
|
|
887
887
|
TimezoneEnum["ADELAIDE"] = "Australia/Adelaide";
|
888
888
|
TimezoneEnum["SYDNEY"] = "Australia/Sydney";
|
889
889
|
TimezoneEnum["LORD_HOWE"] = "Australia/Lord_Howe";
|
890
|
+
TimezoneEnum["VIC"] = "Australia/Melbourne";
|
891
|
+
TimezoneEnum["TAS"] = "Australia/Hobart";
|
892
|
+
TimezoneEnum["ACT"] = "Australia/Canberra";
|
890
893
|
})(TimezoneEnum || (TimezoneEnum = {}));
|
891
894
|
|
892
895
|
var AnnualFrequencyEnum;
|
@@ -9107,7 +9110,10 @@ class BankTransactionCollection extends Collection {
|
|
9107
9110
|
* get date of the last transaction
|
9108
9111
|
*/
|
9109
9112
|
getLastTransactionDate() {
|
9110
|
-
|
9113
|
+
if (!this.length) {
|
9114
|
+
return null;
|
9115
|
+
}
|
9116
|
+
return new Date(Math.max(...this.items.map(transaction => transaction.date.getTime())));
|
9111
9117
|
}
|
9112
9118
|
/**
|
9113
9119
|
* get list of credit transactions
|