GithubHelp home page GithubHelp logo

sefiech / invoicernetcore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from craigbanach/invoicernetcore

0.0 0.0 0.0 58 KB

PDF invoice generator for .NET Core. Create invoices easily, including example CLI.

License: MIT License

C# 100.00%

invoicernetcore's Introduction

Invoicer

A simple PDF invoice generator for .NET Core, taken from simonray/Invoicer

Usage

new InvoicerApi(SizeOption.A4, OrientationOption.Landscape, "£")
    .TextColor("#CC0000")
    .BackColor("#FFD6CC")
    .Image(@"vodafone.jpg", 125, 27)
    .Company(Address.Make("FROM", "Vodafone Limited", "Vodafone House", "The Connection", "Newbury", "Berkshire RG14 2FN"))
    .Client(Address.Make("BILLING TO", "Isabella Marsh", "Overton Circle", "Little Welland", "Worcester", "WR## 2DJ"))
    .Items(new List<ItemRow> { 
        ItemRow.Make("Nexus 6", "Midnight Blue", (decimal)1, 20, (decimal)166.66, (decimal)199.99),
        ItemRow.Make("24 Months (£22.50pm)", "100 minutes, Unlimited texts, 100 MB data 3G plan with 3GB of UK Wi-Fi", (decimal)1, 20, (decimal)360.00, (decimal)432.00),
        ItemRow.Make("Special Offer", "Free case (blue)", (decimal)1, 0, (decimal)0, (decimal)0),
    })
    .Totals(new List<TotalRow> {
        TotalRow.Make("Sub Total", (decimal)526.66),
        TotalRow.Make("VAT @ 20%", (decimal)105.33),
        TotalRow.Make("Total", (decimal)631.99, true),
    })
    .Details(new List<DetailRow> {
        DetailRow.Make("PAYMENT INFORMATION", "Make all cheques payable to Vodafone UK Limited.", "", "If you have any questions concerning this invoice, contact our sales department at [email protected].", "", "Thank you for your business.")
    })
    .Footer("http://www.vodafone.co.uk")
    .Save();

Alt text

References

invoicernetcore's People

Contributors

craigbanach 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.