webtranslateit-payday 1.6.4 → 1.6.7
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.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -8
- data/.github/workflows/release-drafter.yml +1 -1
- data/.rubocop_todo.yml +0 -7
- data/CHANGELOG.md +19 -6
- data/Gemfile +1 -1
- data/Gemfile.lock +81 -61
- data/lib/payday/invoiceable.rb +1 -1
- data/lib/payday/pdf_renderer.rb +2 -2
- data/payday.gemspec +1 -1
- data/spec/assets/svg.pdf +176 -104
- data/spec/assets/testing.pdf +214 -151
- data/spec/assets/testing_es.pdf +0 -0
- data/spec/assets/testing_predefined_amount.pdf +0 -0
- data/spec/invoice_spec.rb +3 -3
- data/spec/line_item_spec.rb +5 -5
- metadata +3 -3
data/spec/assets/testing.pdf
CHANGED
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
>>
|
|
7
7
|
endobj
|
|
8
8
|
2 0 obj
|
|
9
|
-
<< /
|
|
10
|
-
/
|
|
9
|
+
<< /Pages 3 0 R
|
|
10
|
+
/Type /Catalog
|
|
11
11
|
>>
|
|
12
12
|
endobj
|
|
13
13
|
3 0 obj
|
|
14
|
-
<< /
|
|
15
|
-
/Count 4
|
|
14
|
+
<< /Count 4
|
|
16
15
|
/Kids [5 0 R 11 0 R 13 0 R 15 0 R]
|
|
16
|
+
/Type /Pages
|
|
17
17
|
>>
|
|
18
18
|
endobj
|
|
19
19
|
4 0 obj
|
|
@@ -2788,49 +2788,49 @@ Q
|
|
|
2788
2788
|
endstream
|
|
2789
2789
|
endobj
|
|
2790
2790
|
5 0 obj
|
|
2791
|
-
<< /
|
|
2792
|
-
/Parent 3 0 R
|
|
2793
|
-
/MediaBox [0 0 612 792]
|
|
2794
|
-
/CropBox [0 0 612 792]
|
|
2791
|
+
<< /ArtBox [0 0 612 792]
|
|
2795
2792
|
/BleedBox [0 0 612 792]
|
|
2796
|
-
/TrimBox [0 0 612 792]
|
|
2797
|
-
/ArtBox [0 0 612 792]
|
|
2798
2793
|
/Contents 4 0 R
|
|
2799
|
-
/
|
|
2800
|
-
/
|
|
2801
|
-
/
|
|
2794
|
+
/CropBox [0 0 612 792]
|
|
2795
|
+
/MediaBox [0 0 612 792]
|
|
2796
|
+
/Parent 3 0 R
|
|
2797
|
+
/Resources << /Font << /F1.0 9 0 R
|
|
2798
|
+
/F2.0 6 0 R
|
|
2802
2799
|
>>
|
|
2800
|
+
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
|
2803
2801
|
/XObject << /I1 7 0 R
|
|
2804
2802
|
>>
|
|
2805
2803
|
>>
|
|
2804
|
+
/TrimBox [0 0 612 792]
|
|
2805
|
+
/Type /Page
|
|
2806
2806
|
>>
|
|
2807
2807
|
endobj
|
|
2808
2808
|
6 0 obj
|
|
2809
|
-
<< /
|
|
2810
|
-
/BaseFont /c43434+NotoSans-Bold
|
|
2811
|
-
/Subtype /TrueType
|
|
2812
|
-
/FontDescriptor 17 0 R
|
|
2809
|
+
<< /BaseFont /c43434+NotoSans-Bold
|
|
2813
2810
|
/FirstChar 32
|
|
2814
|
-
/
|
|
2815
|
-
/
|
|
2811
|
+
/FontDescriptor 17 0 R
|
|
2812
|
+
/LastChar 121
|
|
2813
|
+
/Subtype /TrueType
|
|
2816
2814
|
/ToUnicode 18 0 R
|
|
2815
|
+
/Type /Font
|
|
2816
|
+
/Widths 19 0 R
|
|
2817
2817
|
>>
|
|
2818
2818
|
endobj
|
|
2819
2819
|
7 0 obj
|
|
2820
|
-
<< /
|
|
2821
|
-
/Subtype /Image
|
|
2822
|
-
/Height 100
|
|
2823
|
-
/Width 109
|
|
2824
|
-
/BitsPerComponent 8
|
|
2820
|
+
<< /BitsPerComponent 8
|
|
2825
2821
|
/ColorSpace /DeviceRGB
|
|
2826
|
-
/
|
|
2827
|
-
/Length 18466
|
|
2828
|
-
/Filter [/FlateDecode]
|
|
2829
|
-
/DecodeParms [<< /Predictor 15
|
|
2822
|
+
/DecodeParms [<< /BitsPerComponent 8
|
|
2830
2823
|
/Colors 3
|
|
2831
|
-
/BitsPerComponent 8
|
|
2832
2824
|
/Columns 109
|
|
2825
|
+
/Predictor 15
|
|
2833
2826
|
>>]
|
|
2827
|
+
/Filter [/FlateDecode]
|
|
2828
|
+
/Height 100
|
|
2829
|
+
/Length 18466
|
|
2830
|
+
/SMask 8 0 R
|
|
2831
|
+
/Subtype /Image
|
|
2832
|
+
/Type /XObject
|
|
2833
|
+
/Width 109
|
|
2834
2834
|
>>
|
|
2835
2835
|
stream
|
|
2836
2836
|
x�U�I�mIz%���ww�۾6��Ⱦ��TX%(j�0����0�o0� ���`P&�
|
|
@@ -2902,34 +2902,34 @@ fWo
|
|
|
2902
2902
|
endstream
|
|
2903
2903
|
endobj
|
|
2904
2904
|
8 0 obj
|
|
2905
|
-
<< /
|
|
2906
|
-
/Subtype /Image
|
|
2907
|
-
/Height 100
|
|
2908
|
-
/Width 109
|
|
2909
|
-
/BitsPerComponent 8
|
|
2905
|
+
<< /BitsPerComponent 8
|
|
2910
2906
|
/ColorSpace /DeviceGray
|
|
2911
2907
|
/Decode [0 1]
|
|
2912
|
-
/
|
|
2913
|
-
/Filter [/FlateDecode]
|
|
2914
|
-
/DecodeParms [<< /Predictor 15
|
|
2908
|
+
/DecodeParms [<< /BitsPerComponent 8
|
|
2915
2909
|
/Colors 1
|
|
2916
|
-
/BitsPerComponent 8
|
|
2917
2910
|
/Columns 109
|
|
2911
|
+
/Predictor 15
|
|
2918
2912
|
>>]
|
|
2913
|
+
/Filter [/FlateDecode]
|
|
2914
|
+
/Height 100
|
|
2915
|
+
/Length 104
|
|
2916
|
+
/Subtype /Image
|
|
2917
|
+
/Type /XObject
|
|
2918
|
+
/Width 109
|
|
2919
2919
|
>>
|
|
2920
2920
|
stream
|
|
2921
2921
|
x����
|
|
2922
2922
|
endstream
|
|
2923
2923
|
endobj
|
|
2924
2924
|
9 0 obj
|
|
2925
|
-
<< /
|
|
2926
|
-
/BaseFont /dcc6e3+NotoSans
|
|
2927
|
-
/Subtype /TrueType
|
|
2928
|
-
/FontDescriptor 21 0 R
|
|
2925
|
+
<< /BaseFont /dcc6e3+NotoSans
|
|
2929
2926
|
/FirstChar 32
|
|
2930
|
-
/
|
|
2931
|
-
/
|
|
2927
|
+
/FontDescriptor 21 0 R
|
|
2928
|
+
/LastChar 122
|
|
2929
|
+
/Subtype /TrueType
|
|
2932
2930
|
/ToUnicode 22 0 R
|
|
2931
|
+
/Type /Font
|
|
2932
|
+
/Widths 23 0 R
|
|
2933
2933
|
>>
|
|
2934
2934
|
endobj
|
|
2935
2935
|
10 0 obj
|
|
@@ -7279,19 +7279,19 @@ Q
|
|
|
7279
7279
|
endstream
|
|
7280
7280
|
endobj
|
|
7281
7281
|
11 0 obj
|
|
7282
|
-
<< /
|
|
7283
|
-
/Parent 3 0 R
|
|
7284
|
-
/MediaBox [0 0 612 792]
|
|
7285
|
-
/CropBox [0 0 612 792]
|
|
7282
|
+
<< /ArtBox [0 0 612 792]
|
|
7286
7283
|
/BleedBox [0 0 612 792]
|
|
7287
|
-
/TrimBox [0 0 612 792]
|
|
7288
|
-
/ArtBox [0 0 612 792]
|
|
7289
7284
|
/Contents 10 0 R
|
|
7290
|
-
/
|
|
7291
|
-
/
|
|
7292
|
-
/
|
|
7285
|
+
/CropBox [0 0 612 792]
|
|
7286
|
+
/MediaBox [0 0 612 792]
|
|
7287
|
+
/Parent 3 0 R
|
|
7288
|
+
/Resources << /Font << /F1.0 9 0 R
|
|
7289
|
+
/F2.0 6 0 R
|
|
7293
7290
|
>>
|
|
7291
|
+
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
|
7294
7292
|
>>
|
|
7293
|
+
/TrimBox [0 0 612 792]
|
|
7294
|
+
/Type /Page
|
|
7295
7295
|
>>
|
|
7296
7296
|
endobj
|
|
7297
7297
|
12 0 obj
|
|
@@ -11641,19 +11641,19 @@ Q
|
|
|
11641
11641
|
endstream
|
|
11642
11642
|
endobj
|
|
11643
11643
|
13 0 obj
|
|
11644
|
-
<< /
|
|
11645
|
-
/Parent 3 0 R
|
|
11646
|
-
/MediaBox [0 0 612 792]
|
|
11647
|
-
/CropBox [0 0 612 792]
|
|
11644
|
+
<< /ArtBox [0 0 612 792]
|
|
11648
11645
|
/BleedBox [0 0 612 792]
|
|
11649
|
-
/TrimBox [0 0 612 792]
|
|
11650
|
-
/ArtBox [0 0 612 792]
|
|
11651
11646
|
/Contents 12 0 R
|
|
11652
|
-
/
|
|
11653
|
-
/
|
|
11654
|
-
/
|
|
11647
|
+
/CropBox [0 0 612 792]
|
|
11648
|
+
/MediaBox [0 0 612 792]
|
|
11649
|
+
/Parent 3 0 R
|
|
11650
|
+
/Resources << /Font << /F1.0 9 0 R
|
|
11651
|
+
/F2.0 6 0 R
|
|
11655
11652
|
>>
|
|
11653
|
+
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
|
11656
11654
|
>>
|
|
11655
|
+
/TrimBox [0 0 612 792]
|
|
11656
|
+
/Type /Page
|
|
11657
11657
|
>>
|
|
11658
11658
|
endobj
|
|
11659
11659
|
14 0 obj
|
|
@@ -14022,126 +14022,188 @@ Q
|
|
|
14022
14022
|
endstream
|
|
14023
14023
|
endobj
|
|
14024
14024
|
15 0 obj
|
|
14025
|
-
<< /
|
|
14026
|
-
/Parent 3 0 R
|
|
14027
|
-
/MediaBox [0 0 612 792]
|
|
14028
|
-
/CropBox [0 0 612 792]
|
|
14025
|
+
<< /ArtBox [0 0 612 792]
|
|
14029
14026
|
/BleedBox [0 0 612 792]
|
|
14030
|
-
/TrimBox [0 0 612 792]
|
|
14031
|
-
/ArtBox [0 0 612 792]
|
|
14032
14027
|
/Contents 14 0 R
|
|
14033
|
-
/
|
|
14034
|
-
/
|
|
14035
|
-
/
|
|
14028
|
+
/CropBox [0 0 612 792]
|
|
14029
|
+
/MediaBox [0 0 612 792]
|
|
14030
|
+
/Parent 3 0 R
|
|
14031
|
+
/Resources << /Font << /F1.0 9 0 R
|
|
14032
|
+
/F2.0 6 0 R
|
|
14036
14033
|
>>
|
|
14034
|
+
/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]
|
|
14037
14035
|
>>
|
|
14036
|
+
/TrimBox [0 0 612 792]
|
|
14037
|
+
/Type /Page
|
|
14038
14038
|
>>
|
|
14039
14039
|
endobj
|
|
14040
14040
|
16 0 obj
|
|
14041
|
-
<< /
|
|
14042
|
-
/
|
|
14043
|
-
/Filter [/FlateDecode]
|
|
14041
|
+
<< /Length 5888
|
|
14042
|
+
/Length1 5888
|
|
14044
14043
|
>>
|
|
14045
14044
|
stream
|
|
14046
|
-
|
|
14047
|
-
QkU;D��y�/�$��$EU$IyL2�4}�$`7�
|
|
14048
|
-
?]��i�)9j�Ќ(g��(,?^�J��*@)���p�\Ҫ�#K�vҪT�VyI���I��
|
|
14049
|
-
��5M�M���"�4�Hǩ\$���)H6�l��DR'����:�R����^'��'�r��|�RC��21*u$���U�Vꅮ�q�����I%nTE
|
|
14050
|
-
F�<��-�tD���v�T�V[�O)P>��Ƴ��4������aN=��Ӿ�N�[4�Ҧt�+I�����%K1��,q��q�>��Q�:Y��uߧ��ʾ����..ʑ��*�"]A=t-u��l3��f;
|
|
14051
|
-
X(H� �XN�F��Q���N�괁
|
|
14052
|
-
h��g��vv�y��f*1�]M��|�F�ay ����:~�>e�҄���
|
|
14053
|
-
�G��vǶ5/?=�}�
|
|
14045
|
+
�!���V �1:��o�/V^@��ק���q\��j��I�;#����<Xd��|��MPǿ���Տ):�iw8�����YR6�s����s7�F6w��?���w�����K�RME��6�m%g˴ٯ�d���q��'������C����c�8믎q��NܴS|a�*����/tKT�����F�U._\X��PV�Ǭ�տ�@R�[������{^g_��j�n
|
|
14054
|
-
|
|
14055
|
-
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14046
|
+
�0OS/2|M��8`cmap߹/Hgasp�glyf�j�v�head��Yi�6hhea9��$hmtxЭ���loca1\�maxp2B name6x[���post�if� \�3��_<���4��(���h�B �����hB,,A���3�3�fGOOG y����X ^� ��H?�J�y�NHu�`�w��{�B��h����^w�^wH�h^�)�3�V�\\�\B�q�q���B��\����\y/B����
|
|
14047
|
+
�
|
|
14048
|
+
|
|
14049
|
+
]
|
|
14050
|
+
�Q��8v��
|
|
14051
|
+
�!!7!!�I��hy����Jh�?����%#7!�4|�A$����
|
|
14052
|
+
�J��H�!"!2326&#"H���������5]nl`akm^�����|s�o��������
|
|
14053
|
+
|
|
14054
|
+
!!77'3N��M����N��M��wNP�!!5>54&#"'>32!P�o�d,aQU�W�l��h��tG���}�s��n;XVNH�\L)d�te����u���s74632#"&4632#"&uZVS[\RT\ZVS[]QT\�TVXRO[Y�TVXRQYX��
|
|
14055
|
+
����sNZTI����be�w����"!27# 4$32&&%��o�۴������7���dR������M��K�j�W�g�':�u�!!! !#3 u�e�|�b�f����`���������������H��!!!!!!!��J�����������B��!!57'5!��g������R�R��R�NR�h�R��
|
|
14056
|
+
qlmh�������w����!# ! 3 !"緱`�s������iQQe�պ�s���������Q�wH�mm��|��������H�32654&##!! !�d����^���*�������-bihX�y����݁�9��1^���'#"'32654&&'.54$32&&#"���괔�Ufm0]���P�r�qdu�JX^&S�͘���X B6NM+C>D?t�g��61�0&RB)=9Jb�)y�!!!!!����sP�s������^�# 5!3265^�������5������N��!��������}3�!!!67�9����91@��J���M�(\�V��;u"!'##"&5467754#"'6323265f;M������®��e������v���j�aK���� 1�Q�e���XZ�ze����2#"'##!36"32654&�����p3�1kpqhkt^ops�������Џ{��E���!������\���s !2&&#"3267f�� ZH|>��X�KJ�=-L�%����/2��/$\��q"323&5!#'#'26754&#"�����o
|
|
14057
|
+
2�;
|
|
14058
|
+
����^�^s\���s%#"&'53254&&'.54632&&#"���z�KU�Q�,lZ�y7��ʿ\T�L�W��z:L��! �(6`$-9&6\wW��X�$.I)<;5\x/��7L%27#"&5#5773!!wPpr�����X�9��I�#�3���f�����A>����^!'##"&5!3265!�)1�s��1V^�r1�NU����syy�����^!!367!��V?�!
|
|
14059
|
+
'�?�V^��h}qt}���^!#!!3677!3667!7Vr �����0�'�P�#(�+������^�X��L�U��7�:Y�3���
|
|
14060
|
+
�^!!!!���Z��Z��}������;#��d��������^!367!#"'532677N�
|
|
14061
|
+
�G�'A�OL7AQy"^��Rpg[u����
|
|
14062
|
+
`� >� <<
|
|
14059
14063
|
endstream
|
|
14060
14064
|
endobj
|
|
14061
14065
|
17 0 obj
|
|
14062
|
-
<< /
|
|
14063
|
-
/
|
|
14064
|
-
/
|
|
14065
|
-
/FontBBox [-619 -292 1441 1068]
|
|
14066
|
+
<< /Ascent 1068
|
|
14067
|
+
/CapHeight 1462
|
|
14068
|
+
/Descent -292
|
|
14066
14069
|
/Flags 4
|
|
14067
|
-
/
|
|
14070
|
+
/FontBBox [-619 -292 1441 1068]
|
|
14071
|
+
/FontFile2 16 0 R
|
|
14072
|
+
/FontName /c43434+NotoSans-Bold
|
|
14068
14073
|
/ItalicAngle 0
|
|
14069
|
-
/
|
|
14070
|
-
/
|
|
14071
|
-
/CapHeight 1462
|
|
14074
|
+
/StemV 0
|
|
14075
|
+
/Type /FontDescriptor
|
|
14072
14076
|
/XHeight 1118
|
|
14073
14077
|
>>
|
|
14074
14078
|
endobj
|
|
14075
14079
|
18 0 obj
|
|
14076
|
-
<< /Length
|
|
14077
|
-
/Filter [/FlateDecode]
|
|
14080
|
+
<< /Length 530
|
|
14078
14081
|
>>
|
|
14079
14082
|
stream
|
|
14080
|
-
|
|
14081
|
-
|
|
14083
|
+
/CIDInit /ProcSet findresource begin
|
|
14084
|
+
12 dict begin
|
|
14085
|
+
begincmap
|
|
14086
|
+
/CIDSystemInfo 3 dict dup begin
|
|
14087
|
+
/Registry (Adobe) def
|
|
14088
|
+
/Ordering (UCS) def
|
|
14089
|
+
/Supplement 0 def
|
|
14090
|
+
end def
|
|
14091
|
+
/CMapName /Adobe-Identity-UCS def
|
|
14092
|
+
/CMapType 2 def
|
|
14093
|
+
1 begincodespacerange
|
|
14094
|
+
<00><79>
|
|
14095
|
+
endcodespacerange
|
|
14096
|
+
8 beginbfrange
|
|
14097
|
+
<30><32><0030>
|
|
14098
|
+
<41><45><0041>
|
|
14099
|
+
<49><4A><0049>
|
|
14100
|
+
<4D><56><004d>
|
|
14101
|
+
<61><65><0061>
|
|
14102
|
+
<68><69><0068>
|
|
14103
|
+
<6C><70><006c>
|
|
14104
|
+
<72><79><0072>
|
|
14105
|
+
endbfrange
|
|
14106
|
+
3 beginbfchar
|
|
14107
|
+
<20><0020>
|
|
14108
|
+
<2C><002c>
|
|
14109
|
+
<3A><003a>
|
|
14110
|
+
endbfchar
|
|
14111
|
+
endcmap
|
|
14112
|
+
CMapName currentdict /CMap defineresource pop
|
|
14113
|
+
end
|
|
14114
|
+
end
|
|
14082
14115
|
endstream
|
|
14083
14116
|
endobj
|
|
14084
14117
|
19 0 obj
|
|
14085
|
-
[259
|
|
14118
|
+
[259 0 0 0 0 0 0 0 0 0 0 0 285 0 0 0 571 571 571 0 0 0 0 0 0 0 285 0 0 0 0 0 0 689 671 637 740 560 0 0 0 389 331 0 0 942 812 795 627 795 660 550 579 755 649 0 0 0 0 0 0 0 0 0 0 604 632 514 632 590 0 0 657 305 0 0 305 981 657 619 632 0 454 497 434 657 568 855 578 568]
|
|
14086
14119
|
endobj
|
|
14087
14120
|
20 0 obj
|
|
14088
|
-
<< /
|
|
14089
|
-
/
|
|
14090
|
-
/Filter [/FlateDecode]
|
|
14121
|
+
<< /Length 6252
|
|
14122
|
+
/Length1 6252
|
|
14091
14123
|
>>
|
|
14092
14124
|
stream
|
|
14093
|
-
|
|
14094
|
-
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
�
|
|
14101
|
-
|
|
14102
|
-
|
|
14103
|
-
�
|
|
14104
|
-
|
|
14105
|
-
�
|
|
14106
|
-
|
|
14107
|
-
|
|
14108
|
-
�
|
|
14109
|
-
|
|
14110
|
-
���?&"lDIг�1j�r� 'T,�4��m֜��|��m%
|
|
14111
|
-
G�
|
|
14112
|
-
|
|
14113
|
-
�������Zr�Sr��%���P!�G�Q&�B�0
|
|
14114
|
-
�6�5��v����0����6�0� |sOd�p���.��G-��V�@��{�~6�4��S@�t.1ͅ�\��/���������-z)�7��K�gq>����1-|�����Ӟ�n���s�X`�p��
|
|
14115
|
-
@��?�zf�?�k��kdι����ٿ�����
|
|
14116
|
-
@�n
|
|
14117
|
-
�;i2iܟ̚,�6Ѝ�w,������8��?��!���fi�m�1�����x���B<�}<��h,��c*��x�z2�Yd@<c����0��L���p�#��ms<�b�txO����N�l����"@&�G�����ȆQ��V�� W-`���O�|O*b��f+�<�sx~���bz�q
|
|
14125
|
+
�0OS/2{!��8`cmap�35Tgasp`glyf8��(,head��Yg�6hheaES�$hmtx�l���locaH�h�maxp5B name�0�_T�post�if@ \�_<���4��(���`�V ���{�`V//Ai��3�3�fGOOG@ z����X J� ��'��%T�R%���d���b�\�+���d�f1w}'���/�`B��?}��dhsq�}^�q�q���F��{����q��N��h�!J�P
|
|
14126
|
+
|
|
14127
|
+
G
|
|
14128
|
+
|
|
14129
|
+
�
|
|
14130
|
+
�B��H��
|
|
14131
|
+
�!!7!!�I��hy����Jh������#34632#"&Nu3��A>>AC<=B���BGI@@LJ�� &-#5&&'5&&546753&'4&'6˼�r�DK�cͪʭ���8����J�^s���Vj^b�����#�#3�A������G�=�Z6`{dHU(�� �IZ&uZT����%#67{7y�A%������R�Bu5!R�ՠ������74632#"&�A<=DD=;BoBGGBAKJ��#���!��J�d��/�#"3232#"/���������ꑞ�����������r~r��������!74"�����!#47'3װ fy^����tUcy3b)�!!5>54&#"'632!)�9�p7�xZ�e`����F���������Qt�<Oy�Ѵ`�����\���'!"&'53 !#532654&#"'6632�����t�[]�cr�g���}a�kZZ���`������"-�.2!���iv5F{GQ�+j�
|
|
14132
|
+
##!533!47#jԯ�D����} 7�JL��L���0̉�h������2!"'53265!"'!!63�������J�c����v�Z7���#s������O�,4��(9���Xd��-�"/2#"$54%&&54632654&'"6654&H��������/�x�n��������2v�6fp�s�˺�n�KV�z��̽��N�q����t��w`�C>�]pc?`L/9�Ydof��)�%!"'532667##"&5432"326654&&)�`tDMg��o
|
|
14133
|
+
'�d��kȀE�CYn�������>/�������l���Q�����IN��ی�cOS_˲��u�,�ҭ����������X�T�d�߶�����5��
|
|
14134
|
+
�����i�gI��NA}w4 �,2���}��cjrV\q���^"32&#"327f����P�37�b������r#+!�4����@�;q��^"32!3267"!&&����������X�j[����/�+9���m��-�' ߦ����L!4&#"#336632�w����
|
|
14135
|
+
1�q����������8Z@PZ���5�s�!#34632#"&b���=-*??*-=J)<66<;88�3773##3`=F_��D����}��5NTs�+��m�m�Ӳ�b!#3b����^"!#"#4&#"#33663 36632#ߙ��mt����
|
|
14136
|
+
/�jN
|
|
14137
|
+
5�t������������J�PZ�X`���5�L^!4&#"#336632�w����
|
|
14138
|
+
3�o���������J�QY���5q��h^#"&53232654&# h����|���ã�������'���ҋ�+������������{^!"'##336632"32654&��w��@�n������������)N=�=6�ZP��������۸�#�������/^2&#"#3366�I8=:W�T��?�^�`�g��J�mph��y^##"'532654&'.54632&#"y��ـ���|w��~;����=��ptd���>/��E�XXJAZ:<UjL��J�FG><OF3Xn!���F%267# #5773!!#^i6����Hk=��[ �SVH�����_f3J!&'##3376733673/�2* ���Ӻhm
|
|
14139
|
+
�Ľ
|
|
14140
|
+
@����jM��b��J�k�ZW>�Zk��#OMIL�J���J336673#"'532677��K @���'E��KJ2FVx&9J���_%�=o����_c�PsJ !!5!5!!s��N�����TwG����� ^ m 8� � � D� *9 (c
|
|
14141
|
+
`� >� <)
|
|
14118
14142
|
endstream
|
|
14119
14143
|
endobj
|
|
14120
14144
|
21 0 obj
|
|
14121
|
-
<< /
|
|
14122
|
-
/
|
|
14123
|
-
/
|
|
14124
|
-
/FontBBox [-556 -272 1321 1047]
|
|
14145
|
+
<< /Ascent 1068
|
|
14146
|
+
/CapHeight 1462
|
|
14147
|
+
/Descent -292
|
|
14125
14148
|
/Flags 4
|
|
14126
|
-
/
|
|
14149
|
+
/FontBBox [-556 -272 1321 1047]
|
|
14150
|
+
/FontFile2 20 0 R
|
|
14151
|
+
/FontName /dcc6e3+NotoSans
|
|
14127
14152
|
/ItalicAngle 0
|
|
14128
|
-
/
|
|
14129
|
-
/
|
|
14130
|
-
/CapHeight 1462
|
|
14153
|
+
/StemV 0
|
|
14154
|
+
/Type /FontDescriptor
|
|
14131
14155
|
/XHeight 1098
|
|
14132
14156
|
>>
|
|
14133
14157
|
endobj
|
|
14134
14158
|
22 0 obj
|
|
14135
|
-
<< /Length
|
|
14136
|
-
/Filter [/FlateDecode]
|
|
14159
|
+
<< /Length 650
|
|
14137
14160
|
>>
|
|
14138
14161
|
stream
|
|
14139
|
-
|
|
14140
|
-
|
|
14162
|
+
/CIDInit /ProcSet findresource begin
|
|
14163
|
+
12 dict begin
|
|
14164
|
+
begincmap
|
|
14165
|
+
/CIDSystemInfo 3 dict dup begin
|
|
14166
|
+
/Registry (Adobe) def
|
|
14167
|
+
/Ordering (UCS) def
|
|
14168
|
+
/Supplement 0 def
|
|
14169
|
+
end def
|
|
14170
|
+
/CMapName /Adobe-Identity-UCS def
|
|
14171
|
+
/CMapType 2 def
|
|
14172
|
+
1 begincodespacerange
|
|
14173
|
+
<00><7A>
|
|
14174
|
+
endcodespacerange
|
|
14175
|
+
10 beginbfrange
|
|
14176
|
+
<20><21><0020>
|
|
14177
|
+
<2C><35><002c>
|
|
14178
|
+
<38><39><0038>
|
|
14179
|
+
<40><41><0040>
|
|
14180
|
+
<4D><50><004d>
|
|
14181
|
+
<53><54><0053>
|
|
14182
|
+
<68><69><0068>
|
|
14183
|
+
<6B><70><006b>
|
|
14184
|
+
<72><74><0072>
|
|
14185
|
+
<79><7A><0079>
|
|
14186
|
+
endbfrange
|
|
14187
|
+
11 beginbfchar
|
|
14188
|
+
<24><0024>
|
|
14189
|
+
<43><0043>
|
|
14190
|
+
<46><0046>
|
|
14191
|
+
<48><0048>
|
|
14192
|
+
<4A><004a>
|
|
14193
|
+
<57><0057>
|
|
14194
|
+
<59><0059>
|
|
14195
|
+
<61><0061>
|
|
14196
|
+
<63><0063>
|
|
14197
|
+
<65><0065>
|
|
14198
|
+
<77><0077>
|
|
14199
|
+
endbfchar
|
|
14200
|
+
endcmap
|
|
14201
|
+
CMapName currentdict /CMap defineresource pop
|
|
14202
|
+
end
|
|
14203
|
+
end
|
|
14141
14204
|
endstream
|
|
14142
14205
|
endobj
|
|
14143
14206
|
23 0 obj
|
|
14144
|
-
[259 269
|
|
14207
|
+
[259 269 0 0 571 0 0 0 0 0 0 0 268 321 268 372 571 571 571 571 571 571 0 0 571 571 0 0 0 0 0 0 898 639 0 631 0 0 519 0 741 0 272 0 0 907 759 780 604 0 0 548 556 0 0 930 0 565 0 0 0 0 0 0 0 561 0 479 0 563 0 0 618 257 0 534 257 935 618 604 615 0 413 479 360 0 0 786 0 509 470]
|
|
14145
14208
|
endobj
|
|
14146
14209
|
xref
|
|
14147
14210
|
0 24
|
|
@@ -14162,18 +14224,18 @@ xref
|
|
|
14162
14224
|
0000146232 00000 n
|
|
14163
14225
|
0000172116 00000 n
|
|
14164
14226
|
0000172396 00000 n
|
|
14165
|
-
|
|
14166
|
-
|
|
14167
|
-
|
|
14168
|
-
|
|
14169
|
-
|
|
14170
|
-
|
|
14171
|
-
|
|
14227
|
+
0000178351 00000 n
|
|
14228
|
+
0000178567 00000 n
|
|
14229
|
+
0000179149 00000 n
|
|
14230
|
+
0000179433 00000 n
|
|
14231
|
+
0000185752 00000 n
|
|
14232
|
+
0000185963 00000 n
|
|
14233
|
+
0000186665 00000 n
|
|
14172
14234
|
trailer
|
|
14173
|
-
<< /
|
|
14235
|
+
<< /Info 1 0 R
|
|
14174
14236
|
/Root 2 0 R
|
|
14175
|
-
/
|
|
14237
|
+
/Size 24
|
|
14176
14238
|
>>
|
|
14177
14239
|
startxref
|
|
14178
|
-
|
|
14240
|
+
186957
|
|
14179
14241
|
%%EOF
|
data/spec/assets/testing_es.pdf
CHANGED
|
Binary file
|
|
Binary file
|
data/spec/invoice_spec.rb
CHANGED
|
@@ -41,14 +41,14 @@ module Payday # rubocop:todo Metrics/ModuleLength
|
|
|
41
41
|
# $1000 in Hats
|
|
42
42
|
i.line_items << LineItem.new(price: 5, quantity: 200, description: 'Hats')
|
|
43
43
|
|
|
44
|
-
expect(i.subtotal).to eq(BigDecimal(
|
|
44
|
+
expect(i.subtotal).to eq(BigDecimal(1130))
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
it 'calculates the correct tax rounded to two decimal places' do
|
|
48
48
|
i = described_class.new(tax_rate: 10.0)
|
|
49
49
|
i.line_items << LineItem.new(price: 20, quantity: 5, description: 'Pants')
|
|
50
50
|
|
|
51
|
-
expect(i.tax).to eq(BigDecimal(
|
|
51
|
+
expect(i.tax).to eq(BigDecimal(10))
|
|
52
52
|
end
|
|
53
53
|
|
|
54
54
|
it 'does not apply taxes to invoices with subtotal <= 0' do
|
|
@@ -72,7 +72,7 @@ module Payday # rubocop:todo Metrics/ModuleLength
|
|
|
72
72
|
# $1000 in Hats
|
|
73
73
|
i.line_items << LineItem.new(price: 5, quantity: 200, description: 'Hats')
|
|
74
74
|
|
|
75
|
-
expect(i.total).to eq(BigDecimal(
|
|
75
|
+
expect(i.total).to eq(BigDecimal(1243))
|
|
76
76
|
end
|
|
77
77
|
|
|
78
78
|
it "is overdue when it's past date and unpaid" do
|
data/spec/line_item_spec.rb
CHANGED
|
@@ -6,13 +6,13 @@ module Payday
|
|
|
6
6
|
|
|
7
7
|
describe LineItem do
|
|
8
8
|
it 'is able to be initialized with a price' do
|
|
9
|
-
li = described_class.new(price: BigDecimal(
|
|
10
|
-
expect(li.price).to eq(BigDecimal(
|
|
9
|
+
li = described_class.new(price: BigDecimal(20))
|
|
10
|
+
expect(li.price).to eq(BigDecimal(20))
|
|
11
11
|
end
|
|
12
12
|
|
|
13
13
|
it 'is able to be initialized with a quantity' do
|
|
14
14
|
li = described_class.new(quantity: 30)
|
|
15
|
-
expect(li.quantity).to eq(BigDecimal(
|
|
15
|
+
expect(li.quantity).to eq(BigDecimal(30))
|
|
16
16
|
end
|
|
17
17
|
|
|
18
18
|
it 'is able to be initialized with a description' do
|
|
@@ -22,12 +22,12 @@ module Payday
|
|
|
22
22
|
|
|
23
23
|
it 'returns the correct amount' do
|
|
24
24
|
li = described_class.new(price: 10, quantity: 12)
|
|
25
|
-
expect(li.amount).to eq(BigDecimal(
|
|
25
|
+
expect(li.amount).to eq(BigDecimal(120))
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
it 'returns the correct amount when using a predefined amount' do
|
|
29
29
|
li = described_class.new(predefined_amount: 244)
|
|
30
|
-
expect(li.amount).to eq(BigDecimal(
|
|
30
|
+
expect(li.amount).to eq(BigDecimal(244))
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: webtranslateit-payday
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.6.
|
|
4
|
+
version: 1.6.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alan Johnson
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2024-09-23 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
224
224
|
- !ruby/object:Gem::Version
|
|
225
225
|
version: '0'
|
|
226
226
|
requirements: []
|
|
227
|
-
rubygems_version: 3.
|
|
227
|
+
rubygems_version: 3.5.19
|
|
228
228
|
signing_key:
|
|
229
229
|
specification_version: 4
|
|
230
230
|
summary: A simple library for rendering invoices.
|