taxtank-core 0.33.56 → 0.33.57

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,11 +7,11 @@ export class AbstractModel {
7
7
  hasValue(value, path = 'id') {
8
8
  return get(path) === value;
9
9
  }
10
- formatDate(date, format = 'MMM d, y') {
10
+ formatDate(date, format = 'dd/MM/YYYY') {
11
11
  return formatDate(date, format, 'en-AU');
12
12
  }
13
13
  get(path) {
14
14
  return get(path);
15
15
  }
16
16
  }
17
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJzdHJhY3QtbW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90dC1jb3JlL3NyYy9saWIvZGIvTW9kZWxzL2Fic3RyYWN0LW1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sR0FBRyxNQUFNLFlBQVksQ0FBQztBQUM3QixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFFN0M7O0dBRUc7QUFDSCxNQUFNLE9BQWdCLGFBQWE7SUFHakMsUUFBUSxDQUFDLEtBQVUsRUFBRSxJQUFJLEdBQUcsSUFBSTtRQUM5QixPQUFPLEdBQUcsQ0FBQyxJQUFJLENBQUMsS0FBSyxLQUFLLENBQUM7SUFDN0IsQ0FBQztJQUVELFVBQVUsQ0FBQyxJQUFVLEVBQUUsTUFBTSxHQUFHLFVBQVU7UUFDeEMsT0FBTyxVQUFVLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxPQUFPLENBQUMsQ0FBQztJQUMzQyxDQUFDO0lBRUQsR0FBRyxDQUFDLElBQVk7UUFDZCxPQUFPLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNuQixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgZ2V0IGZyb20gJ2xvZGFzaC9n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MsS0FBSyxLQUFLLENBQUM7SUFDN0IsQ0FBQztJQUVELFVBQVUsQ0FBQyxJQUFVLEVBQUUsTUFBTSxHQUFHLFlBQVk7UUFDMUMsT0FBTyxVQUFVLENBQUMsSUFBSSxFQUFFLE1BQU0sRUFBRSxPQUFPLENBQUMsQ0FBQztJQUMzQyxDQUFDO0lBRUQsR0FBRyxDQUFDLElBQVk7UUFDZCxPQUFPLEdBQUcsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNuQixDQUFDO0NBQ0YiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgZ2V0IGZyb20gJ2xvZGFzaC9nZXQnO1xuaW1wb3J0IHsgZm9ybWF0RGF0ZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5cbi8qKlxuICogQFRPRE8gbW92ZSBmcm9tIGRiIGZvbGRlciB3aGVuIHJlZmFjdG9yZWQgYmFzZSBtb2RlbHNcbiAqL1xuZXhwb3J0IGFic3RyYWN0IGNsYXNzIEFic3RyYWN0TW9kZWwge1xuICBpZD86IGFueTtcblxuICBoYXNWYWx1ZSh2YWx1ZTogYW55LCBwYXRoID0gJ2lkJyk6IGJvb2xlYW4ge1xuICAgIHJldHVybiBnZXQocGF0aCkgPT09IHZhbHVlO1xuICB9XG5cbiAgZm9ybWF0RGF0ZShkYXRlOiBEYXRlLCBmb3JtYXQgPSAnZGQvTU0vWVlZWScpOiBzdHJpbmcge1xuICAgIHJldHVybiBmb3JtYXREYXRlKGRhdGUsIGZvcm1hdCwgJ2VuLUFVJyk7XG4gIH1cblxuICBnZXQocGF0aDogc3RyaW5nKTogYW55IHtcbiAgICByZXR1cm4gZ2V0KHBhdGgpO1xuICB9XG59XG4iXX0=
@@ -5,6 +5,9 @@ import { ObservableModel } from '../../db/Models';
5
5
  import { Type } from 'class-transformer';
6
6
  export class HomeOfficeLog extends ObservableModel {
7
7
  static { this.className = 'HomeOfficeLog'; }
8
+ get formattedDate() {
9
+ return this.formatDate(this.date);
10
+ }
8
11
  }
9
12
  __decorate([
10
13
  Type(() => HomeOfficeClaim)
@@ -12,4 +15,4 @@ __decorate([
12
15
  __decorate([
13
16
  Type(() => SoleBusiness)
14
17
  ], HomeOfficeLog.prototype, "business", void 0);
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9tZS1vZmZpY2UtbG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdHQtY29yZS9zcmMvbGliL21vZGVscy9ob21lLW9mZmljZS9ob21lLW9mZmljZS1sb2cudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN0RCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sU0FBUyxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUVsRCxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFFekMsTUFBTSxPQUFPLGFBQWMsU0FBUSxlQUFlO2FBQ3pDLGNBQVMsR0FBRyxlQUFlLENBQUM7O0FBRW5DO0lBREMsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLGVBQWUsQ0FBQzs0Q0FDTDtBQUt2QjtJQURDLElBQUksQ0FBQyxHQUFHLEVBQUUsQ0FBQyxZQUFZLENBQUM7K0NBQ0QiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBIb21lT2ZmaWNlQ2xhaW0gfSBmcm9tICcuL2hvbWUtb2ZmaWNlLWNsYWltJztcbmltcG9ydCB7IFNvbGVCdXNpbmVzcyB9IGZyb20gJy4uL3NvbGUnO1xuaW1wb3J0IHsgT2JzZXJ2YWJsZU1vZGVsIH0gZnJvbSAnLi4vLi4vZGIv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xlQnVzaW5lc3MpXG4gIGJ1c2luZXNzPzogU29sZUJ1c2luZXNzO1xuXG4gIGdldCBmb3JtYXR0ZWREYXRlKCk6IHN0cmluZyB7XG4gICAgcmV0dXJuIHRoaXMuZm9ybWF0RGF0ZSh0aGlzLmRhdGUpO1xuICB9XG59XG4iXX0=
@@ -48,7 +48,7 @@ class AbstractModel {
48
48
  hasValue(value, path = 'id') {
49
49
  return get(path) === value;
50
50
  }
51
- formatDate(date, format = 'MMM d, y') {
51
+ formatDate(date, format = 'dd/MM/YYYY') {
52
52
  return formatDate(date, format, 'en-AU');
53
53
  }
54
54
  get(path) {
@@ -10763,6 +10763,9 @@ __decorate([
10763
10763
 
10764
10764
  class HomeOfficeLog extends ObservableModel {
10765
10765
  static { this.className = 'HomeOfficeLog'; }
10766
+ get formattedDate() {
10767
+ return this.formatDate(this.date);
10768
+ }
10766
10769
  }
10767
10770
  __decorate([
10768
10771
  Type(() => HomeOfficeClaim)