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

Error: "Data wystawienia faktury nie może być późniejsza niż 15 dzień miesiąca następnego względem miesiąca sprzedaży" #3

Closed
krystianmagdziarz opened this issue Mar 24, 2021 · 2 comments

Comments

@krystianmagdziarz
Copy link

krystianmagdziarz commented Mar 24, 2021

When I try to send invoice, I get an error:
<ifirma.request.InvoiceResponse object at 0x7fea077a73d0> Data wystawienia faktury nie może być późniejsza niż 15 dzień miesiąca następnego względem miesiąca sprzedaży

Code:
` from ifirma.invoice import (Invoice, Customer, InvoicePosition, INVOICE_TYPE)
from ifirma.request import send_invoice, send_email

    invoice = Invoice(
        invoice_type=INVOICE_TYPE.NON_VAT_PAYER
    ).with_issuer(
        'Krystian Magdziarz'
    ).with_payed(
        float(38.82)
    ).with_comments(
        f"Nr zamówienia: {1}"
    ).with_position(
        InvoicePosition("Super pozycja", float(38.82))
    ).with_new_customer(
        Customer("Krystian MAGDZIARZ", "[email protected]", "05-850", "Ożarów Mazowiecki", "Poznańska 270", None)
    )

    create_invoice_response = send_invoice(invoice)
    print(create_invoice_response, create_invoice_response.message)`
@krystianmagdziarz
Copy link
Author

Problem solved. The message appears when we do not change the accounting month in the dashboard.

@pnowosie
Copy link
Owner

pnowosie commented May 4, 2021

Taking into account the frequency of tax regulation changes I don't even try to handle errors passing the error messages untouched. Kudos to ifirma's team which keeps align their api with this crazy 💩

@pnowosie pnowosie closed this as completed May 4, 2021
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