alyf-de / erpnext_germany Goto Github PK
View Code? Open in Web Editor NEWERPNext customizations for German companies
License: GNU General Public License v3.0
ERPNext customizations for German companies
License: GNU General Public License v3.0
Nice VAT checker!
A feature ERPNext should definitely ship with IMO, after getting polished a little bit. Finally, every company in the EU needs this functionality, plus quite a few abroad who do a lot of business with the EU.
The terminology however confused me quite a bit. The VAT field itself explicitly refers to customers, while all other fields refer to some trader. With the English interface, it also took me a bit to understand that the difference doesn‘t seem to be on purpose:
We neither want to limit the VAT feature to customers nor to traders or suppliers. So how about referring to „Business Partners“ or simply „Counterparty“? There are a few more – and more important – things to do, but it makes sense to start with a proper, consistent terminology. So if you agree and support one or the other choice of terminology, I can readily post a PR.
The doctype "VAT_ID_Check" is fetching the values for "Customer VAT ID" field from "customer.tax_id" and the field value for "Requester VAT ID" is fetching from "company.tax_id"
The "customer.tax.id" is the "Steuernummer" of the customer.
The "company.tax_id" field is representing the "Steuernummer" of the company
"Steuernummer"(Tax ID) is different from "USt-IdNr"(VAT ID).
This is somehow misleading if Tax ID is used for VAT ID. these should be two different fields.
There is no "VAT ID" field by default in ERPNext. We created a custom field for the "USt-IdNr." in the customer doctype
Maybe it is a good idea to add a custom field e.g. "Customer VAT ID" and fetch from there.
Holidays could be fetched via https://feiertage-api.de/
Is it possible to add a check of suppliers?
Do you plan to support ERPNext version 15?
The VAT search does not work on a fresh v13 install:
{
"erpnext": "13.27.0",
"erpnext_germany": "0.0.1",
"erpnextfints": "0.4.1",
"frappe": "13.26.1",
"german_accounting": "0.0.1"
}
Form/Supplier/XXXX
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 69, in application
response = frappe.api.handle()
File "apps/frappe/frappe/api.py", line 55, in handle
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 37, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 75, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1447, in call
return fn(*args, **newargs)
File "apps/erpnext_germany/erpnext_germany/api.py", line 7, in validate_vat_id
from .utils.eu_vat import is_valid_eu_vat_id
File "apps/erpnext_germany/erpnext_germany/utils/eu_vat.py", line 1, in <module>
import zeep
ModuleNotFoundError: No module named 'zeep'
{
"type": "POST",
"args": {
"vat_id": "DE XXXXX"
},
"headers": {},
"error_handlers": {},
"url": "/api/method/erpnext_germany.api.validate_vat_id"
}
{
"exception": "ModuleNotFoundError: No module named 'zeep'"
}
VAT ID Check: Select Party Address field before a Party is selected.
{
"erpnext": "15.11.0",
"erpnext_germany": "15.1.1",
"frappe": "15.12.0"
}
Form/VAT ID Check/new-vat-id-check-kuntuoglke
Traceback (most recent call last):
File "apps/frappe/frappe/app.py", line 110, in application
response = frappe.api.handle(request)
File "apps/frappe/frappe/api/__init__.py", line 49, in handle
data = endpoint(**arguments)
File "apps/frappe/frappe/api/v1.py", line 36, in handle_rpc_call
return frappe.handler.handle()
File "apps/frappe/frappe/handler.py", line 49, in handle
data = execute_cmd(cmd)
File "apps/frappe/frappe/handler.py", line 85, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File "apps/frappe/frappe/__init__.py", line 1684, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/desk/search.py", line 47, in search_link
results = search_widget(
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/desk/search.py", line 95, in search_widget
return frappe.call(
File "apps/frappe/frappe/__init__.py", line 1684, in call
return fn(*args, **newargs)
File "apps/frappe/frappe/utils/typing_validations.py", line 31, in wrapper
return func(*args, **kwargs)
File "apps/frappe/frappe/__init__.py", line 2423, in wrapper
return fn(**kwargs)
File "apps/frappe/frappe/contacts/doctype/address/address.py", line 276, in address_query
link_name = filters.pop("link_name")
KeyError: 'link_name'
{
"type": "POST",
"args": {
"txt": "",
"doctype": "Address",
"ignore_user_permissions": 0,
"reference_doctype": "VAT ID Check",
"page_length": 10,
"query": "frappe.contacts.doctype.address.address.address_query",
"filters": "{\"link_doctype\":\"Customer\"}"
},
"headers": {},
"error_handlers": {},
"url": "/api/method/frappe.desk.search.search_link",
"request_id": null
}
{
"exception": "KeyError: 'link_name'",
"exc_type": "KeyError"
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.