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

Missing codes on new invoice #93

Closed
pagliaso opened this issue Feb 6, 2025 · 4 comments
Closed

Missing codes on new invoice #93

pagliaso opened this issue Feb 6, 2025 · 4 comments

Comments

@pagliaso
Copy link

pagliaso commented Feb 6, 2025

Hello,

I am testing your nice piece of code, and I could install it, and import all Common Codes, but when I create a new invoice, I get a notice of some missing fields that I am not very sure how I should create:

[BR-CO-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.
[BR-08]-An Invoice shall contain the Seller postal address (BG-5).
[BR-09]-The Seller postal address (BG-5) shall contain a Seller country code (BT-40).
Element 'ram:PostalTradeAddress' must occur exactly 1 times.

Many thanks and kind regards,

Alb

@0xD0M1M0
Copy link

0xD0M1M0 commented Feb 6, 2025

Try to fill out all your "Company" data in the company doctype and add a main address there. The data is then used while creating the invoice. You should see some input in the fields in the tab "Contact & Address" in your invoice.

@pagliaso
Copy link
Author

pagliaso commented Feb 6, 2025

Hello, thanks for your prompt reply!

Filling the address solved most of it, but I still have the company identification pending although I have the TAX ID field and the registry details filled in

[BR-CO-26]-In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.

@barredterra
Copy link
Member

barredterra commented Feb 13, 2025

The error basically says that the seller's VAT ID is missing. That is your company's VAT ID.

You can enter it in Company -> Tax ID. Afterwards, when you create a new Sales Invoice, it should automatically populate the field Company Tax ID. When the invoice's Company Tax ID field contains a valid VAT ID, the error should disappear.

@pagliaso
Copy link
Author

pagliaso commented Feb 13, 2025

Many thanks!

I had the VAT ID filled. The issue was with "valid VAT ID": the proper format is XXX00000000

So in Spain, for Repsol, for example, the proper vat id would be: ESA78374725, without spaces nor hypens nor anything.

Many thanks and kind regards from Spain,

Alb

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

No branches or pull requests

3 participants