コード例 #1
0
ファイル: InvoicerApi.cs プロジェクト: GorelH/Invoicer
 public InvoicerApi(
     SizeOption size = SizeOption.A4,
     OrientationOption orientation = OrientationOption.Portrait,
     string currency = "£"
     )
 {
     Invoice = new Invoice();
     Invoice.Title = "Invoice";
     Invoice.PageSize = size;
     Invoice.PageOrientation = orientation;
     Invoice.Currency = currency;
     Invoice.BillingDate = DateTime.Now;
     Invoice.DueDate = Invoice.BillingDate.AddDays(14);
     Invoice.Reference = DefaultReference;
 }
コード例 #2
0
ファイル: PdfInvoice.cs プロジェクト: GorelH/Invoicer
 public PdfInvoice(Invoice invoice)
 {
     Pdf = new Document();
     Invoice = invoice;
 }