-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fuel account balance complement to MX regime #210
Conversation
cavalle
commented
Sep 29, 2023
- Adds fuel account balance complement to MX regime used to generate the CFDI "EstadoDeCuentaCombustible" complement.
- Supersedes and applies the feedback discussed in Add basic structs for MX fuel complement #192.
- The GOBL complements maps one by one to every node and field of the CFDI complement.
- Implements validations according to the constrains of the the EstadoDeCuentaCombustible spec.
- Normalises all the amounts to the precisions (2, 3 or 6 decimals) specified in the EstadoDeCuentaCombustible spec.
- Calculates the grand subtotal and grand subtotal
- There are no line-level calculations as those must be calculated earlier when each fuel purchase was made by the purchase supplier.
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.
Sorry Luismi, I'd forgotten to click send on these comments 🤦
regimes/mx/fuel_account_balance.go
Outdated
FuelAccountTaxCodeIEPS = cbc.Code("IEPS") | ||
) | ||
|
||
var validTaxCodes = []interface{}{ |
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.
This might need a prefix to avoid collisions:
var validTaxCodes = []interface{}{ | |
var fuelValidTaxCodes = []interface{}{ |
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.
Good catch!
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.
I'll rename to FuelAccountTaxCodeVAT
for consistency with the other constants and structs
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.
Addressed in ab524c9
Merging after addressing the latest feedback (additional comments always welcome!) |