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

Supporting more attributes #8

Closed
krystianmagdziarz opened this issue May 26, 2021 · 2 comments
Closed

Supporting more attributes #8

krystianmagdziarz opened this issue May 26, 2021 · 2 comments

Comments

@krystianmagdziarz
Copy link

krystianmagdziarz commented May 26, 2021

Are you considering supporting elements such as:

    invoice_dict = make_invoice(invoice)
    invoice_dict.update({
        "PodpisWystawcy": "Krystian MAGDZIARZ",
        "WidocznyNumerBdo": True,
        "NazwaSzablonu": None,
        "SposobZaplaty": payment,
        "Kontrahent": {
            "Nazwa": order_data['customer']['company'],
            "Identyfikator": None,
            "PrefiksUE": None,
            "NIP": order_data['customer']['vat_number'],
            "Ulica": order_data['customer']['address1'],
            "KodPocztowy": order_data['customer']['postcode'],
            "Kraj": "Polska",
            "Miejscowosc": order_data['customer']['city'],
            "Email": order_data['customer']['email'],
            "Telefon": order_data['customer']['phone'],
            "OsobaFizyczna": True if order_data['customer']['vat_number'] else False
        },
        "ProceduryJpk": {
            "SW": True
        }
    })

    create_invoice_response = custom_send_invoice(invoice_dict)

?

@pnowosie
Copy link
Owner

pnowosie commented Aug 24, 2021

Hi Krystian,

👉 TL;DR: I don't 👈

Thanks for the message and really insightful snippet!
I guess you might already know the answer from the time passed between your post and my reply.

I don't believe I could be able to catch up with a frequent changes of the accounting law.
Sorry if I disappointed you ;)

Main goal behind this code is to support the very narrow needs of mine.
To be honest I haven't considered to accept PRs because of this.
I've sort of learnt to code in python during this journey as well.

@pnowosie
Copy link
Owner

pnowosie commented Aug 24, 2021

I added language hint in the original markdown's snippet

```python

@pnowosie pnowosie pinned this issue Mar 21, 2022
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

2 participants