forked from fastruby/afip_bill
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] #1
Open
ceneon
wants to merge
36
commits into
master
Choose a base branch
from
develop
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[WIP] #1
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
801d2dd
New documents: credit and debit notes
nan-apps dbcccce
New bill attribute: custom text
nan-apps 0d2ca8c
path fix
nan-apps d539408
ajustando algunos margenes
nan-apps 6d52034
Ajuste en nombre de fantasia en encabezado
nan-apps 28faad5
Fixed margins and zoom level WOMM
ceneon a4af56c
Merge branch 'develop' of github.com:wecodeio/afip_bill into develop
ceneon af71fc7
Main margin improvements
ceneon f7d81b2
Compress items' lines to fit more of them
ceneon 9a0d972
Improve alignment for unit prices
ceneon c83bdec
Merge remote-tracking branch 'origin/develop' into develop
nan-apps 2c8e20e
some width and alignment fixes
nan-apps 02a8a84
different iva's in lines and totals
nan-apps 27df05d
Alignment fix in B notes
nan-apps fbff3a8
Some small fixes
nan-apps e4845ab
configuration fix
nan-apps 1301416
condition sale configurable and with default value "Otra" for backwar…
nan-apps 8c3a697
missing space
nan-apps 02d6ce7
fix in logo size
nan-apps dcde884
preparing for c invoicing
nan-apps 5af2f91
more description space in A invoices lines
nan-apps 67969c7
more descripcion space in all documents and some other adjustments
nan-apps 2e76403
css fix in client address
nan-apps 1ae14b3
adding code parameter to line item
nan-apps e6bf0dd
small codefix
nan-apps 4c9ad82
gaining more space for companies bank information
nan-apps 3923eeb
lines number formating
nan-apps 2979175
adjusting totals in notes A with new template image
nan-apps 84e38ff
ganing code space from amount and using smaller font when code too long
nan-apps 8eab777
quantity position fix in b template
nan-apps 1b6ab03
fixed width for line descriptions
nan-apps c0b12f8
related invoice data for notes
nan-apps 86c8ff3
Reorganized footer to display AFIP QR code
866350e
removed trash css
c9ffb24
Addes header_obs to invoices (remit number etc)
ceneon 728d715
Added invoice discounts mode
ceneon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,14 @@ class Generator | |
FOOTER_PATH = File.dirname(__FILE__) + '/views/shared/_factura_footer.html.erb'.freeze | ||
BRAVO_CBTE_TIPO = { | ||
'01' => { directory: 'bills', template: 'factura_a', doc_name: 'factura', doc_type: 'a' }, | ||
'06' => { directory: 'bills', template: 'factura_b', doc_name: 'factura', doc_type: 'b' }, | ||
'03' => { directory: 'notes', template: 'nota_a', doc_name: 'Nota de crédito', doc_type: 'a' }, | ||
'08' => { directory: 'notes', template: 'nota_b', doc_name: 'Nota de crédito', doc_type: 'b' }, | ||
'02' => { directory: 'notes', template: 'nota_a', doc_name: 'Nota de débito', doc_type: 'a' }, | ||
'03' => { directory: 'notes', template: 'nota_a', doc_name: 'Nota de crédito', doc_type: 'a' }, | ||
'06' => { directory: 'bills', template: 'factura_b', doc_name: 'factura', doc_type: 'b' }, | ||
'07' => { directory: 'notes', template: 'nota_b', doc_name: 'Nota de débito', doc_type: 'b' }, | ||
'08' => { directory: 'notes', template: 'nota_b', doc_name: 'Nota de crédito', doc_type: 'b' }, | ||
'11' => { directory: 'bills', template: 'factura_b', doc_name: 'factura', doc_type: 'c' }, | ||
'12' => { directory: 'notes', template: 'nota_b', doc_name: 'Nota de débito', doc_type: 'c' }, | ||
'13' => { directory: 'notes', template: 'nota_b', doc_name: 'Nota de crédito', doc_type: 'c' } | ||
}.freeze | ||
IVA = 21.freeze | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nan-apps empresa 1 vende algunos items con IVA 10.5% 😱 |
||
DEFAULTS = { | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dudo si hará falta tarde o temprano su propio template 🤔