Created
November 7, 2012 15:37
-
-
Save nukturnal/4032299 to your computer and use it in GitHub Desktop.
MPower .NET Building a Checkout Invoice
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Adding items to your invoice is very basic, the parameters | |
// expected are name_of_item, quantity, unit_price, total_price and | |
// optional item description. | |
invoice.AddItem("13' Apple Retina 500 HDD",1,10.99,10.99); | |
invoice.AddItem("Case Logic laptop Bag",2,100.50,201,"Optional description"); | |
invoice.AddItem("Philips electric shaver",2,50.50,101.00); | |
/* You can optionally set a generation invoice description text which can | |
be used in cases where your invoice does not need an items list or in cases | |
where you need to include some extra descriptive information to your invoice */ | |
invoice.SetDescription("Optional Invoice description here"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment