Jean28518 / invoice-creator-german

Invoice creator for linux written in flutter, and python. Generator uses chromium and html.
https://www.linuxguides.de/rechnungs-assistent/
GNU General Public License v3.0
18 stars 2 forks source link

Invoicing number management #10

Open actionschnitzel opened 1 year ago

actionschnitzel commented 1 year ago

Please add a textbox to prefix a "Rechnungsnummer" to start with. I had to adjust the code in generator.py so it works for me.

    # Generate invoice number from amount of files in the invoice folder Format: YYYY-MM-<number>
    counted_prefix = 200425 # Prefixed number
    number = len(os.listdir(invoice_dir)) + 1
    invoice_number = str(number + counted_prefix) #datetime.datetime.now().strftime("%Y-%m-") + 

In _main.tex I had to set the image width to 0.50 in order to show our company logo in a good size(was to small). A Spinbox to customize the logo size would be great.

\begin{document}
    \begin{letter}{\adressOne \\ 
    \customerStreet \\ \customerZIP \ \customerCity}

            \includegraphics[width=0.50\textwidth]{logo.png}    #default width=0.15
Jean28518 commented 1 year ago

Thank you very much! The logo problem should be fixed now. Please retry it with the newest version from today.

actionschnitzel commented 1 year ago

Yes, image resizing works fine. Right now I am using the program for testing purposes. I would like to stay in touch because I want to replace our current invoice tool this time next year.