taxtank-core 0.32.39 → 0.32.41
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/esm2022/lib/collections/bank-transaction.collection.mjs +19 -4
- package/esm2022/lib/collections/sole/sole-invoice-item.collection.mjs +3 -3
- package/esm2022/lib/collections/sole/sole-invoice.collection.mjs +22 -1
- package/esm2022/lib/collections/transaction/transaction-allocation.collection.mjs +8 -1
- package/esm2022/lib/collections/transaction/transaction.collection.mjs +8 -1
- package/esm2022/lib/db/Json/chart-accounts/chart-accounts-value.json +287 -287
- package/esm2022/lib/db/Models/transaction/transaction-base.mjs +3 -2
- package/esm2022/lib/models/bank/bank-transaction.mjs +2 -2
- package/esm2022/lib/models/endpoint/endpoints.const.mjs +5 -4
- package/esm2022/lib/models/sole/sole-invoice.mjs +3 -4
- package/esm2022/lib/models/transaction/transaction.mjs +2 -2
- package/esm2022/lib/services/bank/bank-account-calculation.service.mjs +7 -11
- package/esm2022/lib/services/bank/index.mjs +1 -2
- package/esm2022/lib/services/transaction/transaction-calculation.service.mjs +2 -55
- package/fesm2022/taxtank-core.mjs +438 -419
- package/fesm2022/taxtank-core.mjs.map +1 -1
- package/lib/collections/bank-transaction.collection.d.ts +9 -2
- package/lib/collections/sole/sole-invoice-item.collection.d.ts +1 -1
- package/lib/collections/sole/sole-invoice.collection.d.ts +5 -1
- package/lib/collections/transaction/transaction-allocation.collection.d.ts +3 -1
- package/lib/collections/transaction/transaction.collection.d.ts +2 -0
- package/lib/services/bank/bank-account-calculation.service.d.ts +2 -7
- package/lib/services/bank/index.d.ts +0 -1
- package/lib/services/transaction/transaction-calculation.service.d.ts +1 -25
- package/package.json +1 -1
- package/esm2022/lib/services/bank/bank-transaction-calculation.service.mjs +0 -61
- package/lib/services/bank/bank-transaction-calculation.service.d.ts +0 -41
|
@@ -461,7 +461,8 @@ class TransactionBase extends ObservableModel {
|
|
|
461
461
|
/**
|
|
462
462
|
* @TODO remove when AllocateForm is refactored and not merging with Transaction class which cause the issue
|
|
463
463
|
*/
|
|
464
|
-
set tankType(tankType) {
|
|
464
|
+
set tankType(tankType) {
|
|
465
|
+
}
|
|
465
466
|
/**
|
|
466
467
|
* Check if current tank is Property
|
|
467
468
|
*/
|
|
@@ -2619,454 +2620,536 @@ function enumToList(data) {
|
|
|
2619
2620
|
var ChartAccountsValues = [
|
|
2620
2621
|
{
|
|
2621
2622
|
id: 1,
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2623
|
+
chartAccounts: {
|
|
2624
|
+
id: 24
|
|
2625
|
+
},
|
|
2626
|
+
financialYear: 2017,
|
|
2627
|
+
startDate: null,
|
|
2628
|
+
endDate: null,
|
|
2626
2629
|
value: 0.66,
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
+
unitOfMeasure: "kilometres",
|
|
2631
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2632
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2630
2633
|
},
|
|
2631
2634
|
{
|
|
2632
2635
|
id: 2,
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2636
|
+
chartAccounts: {
|
|
2637
|
+
id: 24
|
|
2638
|
+
},
|
|
2639
|
+
financialYear: 2018,
|
|
2640
|
+
startDate: null,
|
|
2641
|
+
endDate: null,
|
|
2637
2642
|
value: 0.66,
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2643
|
+
unitOfMeasure: "kilometres",
|
|
2644
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2645
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2641
2646
|
},
|
|
2642
2647
|
{
|
|
2643
2648
|
id: 3,
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2649
|
+
chartAccounts: {
|
|
2650
|
+
id: 24
|
|
2651
|
+
},
|
|
2652
|
+
financialYear: 2019,
|
|
2653
|
+
startDate: null,
|
|
2654
|
+
endDate: null,
|
|
2648
2655
|
value: 0.68,
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2656
|
+
unitOfMeasure: "kilometres",
|
|
2657
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2658
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2652
2659
|
},
|
|
2653
2660
|
{
|
|
2654
2661
|
id: 4,
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2662
|
+
chartAccounts: {
|
|
2663
|
+
id: 24
|
|
2664
|
+
},
|
|
2665
|
+
financialYear: 2020,
|
|
2666
|
+
startDate: null,
|
|
2667
|
+
endDate: null,
|
|
2659
2668
|
value: 0.68,
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2669
|
+
unitOfMeasure: "kilometres",
|
|
2670
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2671
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2663
2672
|
},
|
|
2664
2673
|
{
|
|
2665
2674
|
id: 14,
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2675
|
+
chartAccounts: {
|
|
2676
|
+
id: 87
|
|
2677
|
+
},
|
|
2678
|
+
financialYear: 2018,
|
|
2679
|
+
startDate: null,
|
|
2680
|
+
endDate: null,
|
|
2670
2681
|
value: 0.45,
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2682
|
+
unitOfMeasure: "hours",
|
|
2683
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2684
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2674
2685
|
},
|
|
2675
2686
|
{
|
|
2676
2687
|
id: 15,
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2688
|
+
chartAccounts: {
|
|
2689
|
+
id: 87
|
|
2690
|
+
},
|
|
2691
|
+
financialYear: 2019,
|
|
2692
|
+
startDate: null,
|
|
2693
|
+
endDate: null,
|
|
2681
2694
|
value: 0.52,
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2695
|
+
unitOfMeasure: "hours",
|
|
2696
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2697
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2685
2698
|
},
|
|
2686
2699
|
{
|
|
2687
2700
|
id: 16,
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2701
|
+
chartAccounts: {
|
|
2702
|
+
id: 87
|
|
2703
|
+
},
|
|
2704
|
+
financialYear: 2020,
|
|
2705
|
+
startDate: null,
|
|
2706
|
+
endDate: null,
|
|
2692
2707
|
value: 0.52,
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2708
|
+
unitOfMeasure: "hours",
|
|
2709
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2710
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2696
2711
|
},
|
|
2697
2712
|
{
|
|
2698
2713
|
id: 17,
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2714
|
+
chartAccounts: {
|
|
2715
|
+
id: 103
|
|
2716
|
+
},
|
|
2717
|
+
financialYear: 2017,
|
|
2718
|
+
startDate: null,
|
|
2719
|
+
endDate: null,
|
|
2703
2720
|
value: 0.45,
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2721
|
+
unitOfMeasure: "hours",
|
|
2722
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2723
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2707
2724
|
},
|
|
2708
2725
|
{
|
|
2709
2726
|
id: 18,
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2727
|
+
chartAccounts: {
|
|
2728
|
+
id: 103
|
|
2729
|
+
},
|
|
2730
|
+
financialYear: 2018,
|
|
2731
|
+
startDate: null,
|
|
2732
|
+
endDate: null,
|
|
2714
2733
|
value: 0.45,
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2734
|
+
unitOfMeasure: "hours",
|
|
2735
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2736
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2718
2737
|
},
|
|
2719
2738
|
{
|
|
2720
2739
|
id: 19,
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2740
|
+
chartAccounts: {
|
|
2741
|
+
id: 103
|
|
2742
|
+
},
|
|
2743
|
+
financialYear: 2019,
|
|
2744
|
+
startDate: null,
|
|
2745
|
+
endDate: null,
|
|
2725
2746
|
value: 0.52,
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2747
|
+
unitOfMeasure: "hours",
|
|
2748
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2749
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2729
2750
|
},
|
|
2730
2751
|
{
|
|
2731
2752
|
id: 20,
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2753
|
+
chartAccounts: {
|
|
2754
|
+
id: 103
|
|
2755
|
+
},
|
|
2756
|
+
financialYear: 2020,
|
|
2757
|
+
startDate: null,
|
|
2758
|
+
endDate: null,
|
|
2736
2759
|
value: 0.52,
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2760
|
+
unitOfMeasure: "hours",
|
|
2761
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2762
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2740
2763
|
},
|
|
2741
2764
|
{
|
|
2742
2765
|
id: 21,
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2766
|
+
chartAccounts: {
|
|
2767
|
+
id: 288
|
|
2768
|
+
},
|
|
2769
|
+
financialYear: 2017,
|
|
2770
|
+
startDate: null,
|
|
2771
|
+
endDate: null,
|
|
2747
2772
|
value: 0.45,
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2773
|
+
unitOfMeasure: "hours",
|
|
2774
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2775
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2751
2776
|
},
|
|
2752
2777
|
{
|
|
2753
2778
|
id: 22,
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2779
|
+
chartAccounts: {
|
|
2780
|
+
id: 288
|
|
2781
|
+
},
|
|
2782
|
+
financialYear: 2018,
|
|
2783
|
+
startDate: null,
|
|
2784
|
+
endDate: null,
|
|
2758
2785
|
value: 0.45,
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2786
|
+
unitOfMeasure: "hours",
|
|
2787
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2788
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2762
2789
|
},
|
|
2763
2790
|
{
|
|
2764
2791
|
id: 23,
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2792
|
+
chartAccounts: {
|
|
2793
|
+
id: 288
|
|
2794
|
+
},
|
|
2795
|
+
financialYear: 2019,
|
|
2796
|
+
startDate: null,
|
|
2797
|
+
endDate: null,
|
|
2769
2798
|
value: 0.52,
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2799
|
+
unitOfMeasure: "hours",
|
|
2800
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2801
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2773
2802
|
},
|
|
2774
2803
|
{
|
|
2775
2804
|
id: 24,
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2805
|
+
chartAccounts: {
|
|
2806
|
+
id: 288
|
|
2807
|
+
},
|
|
2808
|
+
financialYear: 2020,
|
|
2809
|
+
startDate: null,
|
|
2810
|
+
endDate: null,
|
|
2780
2811
|
value: 0.52,
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2812
|
+
unitOfMeasure: "hours",
|
|
2813
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2814
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2784
2815
|
},
|
|
2785
2816
|
{
|
|
2786
2817
|
id: 25,
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2818
|
+
chartAccounts: {
|
|
2819
|
+
id: 24
|
|
2820
|
+
},
|
|
2821
|
+
financialYear: 2021,
|
|
2822
|
+
startDate: null,
|
|
2823
|
+
endDate: null,
|
|
2791
2824
|
value: 0.72,
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2825
|
+
unitOfMeasure: "kilometres",
|
|
2826
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2827
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2795
2828
|
},
|
|
2796
2829
|
{
|
|
2797
2830
|
id: 28,
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2831
|
+
chartAccounts: {
|
|
2832
|
+
id: 87
|
|
2833
|
+
},
|
|
2834
|
+
financialYear: 2021,
|
|
2835
|
+
startDate: null,
|
|
2836
|
+
endDate: null,
|
|
2802
2837
|
value: 0.52,
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2838
|
+
unitOfMeasure: "hours",
|
|
2839
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2840
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2806
2841
|
},
|
|
2807
2842
|
{
|
|
2808
2843
|
id: 29,
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2844
|
+
chartAccounts: {
|
|
2845
|
+
id: 103
|
|
2846
|
+
},
|
|
2847
|
+
financialYear: 2021,
|
|
2848
|
+
startDate: null,
|
|
2849
|
+
endDate: null,
|
|
2813
2850
|
value: 0.52,
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2851
|
+
unitOfMeasure: "hours",
|
|
2852
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2853
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2817
2854
|
},
|
|
2818
2855
|
{
|
|
2819
2856
|
id: 30,
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2857
|
+
chartAccounts: {
|
|
2858
|
+
id: 288
|
|
2859
|
+
},
|
|
2860
|
+
financialYear: 2021,
|
|
2861
|
+
startDate: null,
|
|
2862
|
+
endDate: null,
|
|
2824
2863
|
value: 0.52,
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2864
|
+
unitOfMeasure: "hours",
|
|
2865
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2866
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2828
2867
|
},
|
|
2829
2868
|
{
|
|
2830
2869
|
id: 31,
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2870
|
+
chartAccounts: {
|
|
2871
|
+
id: 24
|
|
2872
|
+
},
|
|
2873
|
+
financialYear: 2022,
|
|
2874
|
+
startDate: null,
|
|
2875
|
+
endDate: null,
|
|
2835
2876
|
value: 0.72,
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2877
|
+
unitOfMeasure: "kilometres",
|
|
2878
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2879
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2839
2880
|
},
|
|
2840
2881
|
{
|
|
2841
2882
|
id: 32,
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2883
|
+
chartAccounts: {
|
|
2884
|
+
id: 87
|
|
2885
|
+
},
|
|
2886
|
+
financialYear: 2022,
|
|
2887
|
+
startDate: null,
|
|
2888
|
+
endDate: null,
|
|
2846
2889
|
value: 0.52,
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2890
|
+
unitOfMeasure: "hours",
|
|
2891
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2892
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2850
2893
|
},
|
|
2851
2894
|
{
|
|
2852
2895
|
id: 33,
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2896
|
+
chartAccounts: {
|
|
2897
|
+
id: 103
|
|
2898
|
+
},
|
|
2899
|
+
financialYear: 2022,
|
|
2900
|
+
startDate: null,
|
|
2901
|
+
endDate: null,
|
|
2857
2902
|
value: 0.52,
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2903
|
+
unitOfMeasure: "hours",
|
|
2904
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2905
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2861
2906
|
},
|
|
2862
2907
|
{
|
|
2863
2908
|
id: 34,
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2909
|
+
chartAccounts: {
|
|
2910
|
+
id: 288
|
|
2911
|
+
},
|
|
2912
|
+
financialYear: 2022,
|
|
2913
|
+
startDate: null,
|
|
2914
|
+
endDate: null,
|
|
2868
2915
|
value: 0.52,
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2916
|
+
unitOfMeasure: "hours",
|
|
2917
|
+
createdAt: "2020-05-23 00:00:00",
|
|
2918
|
+
updatedAt: "2020-05-23 00:00:00"
|
|
2872
2919
|
},
|
|
2873
2920
|
{
|
|
2874
2921
|
id: 35,
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2922
|
+
chartAccounts: {
|
|
2923
|
+
id: 683
|
|
2924
|
+
},
|
|
2925
|
+
financialYear: 2017,
|
|
2926
|
+
startDate: null,
|
|
2927
|
+
endDate: null,
|
|
2879
2928
|
value: 0.66,
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2929
|
+
unitOfMeasure: "kilometres",
|
|
2930
|
+
createdAt: "2022-03-08 00:00:00",
|
|
2931
|
+
updatedAt: "2022-03-08 00:00:00"
|
|
2883
2932
|
},
|
|
2884
2933
|
{
|
|
2885
2934
|
id: 36,
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2935
|
+
chartAccounts: {
|
|
2936
|
+
id: 683
|
|
2937
|
+
},
|
|
2938
|
+
financialYear: 2018,
|
|
2939
|
+
startDate: null,
|
|
2940
|
+
endDate: null,
|
|
2890
2941
|
value: 0.66,
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2942
|
+
unitOfMeasure: "kilometres",
|
|
2943
|
+
createdAt: "2022-03-08 00:00:00",
|
|
2944
|
+
updatedAt: "2022-03-08 00:00:00"
|
|
2894
2945
|
},
|
|
2895
2946
|
{
|
|
2896
2947
|
id: 37,
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2948
|
+
chartAccounts: {
|
|
2949
|
+
id: 683
|
|
2950
|
+
},
|
|
2951
|
+
financialYear: 2019,
|
|
2952
|
+
startDate: null,
|
|
2953
|
+
endDate: null,
|
|
2901
2954
|
value: 0.68,
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2955
|
+
unitOfMeasure: "kilometres",
|
|
2956
|
+
createdAt: "2022-03-08 00:00:00",
|
|
2957
|
+
updatedAt: "2022-03-08 00:00:00"
|
|
2905
2958
|
},
|
|
2906
2959
|
{
|
|
2907
2960
|
id: 38,
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2961
|
+
chartAccounts: {
|
|
2962
|
+
id: 683
|
|
2963
|
+
},
|
|
2964
|
+
financialYear: 2020,
|
|
2965
|
+
startDate: null,
|
|
2966
|
+
endDate: null,
|
|
2912
2967
|
value: 0.68,
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2968
|
+
unitOfMeasure: "kilometres",
|
|
2969
|
+
createdAt: "2022-03-08 00:00:00",
|
|
2970
|
+
updatedAt: "2022-03-08 00:00:00"
|
|
2916
2971
|
},
|
|
2917
2972
|
{
|
|
2918
2973
|
id: 39,
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2974
|
+
chartAccounts: {
|
|
2975
|
+
id: 683
|
|
2976
|
+
},
|
|
2977
|
+
financialYear: 2021,
|
|
2978
|
+
startDate: null,
|
|
2979
|
+
endDate: null,
|
|
2923
2980
|
value: 0.72,
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2981
|
+
unitOfMeasure: "kilometres",
|
|
2982
|
+
createdAt: "2022-03-08 00:00:00",
|
|
2983
|
+
updatedAt: "2022-03-08 00:00:00"
|
|
2927
2984
|
},
|
|
2928
2985
|
{
|
|
2929
2986
|
id: 40,
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2987
|
+
chartAccounts: {
|
|
2988
|
+
id: 683
|
|
2989
|
+
},
|
|
2990
|
+
financialYear: 2022,
|
|
2991
|
+
startDate: null,
|
|
2992
|
+
endDate: null,
|
|
2934
2993
|
value: 0.72,
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2994
|
+
unitOfMeasure: "kilometres",
|
|
2995
|
+
createdAt: "2022-03-08 00:00:00",
|
|
2996
|
+
updatedAt: "2022-03-08 00:00:00"
|
|
2938
2997
|
},
|
|
2939
2998
|
{
|
|
2940
2999
|
id: 41,
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
3000
|
+
chartAccounts: {
|
|
3001
|
+
id: 24
|
|
3002
|
+
},
|
|
3003
|
+
financialYear: 2023,
|
|
3004
|
+
startDate: null,
|
|
3005
|
+
endDate: null,
|
|
2945
3006
|
value: 0.78,
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
3007
|
+
unitOfMeasure: "kilometres",
|
|
3008
|
+
createdAt: "2022-06-29 00:00:00",
|
|
3009
|
+
updatedAt: "2022-06-29 00:00:00"
|
|
2949
3010
|
},
|
|
2950
3011
|
{
|
|
2951
3012
|
id: 42,
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
3013
|
+
chartAccounts: {
|
|
3014
|
+
id: 87
|
|
3015
|
+
},
|
|
3016
|
+
financialYear: 2023,
|
|
3017
|
+
startDate: null,
|
|
3018
|
+
endDate: null,
|
|
2956
3019
|
value: 0.67,
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
3020
|
+
unitOfMeasure: "hours",
|
|
3021
|
+
createdAt: "2022-06-29 00:00:00",
|
|
3022
|
+
updatedAt: "2022-06-29 00:00:00"
|
|
2960
3023
|
},
|
|
2961
3024
|
{
|
|
2962
3025
|
id: 43,
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
3026
|
+
chartAccounts: {
|
|
3027
|
+
id: 103
|
|
3028
|
+
},
|
|
3029
|
+
financialYear: 2023,
|
|
3030
|
+
startDate: null,
|
|
3031
|
+
endDate: null,
|
|
2967
3032
|
value: 0.67,
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
3033
|
+
unitOfMeasure: "hours",
|
|
3034
|
+
createdAt: "2022-06-29 00:00:00",
|
|
3035
|
+
updatedAt: "2022-06-29 00:00:00"
|
|
2971
3036
|
},
|
|
2972
3037
|
{
|
|
2973
3038
|
id: 45,
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
3039
|
+
chartAccounts: {
|
|
3040
|
+
id: 683
|
|
3041
|
+
},
|
|
3042
|
+
financialYear: 2023,
|
|
3043
|
+
startDate: null,
|
|
3044
|
+
endDate: null,
|
|
2978
3045
|
value: 0.78,
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
3046
|
+
unitOfMeasure: "kilometres",
|
|
3047
|
+
createdAt: "2022-06-29 00:00:00",
|
|
3048
|
+
updatedAt: "2022-06-29 00:00:00"
|
|
2982
3049
|
},
|
|
2983
3050
|
{
|
|
2984
3051
|
id: 46,
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
3052
|
+
chartAccounts: {
|
|
3053
|
+
id: 24
|
|
3054
|
+
},
|
|
3055
|
+
financialYear: 2024,
|
|
3056
|
+
startDate: null,
|
|
3057
|
+
endDate: null,
|
|
2989
3058
|
value: 0.85,
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
3059
|
+
unitOfMeasure: "kilometres",
|
|
3060
|
+
createdAt: "2023-07-01 00:00:00",
|
|
3061
|
+
updatedAt: "2023-07-01 00:00:00"
|
|
2993
3062
|
},
|
|
2994
3063
|
{
|
|
2995
3064
|
id: 47,
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3065
|
+
chartAccounts: {
|
|
3066
|
+
id: 87
|
|
3067
|
+
},
|
|
3068
|
+
financialYear: 2024,
|
|
3069
|
+
startDate: null,
|
|
3070
|
+
endDate: null,
|
|
3000
3071
|
value: 0.67,
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3072
|
+
unitOfMeasure: "hours",
|
|
3073
|
+
createdAt: "2023-07-01 00:00:00",
|
|
3074
|
+
updatedAt: "2023-07-01 00:00:00"
|
|
3004
3075
|
},
|
|
3005
3076
|
{
|
|
3006
3077
|
id: 48,
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3010
|
-
|
|
3078
|
+
chartAccounts: {
|
|
3079
|
+
id: 103
|
|
3080
|
+
},
|
|
3081
|
+
financialYear: 2024,
|
|
3082
|
+
startDate: null,
|
|
3083
|
+
endDate: null,
|
|
3011
3084
|
value: 0.67,
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3085
|
+
unitOfMeasure: "hours",
|
|
3086
|
+
createdAt: "2023-07-01 00:00:00",
|
|
3087
|
+
updatedAt: "2023-07-01 00:00:00"
|
|
3015
3088
|
},
|
|
3016
3089
|
{
|
|
3017
3090
|
id: 49,
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3091
|
+
chartAccounts: {
|
|
3092
|
+
id: 683
|
|
3093
|
+
},
|
|
3094
|
+
financialYear: 2024,
|
|
3095
|
+
startDate: null,
|
|
3096
|
+
endDate: null,
|
|
3022
3097
|
value: 0.85,
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3098
|
+
unitOfMeasure: "kilometres",
|
|
3099
|
+
createdAt: "2023-07-01 00:00:00",
|
|
3100
|
+
updatedAt: "2023-07-01 00:00:00"
|
|
3026
3101
|
},
|
|
3027
3102
|
{
|
|
3028
3103
|
id: 50,
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3104
|
+
chartAccounts: {
|
|
3105
|
+
id: 888
|
|
3106
|
+
},
|
|
3107
|
+
financialYear: 2023,
|
|
3108
|
+
startDate: null,
|
|
3109
|
+
endDate: null,
|
|
3033
3110
|
value: 0.67,
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3111
|
+
unitOfMeasure: "hours",
|
|
3112
|
+
createdAt: "2024-01-29 15:15:00",
|
|
3113
|
+
updatedAt: "2024-01-29 15:15:00"
|
|
3037
3114
|
},
|
|
3038
3115
|
{
|
|
3039
3116
|
id: 51,
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3117
|
+
chartAccounts: {
|
|
3118
|
+
id: 888
|
|
3119
|
+
},
|
|
3120
|
+
financialYear: 2024,
|
|
3121
|
+
startDate: null,
|
|
3122
|
+
endDate: null,
|
|
3044
3123
|
value: 0.67,
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3124
|
+
unitOfMeasure: "hours",
|
|
3125
|
+
createdAt: "2024-01-29 15:15:00",
|
|
3126
|
+
updatedAt: "2024-01-29 15:15:00"
|
|
3048
3127
|
},
|
|
3049
3128
|
{
|
|
3050
3129
|
id: 52,
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3130
|
+
chartAccounts: {
|
|
3131
|
+
id: 888
|
|
3132
|
+
},
|
|
3133
|
+
financialYear: 2021,
|
|
3134
|
+
startDate: null,
|
|
3135
|
+
endDate: null,
|
|
3055
3136
|
value: 0.52,
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3137
|
+
unitOfMeasure: "hours",
|
|
3138
|
+
createdAt: "2024-01-30 15:15:00",
|
|
3139
|
+
updatedAt: "2024-01-30 15:15:00"
|
|
3059
3140
|
},
|
|
3060
3141
|
{
|
|
3061
3142
|
id: 53,
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3143
|
+
chartAccounts: {
|
|
3144
|
+
id: 888
|
|
3145
|
+
},
|
|
3146
|
+
financialYear: 2022,
|
|
3147
|
+
startDate: null,
|
|
3148
|
+
endDate: null,
|
|
3066
3149
|
value: 0.52,
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3150
|
+
unitOfMeasure: "hours",
|
|
3151
|
+
createdAt: "2024-01-30 15:15:00",
|
|
3152
|
+
updatedAt: "2024-01-30 15:15:00"
|
|
3070
3153
|
}
|
|
3071
3154
|
];
|
|
3072
3155
|
|
|
@@ -4764,14 +4847,13 @@ class SoleInvoice extends SoleInvoice$1 {
|
|
|
4764
4847
|
* When tax inclusive, GST amount is included to total price
|
|
4765
4848
|
*/
|
|
4766
4849
|
get inclusiveGSTAmount() {
|
|
4767
|
-
|
|
4768
|
-
return round(gstPrice - (gstPrice / (1 + ChartAccounts.GSTRatio)), 2);
|
|
4850
|
+
return this.itemsCollection.gstItems.reduce((sum, item) => sum + round(item.totalPrice - (item.totalPrice / (1 + ChartAccounts.GSTRatio)), 2));
|
|
4769
4851
|
}
|
|
4770
4852
|
/**
|
|
4771
4853
|
* When tax exclusive, GST amount should be added additionally to total price
|
|
4772
4854
|
*/
|
|
4773
4855
|
get exclusiveGSTAmount() {
|
|
4774
|
-
return
|
|
4856
|
+
return this.itemsCollection.gstItems.reduce((sum, item) => sum + round(item.totalPrice * ChartAccounts.GSTRatio, 2));
|
|
4775
4857
|
}
|
|
4776
4858
|
isDraft() {
|
|
4777
4859
|
return this.status === SoleInvoiceStatusesEnum.DRAFT;
|
|
@@ -6178,7 +6260,7 @@ class BankTransaction extends BankTransaction$1 {
|
|
|
6178
6260
|
* Check if bank transaction is completely allocated
|
|
6179
6261
|
*/
|
|
6180
6262
|
isAllocated(allocations) {
|
|
6181
|
-
return this.amount
|
|
6263
|
+
return (Math.abs(this.amount) - Math.abs(this.getAllocatedAmount(allocations))) <= 0.02;
|
|
6182
6264
|
}
|
|
6183
6265
|
/**
|
|
6184
6266
|
* Get bank transaction allocated amount
|
|
@@ -6358,7 +6440,7 @@ class Transaction extends Transaction$1 {
|
|
|
6358
6440
|
* Check if transaction is completely allocated
|
|
6359
6441
|
*/
|
|
6360
6442
|
isAllocated(allocations) {
|
|
6361
|
-
return this.netAmount
|
|
6443
|
+
return (Math.abs(this.netAmount) - Math.abs(this.getAllocatedAmount(allocations))) <= 0.02;
|
|
6362
6444
|
}
|
|
6363
6445
|
getAllocatedAmount(allocations) {
|
|
6364
6446
|
return allocations.filterBy('transaction.id', this.id).sumBy('amount');
|
|
@@ -6882,6 +6964,13 @@ class TransactionCollection extends ExportableCollection {
|
|
|
6882
6964
|
const incomes = transactions.getIncomeTransactions();
|
|
6883
6965
|
return incomes.calculateAllocatedClaimAmount(allocations) + expenses.sumBy('claimAmount');
|
|
6884
6966
|
}
|
|
6967
|
+
groupByInvoice(invoices) {
|
|
6968
|
+
const transactionsByInvoices = new TransactionCollection([]).groupBy();
|
|
6969
|
+
invoices.toArray().forEach((invoice) => {
|
|
6970
|
+
transactionsByInvoices.add(invoice.id, this.filterBy('id', invoice.getTransactionsIds()));
|
|
6971
|
+
});
|
|
6972
|
+
return transactionsByInvoices;
|
|
6973
|
+
}
|
|
6885
6974
|
}
|
|
6886
6975
|
|
|
6887
6976
|
class TransactionAllocationCollection extends Collection {
|
|
@@ -6920,6 +7009,13 @@ class TransactionAllocationCollection extends Collection {
|
|
|
6920
7009
|
hasBankTransaction(bankTransaction) {
|
|
6921
7010
|
return !!this.items.find((allocation) => allocation.bankTransaction.id === bankTransaction.id);
|
|
6922
7011
|
}
|
|
7012
|
+
groupByInvoice(invoices) {
|
|
7013
|
+
const allocationsByInvoices = new TransactionAllocationCollection([]).groupBy();
|
|
7014
|
+
invoices.toArray().forEach((invoice) => {
|
|
7015
|
+
allocationsByInvoices.add(invoice.id, this.filterBy('transaction.id', invoice.getTransactionsIds()));
|
|
7016
|
+
});
|
|
7017
|
+
return allocationsByInvoices;
|
|
7018
|
+
}
|
|
6923
7019
|
}
|
|
6924
7020
|
|
|
6925
7021
|
class DepreciationCollection extends Collection {
|
|
@@ -8152,8 +8248,8 @@ class SoleBusinessLossesCollection extends Collection {
|
|
|
8152
8248
|
}
|
|
8153
8249
|
|
|
8154
8250
|
class SoleInvoiceItemCollection extends Collection {
|
|
8155
|
-
get
|
|
8156
|
-
return this.filterBy('isGST', true)
|
|
8251
|
+
get gstItems() {
|
|
8252
|
+
return this.filterBy('isGST', true);
|
|
8157
8253
|
}
|
|
8158
8254
|
}
|
|
8159
8255
|
|
|
@@ -8176,6 +8272,26 @@ class SoleInvoiceCollection extends Collection {
|
|
|
8176
8272
|
getTransactionsIds() {
|
|
8177
8273
|
return flatten(this.items.map((invoice) => invoice.getTransactionsIds()));
|
|
8178
8274
|
}
|
|
8275
|
+
getUnallocated(allocations) {
|
|
8276
|
+
return this.filter((invoice) => {
|
|
8277
|
+
const invoiceAllocatedAmount = allocations.filterBy('transaction.id', invoice.getTransactionsIds()).sumBy('amount');
|
|
8278
|
+
return invoice.grossPrice > invoiceAllocatedAmount;
|
|
8279
|
+
});
|
|
8280
|
+
}
|
|
8281
|
+
getUnallocatedAmount(allocations) {
|
|
8282
|
+
return this.sumBy('grossPrice') - allocations.filterBy('transaction.id', this.getTransactionsIds()).sumBy('amount');
|
|
8283
|
+
}
|
|
8284
|
+
getPaidAmountById(allocations) {
|
|
8285
|
+
const allocationsByTransactionId = allocations.groupBy('transaction.id');
|
|
8286
|
+
const dictionary = new Dictionary([]);
|
|
8287
|
+
this.toArray().forEach((invoice) => {
|
|
8288
|
+
// fully paid if user marked invoice as paid with cash
|
|
8289
|
+
const amount = invoice.isPaidCash() ? invoice.grossPrice
|
|
8290
|
+
: allocationsByTransactionId.merge(invoice.itemsCollection.mapBy('transaction.id')).amount || 0;
|
|
8291
|
+
dictionary.add(invoice.id, amount);
|
|
8292
|
+
});
|
|
8293
|
+
return dictionary;
|
|
8294
|
+
}
|
|
8179
8295
|
}
|
|
8180
8296
|
|
|
8181
8297
|
class ServiceProductCollection extends Collection {
|
|
@@ -8764,6 +8880,9 @@ class BankTransactionCollection extends Collection {
|
|
|
8764
8880
|
getUnallocatedAmount(allocations) {
|
|
8765
8881
|
return round(this.getAmount() - allocations.getByBankTransactionsIds(this.getIds()).amount, 2);
|
|
8766
8882
|
}
|
|
8883
|
+
getAllocatedAmount(allocations) {
|
|
8884
|
+
return allocations.getByBankTransactionsIds(this.getIds()).amount;
|
|
8885
|
+
}
|
|
8767
8886
|
/**
|
|
8768
8887
|
* get date of the last transaction
|
|
8769
8888
|
*/
|
|
@@ -8850,11 +8969,23 @@ class BankTransactionCollection extends Collection {
|
|
|
8850
8969
|
}
|
|
8851
8970
|
});
|
|
8852
8971
|
}
|
|
8972
|
+
getAllocated(allocations) {
|
|
8973
|
+
return this.filter((bankTransaction) => bankTransaction.isAllocated(allocations));
|
|
8974
|
+
}
|
|
8975
|
+
getUnallocated(allocations) {
|
|
8976
|
+
return this.filter((bankTransaction) => !bankTransaction.isAllocated(allocations));
|
|
8977
|
+
}
|
|
8853
8978
|
/**
|
|
8854
|
-
*
|
|
8979
|
+
* Allocated sum of credit transactions
|
|
8855
8980
|
*/
|
|
8856
|
-
|
|
8857
|
-
return
|
|
8981
|
+
getCreditAmount(allocations) {
|
|
8982
|
+
return this.creditTransactions.getAllocatedAmount(allocations);
|
|
8983
|
+
}
|
|
8984
|
+
/**
|
|
8985
|
+
* Allocated sum of debit transactions
|
|
8986
|
+
*/
|
|
8987
|
+
getDebitAmount(allocations) {
|
|
8988
|
+
return this.debitTransactions.getAllocatedAmount(allocations);
|
|
8858
8989
|
}
|
|
8859
8990
|
}
|
|
8860
8991
|
|
|
@@ -18176,68 +18307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
18176
18307
|
args: ['environment']
|
|
18177
18308
|
}] }]; } });
|
|
18178
18309
|
|
|
18179
|
-
/**
|
|
18180
|
-
* @TODO move to collection
|
|
18181
|
-
*/
|
|
18182
|
-
class BankTransactionCalculationService {
|
|
18183
|
-
/**
|
|
18184
|
-
* Sum of allocations for passed bank transactions
|
|
18185
|
-
*/
|
|
18186
|
-
getAllocatedAmount(bankTransactions, allocations) {
|
|
18187
|
-
return allocations.getByBankTransactionsIds(bankTransactions.getIds()).amount;
|
|
18188
|
-
}
|
|
18189
|
-
/**
|
|
18190
|
-
* Difference between total bank transactions amount and sum of allocations for passed bank transactions
|
|
18191
|
-
*/
|
|
18192
|
-
getUnallocatedAmount(bankTransactionCollection, allocations) {
|
|
18193
|
-
return bankTransactionCollection.getAmount() - allocations.amount;
|
|
18194
|
-
}
|
|
18195
|
-
/**
|
|
18196
|
-
* Check if bank transaction is allocated
|
|
18197
|
-
*/
|
|
18198
|
-
isAllocated(bankTransaction, allocations) {
|
|
18199
|
-
return bankTransaction.amount === this.getAllocatedAmount(new BankTransactionCollection([bankTransaction]), allocations);
|
|
18200
|
-
}
|
|
18201
|
-
/**
|
|
18202
|
-
* Get collection of allocated bank transactions
|
|
18203
|
-
* @TODO Alex: consider to move to collection
|
|
18204
|
-
*/
|
|
18205
|
-
getAllocatedBankTransactions(bankTransactions, allocations) {
|
|
18206
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => this.isAllocated(bankTransaction, allocations)));
|
|
18207
|
-
}
|
|
18208
|
-
/**
|
|
18209
|
-
* Get collection of unallocated bank transactions
|
|
18210
|
-
* @TODO Alex: consider to move to collection
|
|
18211
|
-
*/
|
|
18212
|
-
getUnallocated(bankTransactions, allocations) {
|
|
18213
|
-
return new BankTransactionCollection(bankTransactions.items.filter((bankTransaction) => !this.isAllocated(bankTransaction, allocations)));
|
|
18214
|
-
}
|
|
18215
|
-
/**
|
|
18216
|
-
* Allocated sum of credit transactions
|
|
18217
|
-
*/
|
|
18218
|
-
getCreditAmount(bankTransactions, allocations) {
|
|
18219
|
-
return allocations.getByBankTransactionsIds(bankTransactions.creditTransactions.getIds()).amount;
|
|
18220
|
-
}
|
|
18221
|
-
/**
|
|
18222
|
-
* Allocated sum of debit transactions
|
|
18223
|
-
*/
|
|
18224
|
-
getDebitAmount(bankTransactions, allocations) {
|
|
18225
|
-
return allocations.getByBankTransactionsIds(bankTransactions.debitTransactions.getIds()).amount;
|
|
18226
|
-
}
|
|
18227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18228
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionCalculationService, providedIn: 'root' }); }
|
|
18229
|
-
}
|
|
18230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankTransactionCalculationService, decorators: [{
|
|
18231
|
-
type: Injectable,
|
|
18232
|
-
args: [{
|
|
18233
|
-
providedIn: 'root'
|
|
18234
|
-
}]
|
|
18235
|
-
}] });
|
|
18236
|
-
|
|
18237
18310
|
class BankAccountCalculationService {
|
|
18238
|
-
constructor(bankTransactionCalculationService) {
|
|
18239
|
-
this.bankTransactionCalculationService = bankTransactionCalculationService;
|
|
18240
|
-
}
|
|
18241
18311
|
/**
|
|
18242
18312
|
* Sum of bank accounts opening balances and their bank transactions allocated amounts
|
|
18243
18313
|
*/
|
|
@@ -18246,8 +18316,8 @@ class BankAccountCalculationService {
|
|
|
18246
18316
|
const bankAccountCollection = bankAccounts instanceof BankAccount ?
|
|
18247
18317
|
new BankAccountCollection([bankAccounts]) :
|
|
18248
18318
|
bankAccounts;
|
|
18249
|
-
return bankAccountCollection.
|
|
18250
|
-
|
|
18319
|
+
return bankTransactions.getByBankAccountsIds(bankAccountCollection.getIds()).getAllocatedAmount(allocations)
|
|
18320
|
+
+ bankAccountCollection.getOpeningBalance();
|
|
18251
18321
|
}
|
|
18252
18322
|
/**
|
|
18253
18323
|
* get difference between total loans amount and total cash amount
|
|
@@ -18255,7 +18325,7 @@ class BankAccountCalculationService {
|
|
|
18255
18325
|
getNetPosition(bankAccounts, bankTransactions, allocations) {
|
|
18256
18326
|
return bankAccounts.currentBalance - this.getTaxTankBalance(bankAccounts.getLoanAccounts(), bankTransactions, allocations);
|
|
18257
18327
|
}
|
|
18258
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankAccountCalculationService, deps: [
|
|
18328
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankAccountCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18259
18329
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankAccountCalculationService, providedIn: 'root' }); }
|
|
18260
18330
|
}
|
|
18261
18331
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: BankAccountCalculationService, decorators: [{
|
|
@@ -18263,7 +18333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
18263
18333
|
args: [{
|
|
18264
18334
|
providedIn: 'root'
|
|
18265
18335
|
}]
|
|
18266
|
-
}]
|
|
18336
|
+
}] });
|
|
18267
18337
|
|
|
18268
18338
|
class ExportFormatterService {
|
|
18269
18339
|
constructor(currencyPipe, percentPipe, datePipe) {
|
|
@@ -18891,55 +18961,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
18891
18961
|
* @TODO Alex: refactor, move methods to collections and models, remove this service
|
|
18892
18962
|
*/
|
|
18893
18963
|
class TransactionCalculationService {
|
|
18894
|
-
/**
|
|
18895
|
-
* Sum of allocations for passed transactions
|
|
18896
|
-
*/
|
|
18897
|
-
getAllocatedAmount(transactions, allocations) {
|
|
18898
|
-
return allocations.getByTransactionsIds(transactions.getIds()).amount;
|
|
18899
|
-
}
|
|
18900
|
-
/**
|
|
18901
|
-
* Check if transaction is allocated
|
|
18902
|
-
*/
|
|
18903
|
-
isAllocated(transaction, allocations) {
|
|
18904
|
-
return transaction.isAllocated(allocations);
|
|
18905
|
-
}
|
|
18906
|
-
/**
|
|
18907
|
-
* Get collection of allocated transactions
|
|
18908
|
-
* @TODO Alex: consider to move to collection
|
|
18909
|
-
*/
|
|
18910
|
-
getAllocatedTransactions(transactions, allocations) {
|
|
18911
|
-
return new TransactionCollection(transactions.items.filter((transaction) => transaction.isAllocated(allocations)));
|
|
18912
|
-
}
|
|
18913
|
-
getUnallocatedInvoices(invoices, allocations) {
|
|
18914
|
-
return invoices.filter((invoice) => {
|
|
18915
|
-
const invoiceAllocatedAmount = allocations.filterBy('transaction.id', invoice.getTransactionsIds()).sumBy('amount');
|
|
18916
|
-
return invoice.grossPrice > invoiceAllocatedAmount;
|
|
18917
|
-
});
|
|
18918
|
-
}
|
|
18919
|
-
/**
|
|
18920
|
-
* Get invoices paid amounts grouped by invoice id
|
|
18921
|
-
*/
|
|
18922
|
-
getInvoicePaidAmountById(allocations, invoices) {
|
|
18923
|
-
const allocationsByTransactionId = allocations.groupBy('transaction.id');
|
|
18924
|
-
const dictionary = new Dictionary([]);
|
|
18925
|
-
invoices.toArray().forEach((invoice) => {
|
|
18926
|
-
// fully paid if user marked invoice as paid with cash
|
|
18927
|
-
const amount = invoice.isPaidCash() ? invoice.grossPrice
|
|
18928
|
-
: allocationsByTransactionId.merge(invoice.itemsCollection.mapBy('transaction.id')).amount || 0;
|
|
18929
|
-
dictionary.add(invoice.id, amount);
|
|
18930
|
-
});
|
|
18931
|
-
return dictionary;
|
|
18932
|
-
}
|
|
18933
|
-
getInvoicesUnallocatedAmount(invoices, allocations) {
|
|
18934
|
-
return invoices.sumBy('grossPrice') - allocations.filterBy('transaction.id', invoices.getTransactionsIds()).sumBy('amount');
|
|
18935
|
-
}
|
|
18936
|
-
getTransactionsByInvoices(invoices, transactions) {
|
|
18937
|
-
const transactionsByInvoices = new TransactionCollection([]).groupBy();
|
|
18938
|
-
invoices.toArray().forEach((invoice) => {
|
|
18939
|
-
transactionsByInvoices.add(invoice.id, transactions.filterBy('id', invoice.getTransactionsIds()));
|
|
18940
|
-
});
|
|
18941
|
-
return transactionsByInvoices;
|
|
18942
|
-
}
|
|
18943
18964
|
getAllocationsByInvoices(invoices, allocations) {
|
|
18944
18965
|
const allocationsByInvoices = new TransactionAllocationCollection([]).groupBy();
|
|
18945
18966
|
invoices.toArray().forEach((invoice) => {
|
|
@@ -18947,9 +18968,6 @@ class TransactionCalculationService {
|
|
|
18947
18968
|
});
|
|
18948
18969
|
return allocationsByInvoices;
|
|
18949
18970
|
}
|
|
18950
|
-
getBankTransactionsUnallocatedAmount(bankTransactions, allocations) {
|
|
18951
|
-
return bankTransactions.sumBy('amount') - allocations.getByBankTransactionsIds(bankTransactions.getIds()).sumBy('amount');
|
|
18952
|
-
}
|
|
18953
18971
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionCalculationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18954
18972
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TransactionCalculationService, providedIn: 'root' }); }
|
|
18955
18973
|
}
|
|
@@ -19441,9 +19459,10 @@ const ENDPOINTS = {
|
|
|
19441
19459
|
TRANSACTIONS_GET: new Endpoint('GET', '\\/transactions'),
|
|
19442
19460
|
TRANSACTIONS_POST: new Endpoint('POST', '\\/transactions'),
|
|
19443
19461
|
TRANSACTIONS_PUT: new Endpoint('PUT', '\\/transactions'),
|
|
19444
|
-
TRANSACTIONS_ALLOCATIONS_GET: new Endpoint('GET', '\\/
|
|
19445
|
-
TRANSACTIONS_ALLOCATIONS_POST: new Endpoint('POST', '\\/
|
|
19446
|
-
TRANSACTIONS_ALLOCATIONS_DELETE: new Endpoint('DELETE', '\\/
|
|
19462
|
+
TRANSACTIONS_ALLOCATIONS_GET: new Endpoint('GET', '\\/transaction-allocations'),
|
|
19463
|
+
TRANSACTIONS_ALLOCATIONS_POST: new Endpoint('POST', '\\/transaction-allocations'),
|
|
19464
|
+
TRANSACTIONS_ALLOCATIONS_DELETE: new Endpoint('DELETE', '\\/transaction-allocations\\/\\d+'),
|
|
19465
|
+
TRANSACTIONS_ALLOCATIONS_BATCH_DELETE: new Endpoint('POST', '\\/transaction-allocations\\/delete'),
|
|
19447
19466
|
USER_CONFIRMATION_POST: new Endpoint('POST', '\\/users\\/confirmation'),
|
|
19448
19467
|
USER_CONFIRMATION_RESEND_POST: new Endpoint('POST', '\\/users\\/confirmation\\/resend'),
|
|
19449
19468
|
USER_CURRENT_GET: new Endpoint('GET', '\\/users\\/current'),
|
|
@@ -23621,5 +23640,5 @@ var MessagesEnum;
|
|
|
23621
23640
|
* Generated bundle index. Do not edit.
|
|
23622
23641
|
*/
|
|
23623
23642
|
|
|
23624
|
-
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionCalculationService, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsUnallocatableListEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingImport, HoldingImportForm, HoldingImportMessagesEnum, HoldingImportService, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeListEnum, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MixpanelService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SERVICE_PRODUCT_ROLES, SafeUrlPipe, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewMessagesEnum, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, YoutubeService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
23643
|
+
export { AbstractForm, AbstractModel, AccountSetupItem, AccountSetupItemCollection, AccountSetupService, Address, AddressForm, AddressService, AddressTypeEnum, AllocationGroup, AllocationGroupCollection, AllocationRule, AllocationRuleCollection, AllocationRuleConditionComparisonOperatorEnum, AllocationRuleConditionFieldEnum, AllocationRuleConditionOperatorEnum, AllocationRuleForm, AllocationRuleService, AllocationRuleTransaction, AllocationRuleTransactionMetaField, AllocationRuleTypeEnum, AlphabetColorsEnum, AnnualClientDetails, AnnualClientDetailsForm, AnnualClientDetailsService, AnnualFrequencyEnum, AppCurrencyPipe, AppEvent, AppEvent2, AppEventTypeEnum, AppFile, AssetEntityTypeEnum, AssetSale, AssetSaleCollection, AssetTypeEnum, AssetsService, AuthService, BANK_ACCOUNT_TYPES, Badge, BadgeColorEnum, Bank, BankAccount, BankAccountAddManualForm, BankAccountAllocationForm, BankAccountCalculationService, BankAccountChartData, BankAccountCollection, BankAccountImportForm, BankAccountPropertiesForm, BankAccountProperty, BankAccountService, BankAccountStatusEnum, BankAccountTypeEnum, BankAccountsImportForm, BankConnection, BankConnectionMessagesEnum, BankConnectionService, BankConnectionStatusEnum, BankExternalStats, BankPopularEnum, BankProviderEnum, BankService, BankTransaction, BankTransactionChartData, BankTransactionCollection, BankTransactionService, BankTransactionSummaryFieldsEnum, BankTransactionTypeEnum, BasReport, BasReportForm, BasReportService, BasiqConfig, BasiqJob, BasiqJobResponse, BasiqJobStep, BasiqMessagesEnum, BasiqService, BasiqToken, BasiqTokenService, BestVehicleLogbookCollection, BorrowingExpense, BorrowingExpenseLoan, BorrowingExpenseService, BorrowingReport, BorrowingReportForm, BorrowingReportMessagesEnum, BorrowingReportService, Budget, BudgetForm, BudgetMessagesEnum, BudgetRule, BudgetService, BusinessTypeEnum, CAPITAL_COSTS_ITEMS, CHART_ACCOUNTS_CATEGORIES, CalculationFormItem, CalculationFormTypeEnum, CgtExemptionAndRolloverCodeEnum, ChartAccounts, ChartAccountsCategoryECollection, ChartAccountsCategoryEnum, ChartAccountsCollection, ChartAccountsDepreciation, ChartAccountsDepreciationService, ChartAccountsEtpEnum, ChartAccountsHeading, ChartAccountsHeadingListEnum, ChartAccountsHeadingTaxDeductibleEnum, ChartAccountsHeadingTaxableEnum, ChartAccountsHeadingVehicleListEnum, ChartAccountsHoldingUntaxedIncomeListEnum, ChartAccountsInvoiceExpenseEnum, ChartAccountsKeepSign, ChartAccountsListEnum, ChartAccountsMetaField, ChartAccountsMetaFieldListEnum, ChartAccountsMetaFieldTypeEnum, ChartAccountsSalaryAdjustmentsListEnum, ChartAccountsSalaryIncludedListEnum, ChartAccountsService, ChartAccountsTaxLabelsEnum, ChartAccountsTypeEnum, ChartAccountsUnallocatableListEnum, ChartAccountsValue, ChartAccountsValueService, ChartData, ChartSerie, Chat, ChatCollection, ChatService, ChatStatusEnum, ChatViewTypeEnum, ClientCollection, ClientDetails, ClientDetailsForm, ClientDetailsMedicareExemptionEnum, ClientDetailsWorkDepreciationCalculationEnum, ClientDetailsWorkingHolidayMakerEnum, ClientIncomeTypes, ClientIncomeTypesForm, ClientIncomeTypesService, ClientInvite, ClientInviteCollection, ClientInviteMessages, ClientInviteService, ClientInviteStatusEnum, ClientInviteTypeEnum, ClientMovement, ClientMovementCollection, ClientMovementService, ClientPortfolioChartData, ClientPortfolioReport, ClientPortfolioReportCollection, ClientPortfolioReportService, Collection, CollectionDictionary, CorelogicService, CorelogicSuggestion, Country, DEDUCTION_CATEGORIES, DEPRECIATION_GROUPS, DOCUMENT_FILE_TYPES, DeductionClothingTypeEnum, DeductionSelfEducationTypeEnum, Depreciation, DepreciationCalculationEnum, DepreciationCalculationPercentEnum, DepreciationCapitalProject, DepreciationCapitalProjectService, DepreciationCollection, DepreciationForecast, DepreciationForecastCollection, DepreciationForm, DepreciationGroup, DepreciationGroupEnum, DepreciationGroupItem, DepreciationLvpAssetTypeEnum, DepreciationLvpRateEnum, DepreciationLvpReportItem, DepreciationLvpReportItemCollection, DepreciationReportItem, DepreciationReportItemCollection, DepreciationService, DepreciationTypeEnum, DepreciationWriteOffAmountEnum, Dictionary, Document, DocumentApiUrlPrefixEnum, DocumentFolder, DocumentFolderForm, DocumentFolderMessagesEnum, DocumentFolderService, DocumentForm, DocumentMessagesEnum, DocumentService, DocumentTypeEnum, ENDPOINTS, EmployeeCollection, EmployeeDetails, EmployeeInvite, EmployeeInviteService, EmployeeMessagesEnum, EmployeeService, Endpoint, EquityPositionChartService, EventDispatcherService, ExportDataTable, ExportFormatEnum, ExportFormatterService, ExportableCollection, FacebookService, FileService, FileValidator, FinancialYear, FinancialYearService, Firm, FirmForm, FirmMessagesEnum, FirmService, FirmTypeEnum, FormValidationsEnum, GoogleService, HeaderTitleService, Holding, HoldingCollection, HoldingForm, HoldingImport, HoldingImportForm, HoldingImportMessagesEnum, HoldingImportService, HoldingIncomeForm, HoldingMessagesEnum, HoldingReinvest, HoldingReinvestForm, HoldingSale, HoldingSaleCollection, HoldingSaleForm, HoldingSaleMessagesEnum, HoldingSaleService, HoldingService, HoldingType, HoldingTypeCategoryEnum, HoldingTypeCollection, HoldingTypeExchange, HoldingTypeExchangeListEnum, HoldingTypeExchangeService, HoldingTypeForm, HoldingTypeMessagesEnum, HoldingTypeService, IconsFileEnum, IncomeAmountTypeEnum, IncomePosition, IncomeSource, IncomeSourceChartData, IncomeSourceCollection, IncomeSourceForecast, IncomeSourceForecastCollection, IncomeSourceForecastService, IncomeSourceForecastTrustTypeEnum, IncomeSourceMessagesEnum, IncomeSourceService, IncomeSourceType, IncomeSourceTypeEnum, IncomeSourceTypeListHoldingEnum, IncomeSourceTypeListOtherEnum, IncomeSourceTypeListSoleEnum, IncomeSourceTypeListWorkEnum, IncomeSourceTypeService, InterceptorsModule, IntercomService, InviteStatusEnum, JsPdf, JwtService, Loan, LoanBankTypeEnum, LoanCollection, LoanForm, LoanFrequencyEnum, LoanInterestTypeEnum, LoanInterestTypeLabelEnum, LoanMaxNumberOfPaymentsEnum, LoanPayment, LoanPaymentCollection, LoanPayout, LoanPayoutTypeEnum, LoanRepaymentFrequencyEnum, LoanRepaymentTypeEnum, LoanRepaymentTypeLabelEnum, LoanService, LoanTypeEnum, LoanVehicleTypeEnum, LoginForm, LossTypeEnum, MODULE_URL_LIST, MONTHS, Message, MessageCollection, MessageDocument, MessageDocumentCollection, MessageDocumentService, MessageService, MessagesEnum, MixpanelService, MonthNameShortEnum, MonthNumberEnum, MyAccountHistory, MyAccountHistoryInitiatedByEnum, MyAccountHistoryStatusEnum, MyAccountHistoryTypeEnum, MyTaxBusinessDetails, MyTaxBusinessDetailsForm, MyTaxBusinessIncome, MyTaxBusinessIncomeForm, MyTaxBusinessIncomeOrLossesForm, MyTaxBusinessLosses, MyTaxBusinessLossesForm, MyTaxCgt, MyTaxCgtForm, MyTaxDeductions, MyTaxDeductionsForm, MyTaxDividends, MyTaxDividendsForm, MyTaxEstimate, MyTaxIncomeStatements, MyTaxIncomeStatementsForm, MyTaxIncomeTests, MyTaxIncomeTestsForm, MyTaxInterest, MyTaxInterestForm, MyTaxLosses, MyTaxLossesForm, MyTaxMedicareForm, MyTaxOffsets, MyTaxOffsetsForm, MyTaxOtherIncome, MyTaxOtherIncomeForm, MyTaxPartnershipsAndTrusts, MyTaxPartnershipsAndTrustsForm, MyTaxRent, MyTaxRentForm, Notification, Occupation, OccupationService, PASSWORD_REGEXPS, PasswordForm, PdfFromDataTableService, PdfFromDomElementService, PdfFromHtmlTableService, PdfFromTableService, PdfOrientationEnum, PdfService, PdfSettings, Phone, PhoneForm, PhoneTypeEnum, PreloaderService, Property, PropertyAddForm, PropertyCalculationService, PropertyCategory, PropertyCategoryListEnum, PropertyCategoryMovement, PropertyCategoryMovementCollection, PropertyCategoryMovementForm, PropertyCategoryMovementService, PropertyCategoryService, PropertyCollection, PropertyDepreciationCalculationEnum, PropertyDocument, PropertyDocumentForm, PropertyDocumentMessagesEnum, PropertyDocumentService, PropertyEditForm, PropertyEquityChartData, PropertyEquityChartItem, PropertyEquityChartTypeEnum, PropertyForecast, PropertyForecastForm, PropertyMessagesEnum, PropertyReportItem, PropertyReportItemCollection, PropertyReportItemDepreciation, PropertyReportItemDepreciationCollection, PropertyReportItemTransaction, PropertyReportItemTransactionCollection, PropertySale, PropertySaleCollection, PropertySaleCostBase, PropertySaleCostBaseForm, PropertySaleCostSaleForm, PropertySaleExemptionsForm, PropertySaleService, PropertySaleTaxExemptionMetaField, PropertySaleTaxExemptionMetaFieldCollection, PropertyService, PropertyShare, PropertyShareAccessEnum, PropertyShareCollection, PropertyShareForm, PropertyShareService, PropertyShareStatusEnum, PropertySubscription, PropertyTransactionReportService, PropertyValuation, PropertyValuationCollection, PropertyValuationForm, PropertyValuationMessages, PropertyValuationService, RegisterClientForm, RegisterFirmForm, RegistrationInvite, RegistrationInviteStatusEnum, ReportItem, ReportItemCollection, ReportItemDetails, ResetPasswordForm, RestService$1 as RestService, RewardfulService, SERVICE_PRODUCT_ROLES, SafeUrlPipe, SalaryForecast, SalaryForecastFrequencyEnum, SalaryForecastService, ServiceNotificationService, ServiceNotificationStatusEnum, ServiceNotificationTypeEnum, ServicePayment, ServicePaymentMethod, ServicePaymentMethodService, ServicePaymentService, ServicePaymentStatusEnum, ServicePrice, ServicePriceCollection, ServicePriceRecurringIntervalEnum, ServicePriceService, ServicePriceTypeEnum, ServiceProduct, ServiceProductCollection, ServiceProductIconsEnum, ServiceProductIdEnum, ServiceProductService, ServiceProductStatusEnum, ServicePromoCode, ServiceSubscription, ServiceSubscriptionCollection, ServiceSubscriptionItem, ServiceSubscriptionStatusEnum, SetupItemTypeEnum, SoleBusiness, SoleBusinessActivity, SoleBusinessActivityService, SoleBusinessAllocation, SoleBusinessAllocationsForm, SoleBusinessForm, SoleBusinessLoss, SoleBusinessLossForm, SoleBusinessLossOffsetRule, SoleBusinessLossOffsetRuleService, SoleBusinessLossReport, SoleBusinessLossService, SoleBusinessLossesCollection, SoleBusinessMessagesEnum, SoleBusinessService, SoleContact, SoleContactForm, SoleContactService, SoleDepreciationMethod, SoleDepreciationMethodEnum, SoleDepreciationMethodForm, SoleDepreciationMethodService, SoleDetails, SoleDetailsForm, SoleDetailsService, SoleForecast, SoleForecastService, SoleIncomeForm, SoleInvoice, SoleInvoiceCollection, SoleInvoiceForm, SoleInvoiceItem, SoleInvoiceItemCollection, SoleInvoiceItemForm, SoleInvoiceService, SoleInvoiceStatusesEnum, SoleInvoiceTaxTypeEnum, SoleInvoiceTemplate, SoleInvoiceTemplateForm, SoleInvoiceTemplateService, SoleInvoiceTemplateTaxTypeEnum, SpareDocumentSpareTypeEnum, SseService, StatesEnum, SubscriptionItemCollection, SubscriptionMessagesEnum, SubscriptionService, TAX_RETURN_CATEGORIES, TYPE_LOAN, TankTypeEnum, TaxCalculationMedicareExemptionEnum, TaxCalculationTypeEnum, TaxExemption, TaxExemptionEnum, TaxExemptionMetaField, TaxExemptionMetaFieldEnum, TaxExemptionService, TaxReturn, TaxReturnCategory, TaxReturnCategoryListEnum, TaxReturnCategorySectionEnum, TaxReturnItem, TaxReturnItemEnum, TaxReturnItemService, TaxReview, TaxReviewCollection, TaxReviewHistoryService, TaxReviewMessagesEnum, TaxReviewService, TaxReviewStatusEnum, TaxSummary, TaxSummaryListEnum, TaxSummarySection, TaxSummarySectionEnum, TaxSummaryService, TaxSummaryTaxSummaryEnum, TaxSummaryTypeEnum, TicketFeedbackEnum, TicketStatusEnum, TicketTypesEnum, Toast, ToastService, ToastTypeEnum, Transaction, TransactionAllocation, TransactionAllocationCollection, TransactionAllocationService, TransactionBase, TransactionBaseForm, TransactionCalculationService, TransactionCategoryEnum, TransactionCollection, TransactionForm, TransactionMetaField, TransactionOperationEnum, TransactionService, TransactionSourceEnum, TransactionTypeEnum, TtCoreModule, USER_ROLES, USER_WORK_POSITION, UniqueEmailValidator, User, UserEventSetting, UserEventSettingCollection, UserEventSettingFieldEnum, UserEventSettingService, UserEventStatusEnum, UserEventType, UserEventTypeCategory, UserEventTypeClientTypeEnum, UserEventTypeCollection, UserEventTypeEmployeeTypeEnum, UserEventTypeFrequencyEnum, UserEventTypeService, UserEventTypeUserTypeEnum, UserForm, UserInviteForm, UserMedicareExemptionEnum, UserMessagesEnum, UserRolesEnum, UserService, UserStatusEnum, UserSwitcherService, UserTitleEnum, UserToRegister, UserWorkDepreciationCalculationEnum, UserWorkingHolidayMakerEnum, UsersInviteService, Vehicle, VehicleClaim, VehicleClaimCollection, VehicleClaimDetails, VehicleClaimDetailsForm, VehicleClaimDetailsMethodEnum, VehicleClaimDetailsService, VehicleClaimForm, VehicleClaimService, VehicleExpense, VehicleExpenseCollection, VehicleForm, VehicleLogbook, VehicleLogbookCollection, VehicleLogbookForm, VehicleLogbookMessages, VehicleLogbookPurposeEnum, VehicleLogbookService, VehicleMessagesEnum, VehicleService, WorkExpenseForm, WorkIncomeForm, XlsxService, YoutubeService, atLeastOneCheckedValidator, atoLinks, autocompleteValidator, cloneDeep, compare, compareMatOptions, conditionalValidator, createDate, currentFinYearValidator, displayMatOptions, enumToList, fieldsSumValidator, getDocIcon, greaterThanValidator, minDateValidator, passwordMatchValidator, passwordValidator, replace, sort, sortDeep, taxReviewFilterPredicate, toArray };
|
|
23625
23644
|
//# sourceMappingURL=taxtank-core.mjs.map
|