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 in README.md #4

Closed
krystianmagdziarz opened this issue Mar 25, 2021 · 1 comment
Closed

Error in README.md #4

krystianmagdziarz opened this issue Mar 25, 2021 · 1 comment

Comments

@krystianmagdziarz
Copy link

In README.md is a typo.

Correct version:

from ifirma.invoice import (Invoice, Customer, InvoicePosition, INVOICE_TYPE)
from ifirma.request import send_invoice

invoice = Invoice(
    invoice_type=INVOICE_TYPE.NON_VAT_PAYER,
    issue_date=datetime(...)
).with_issuer(
    'Imię Nazwisko'
).with_payed(
    float(price)
).with_comments(
    f"Nr zamówienia: {numer}"
).with_position(
    InvoicePosition(product_name, float(price))
).with_new_customer(
    Customer(full_name, email, zip, city, street1, street2)
)

You can also mention that after invoice creation, user should send it

create_invoice_response = send_invoice(invoice)
@pnowosie
Copy link
Owner

pnowosie commented May 4, 2021

Thank you! Updated.

@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