Code Monkey home page Code Monkey logo

invoicer's Introduction

This is a single page application that allows to generate invoices in PDF.

Getting Started

Firstly, install dependencies:

npm i

Then, run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.

Filling up the form

You can start filling up the fields. Fields without values will not be included into generated invoice document.

For convenience, field values can be hardcoded to avoid manual entry next time.

Invoicer supports two formats for rate: hourly rate and daily rate with hourly rate being default. To switch between daily rate and hourly rate, click the button under invoice date field in the third column (counting from left to right) of the form.

Two currencies are supported: $ and โ‚ฌ, the former sign is placed before the number in resulting table, and the latter is placed behind.

Selecting date range allows for generation of entries (timesheet table) in the document. Checkbox Exclude Saturdays and Sundays will allow to include only workdays from the selected date range to the resulting table.

Preview mode

Clicking Show preview enables preview mode. In preview mode entries can be modified by a clicking on them, followed by entering a new value. It is possible because in preview mode entries are actually input fields pretending to be unremarkable table cells.

Show edit buttons switch makes delete buttons on every entry visible, which allows to delete particular entry or entries. + button allows to add a new entry, with values for rate and hours same as in previous timesheet entry. In case of clicking + in an empty timesheet, default values (8 working hours per day, and 70 (of chosen currency) hourly rate) will be used.

Extra expenses

Switch I need an Extra Expenses block adds an empty extra expenses block under the timesheet table. Switch Show edit buttons allows to create and delete entries with + and -, respectively.

Extra expenses table consists of a text field for description, and a field for entering a value for amount.

Clicking on a field allows to edit it, as these fields are input elements.

Save as .pdf

Make sure to hide edit mode by turning off the switch Show edit buttons. Clicking I'm done, print this out opens print preview, where Show background colors allows to include or exclude colorful header blocks from the result. Click Save as PDF to save your invoice.

Thank you for trying out this tool and feel free to share your feedback or add an issue.

invoicer's People

Contributors

yanina-nas avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.