Skip to content
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

Addenda Mabe generation #18

Closed
wants to merge 4 commits into from
Closed

Addenda Mabe generation #18

wants to merge 4 commits into from

Conversation

cavalle
Copy link
Contributor

@cavalle cavalle commented Nov 21, 2023

  • Adds the ability to generate Addenda Mabe as part of a CFDI
  • Depends on Addenda Mabe in MX regime gobl#219 (make sure to update the go.mod and go.sum when the new GOBL version is released)

// MabeMoneda carries the data about the invoice's currency
type MabeMoneda struct {
TipoMoneda string `xml:"tipoMoneda,attr"`
TipoCambio string `xml:"tipoCambio,attr,omitempty"` // Not implemented yet
Copy link
Contributor Author

@cavalle cavalle Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this one out of scope for the moment, as we need to add support for multiple currencies to the CFDI itself first and I didn't want to keep delaying things any further. Happy to implement it right after if we think it's worth the time of doing it now.

type MabeMoneda struct {
TipoMoneda string `xml:"tipoMoneda,attr"`
TipoCambio string `xml:"tipoCambio,attr,omitempty"` // Not implemented yet
ImporteConLetra string `xml:"importeConLetra,attr,omitempty"` // Not implemented yet
Copy link
Contributor Author

@cavalle cavalle Nov 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left this one out of scope because it's an optional field that I don't think adds any value.

Comment on lines +84 to +85
PrecioConIva string `xml:"precioConIva,attr,omitempty"` // Not implemented yet
ImporteConIva string `xml:"importeConIva,attr,omitempty"` // Not implemented yet
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left these two fields out of scope because they're optional and I don't think they add any value

@cavalle cavalle requested a review from samlown November 21, 2023 11:53
@cavalle cavalle marked this pull request as ready for review November 21, 2023 11:53
@cavalle
Copy link
Contributor Author

cavalle commented Nov 22, 2023

Superseded by #19

@cavalle cavalle closed this Nov 22, 2023
@cavalle cavalle deleted the addenda-mabe branch November 24, 2023 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant