taxtank-core 0.28.0 → 0.28.1
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/bundles/taxtank-core.umd.js +24 -0
- package/bundles/taxtank-core.umd.js.map +1 -1
- package/esm2015/lib/collections/index.js +2 -1
- package/esm2015/lib/collections/sole/index.js +2 -0
- package/esm2015/lib/collections/sole/sole-invoice.collection.js +13 -0
- package/esm2015/lib/models/sole/sole-invoice.js +7 -1
- package/fesm2015/taxtank-core.js +19 -1
- package/fesm2015/taxtank-core.js.map +1 -1
- package/lib/collections/index.d.ts +1 -0
- package/lib/collections/sole/index.d.ts +1 -0
- package/lib/collections/sole/sole-invoice.collection.d.ts +7 -0
- package/lib/models/sole/sole-invoice.d.ts +2 -0
- package/package.json +1 -1
|
@@ -3333,6 +3333,12 @@
|
|
|
3333
3333
|
SoleInvoice.prototype.isPaid = function () {
|
|
3334
3334
|
return this.status === exports.SoleInvoiceStatusesEnum.PAID;
|
|
3335
3335
|
};
|
|
3336
|
+
SoleInvoice.prototype.isOverdue = function () {
|
|
3337
|
+
return this.isPending() && this.dateTo < new Date();
|
|
3338
|
+
};
|
|
3339
|
+
SoleInvoice.prototype.isUnpaid = function () {
|
|
3340
|
+
return this.isPending() && this.dateTo >= new Date();
|
|
3341
|
+
};
|
|
3336
3342
|
return SoleInvoice;
|
|
3337
3343
|
}(SoleInvoice$1));
|
|
3338
3344
|
__decorate([
|
|
@@ -6386,6 +6392,23 @@
|
|
|
6386
6392
|
return VehicleLogbookCollection;
|
|
6387
6393
|
}(Collection));
|
|
6388
6394
|
|
|
6395
|
+
var SoleInvoiceCollection = /** @class */ (function (_super) {
|
|
6396
|
+
__extends(SoleInvoiceCollection, _super);
|
|
6397
|
+
function SoleInvoiceCollection() {
|
|
6398
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
6399
|
+
}
|
|
6400
|
+
SoleInvoiceCollection.prototype.getOverdue = function () {
|
|
6401
|
+
return this.filter(function (invoice) { return invoice.isOverdue(); });
|
|
6402
|
+
};
|
|
6403
|
+
SoleInvoiceCollection.prototype.getUnpaid = function () {
|
|
6404
|
+
return this.filter(function (invoice) { return invoice.isUnpaid(); });
|
|
6405
|
+
};
|
|
6406
|
+
SoleInvoiceCollection.prototype.getPaid = function () {
|
|
6407
|
+
return this.filter(function (invoice) { return invoice.isPaid(); });
|
|
6408
|
+
};
|
|
6409
|
+
return SoleInvoiceCollection;
|
|
6410
|
+
}(Collection));
|
|
6411
|
+
|
|
6389
6412
|
// @TODO Alex move here all collections
|
|
6390
6413
|
|
|
6391
6414
|
var AccountSetupItemCollection = /** @class */ (function (_super) {
|
|
@@ -18328,6 +18351,7 @@
|
|
|
18328
18351
|
exports.SoleForecast = SoleForecast;
|
|
18329
18352
|
exports.SoleForecastService = SoleForecastService;
|
|
18330
18353
|
exports.SoleInvoice = SoleInvoice;
|
|
18354
|
+
exports.SoleInvoiceCollection = SoleInvoiceCollection;
|
|
18331
18355
|
exports.SoleInvoiceForm = SoleInvoiceForm;
|
|
18332
18356
|
exports.SoleInvoiceItem = SoleInvoiceItem;
|
|
18333
18357
|
exports.SoleInvoiceItemForm = SoleInvoiceItemForm;
|