invoicehn 0.1.0 → 0.3.0
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/CHANGELOG.md +143 -1
- data/README.md +307 -6
- data/lib/invoicehn/authorization.rb +4 -4
- data/lib/invoicehn/cli/builder.rb +18 -2
- data/lib/invoicehn/cli/wizard.rb +1 -1
- data/lib/invoicehn/compliance/validator.rb +136 -14
- data/lib/invoicehn/correlative.rb +46 -10
- data/lib/invoicehn/document_reference.rb +83 -0
- data/lib/invoicehn/invoice.rb +74 -16
- data/lib/invoicehn/issuance.rb +173 -22
- data/lib/invoicehn/ledger.rb +9 -1
- data/lib/invoicehn/line_item.rb +4 -0
- data/lib/invoicehn/renderers/json.rb +5 -2
- data/lib/invoicehn/renderers/pdf.rb +28 -6
- data/lib/invoicehn/renderers/text.rb +73 -7
- data/lib/invoicehn/settings.rb +44 -0
- data/lib/invoicehn/storage/json_store.rb +22 -7
- data/lib/invoicehn/tax_summary.rb +44 -2
- data/lib/invoicehn/test_support/contracts.rb +269 -0
- data/lib/invoicehn/test_support/memory.rb +112 -0
- data/lib/invoicehn/testing.rb +140 -0
- data/lib/invoicehn/version.rb +1 -1
- data/lib/invoicehn.rb +28 -0
- metadata +12 -9
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: invoicehn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jorge Padilla
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: bigdecimal
|
|
@@ -81,9 +80,10 @@ dependencies:
|
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '0.23'
|
|
83
82
|
description: |
|
|
84
|
-
Genera Facturas
|
|
85
|
-
Reglamento del Régimen de Facturación (Acuerdo 481-2017
|
|
86
|
-
correlativo de 16 dígitos
|
|
83
|
+
Genera Facturas, Notas de Crédito y Notas de Débito que cumplen los requisitos de contenido
|
|
84
|
+
de los Artículos 10-11 y 25-28 del Reglamento del Régimen de Facturación (Acuerdo 481-2017
|
|
85
|
+
y sus reformas), incluyendo el correlativo de 16 dígitos con los códigos de tipo de
|
|
86
|
+
documento reformados, control del CAI, rango autorizado y fecha límite de emisión,
|
|
87
87
|
discriminación del ISV por tarifa, y el redondeo estatutario del Artículo 9 de la Ley
|
|
88
88
|
del Impuesto Sobre Ventas. Incluye biblioteca Ruby y una interfaz de terminal.
|
|
89
89
|
email:
|
|
@@ -111,6 +111,7 @@ files:
|
|
|
111
111
|
- lib/invoicehn/config.rb
|
|
112
112
|
- lib/invoicehn/correlative.rb
|
|
113
113
|
- lib/invoicehn/customer.rb
|
|
114
|
+
- lib/invoicehn/document_reference.rb
|
|
114
115
|
- lib/invoicehn/errors.rb
|
|
115
116
|
- lib/invoicehn/exchange_rate.rb
|
|
116
117
|
- lib/invoicehn/invoice.rb
|
|
@@ -125,10 +126,14 @@ files:
|
|
|
125
126
|
- lib/invoicehn/renderers/text.rb
|
|
126
127
|
- lib/invoicehn/rtn.rb
|
|
127
128
|
- lib/invoicehn/sequence.rb
|
|
129
|
+
- lib/invoicehn/settings.rb
|
|
128
130
|
- lib/invoicehn/spanish_numerals.rb
|
|
129
131
|
- lib/invoicehn/storage/json_store.rb
|
|
130
132
|
- lib/invoicehn/tax_summary.rb
|
|
131
133
|
- lib/invoicehn/tax_treatment.rb
|
|
134
|
+
- lib/invoicehn/test_support/contracts.rb
|
|
135
|
+
- lib/invoicehn/test_support/memory.rb
|
|
136
|
+
- lib/invoicehn/testing.rb
|
|
132
137
|
- lib/invoicehn/version.rb
|
|
133
138
|
homepage: https://github.com/JorgePadilla/invoicehn
|
|
134
139
|
licenses:
|
|
@@ -139,7 +144,6 @@ metadata:
|
|
|
139
144
|
changelog_uri: https://github.com/JorgePadilla/invoicehn/blob/main/CHANGELOG.md
|
|
140
145
|
bug_tracker_uri: https://github.com/JorgePadilla/invoicehn/issues
|
|
141
146
|
rubygems_mfa_required: 'true'
|
|
142
|
-
post_install_message:
|
|
143
147
|
rdoc_options: []
|
|
144
148
|
require_paths:
|
|
145
149
|
- lib
|
|
@@ -154,8 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
154
158
|
- !ruby/object:Gem::Version
|
|
155
159
|
version: '0'
|
|
156
160
|
requirements: []
|
|
157
|
-
rubygems_version: 3.
|
|
158
|
-
signing_key:
|
|
161
|
+
rubygems_version: 3.6.9
|
|
159
162
|
specification_version: 4
|
|
160
163
|
summary: Facturación para Honduras conforme al Régimen de Facturación (Acuerdo 481-2017)
|
|
161
164
|
test_files: []
|