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; }
public InvoiceSharpApi( SizeOption size = SizeOption.A4, OrientationOption orientation = OrientationOption.Portrait, string currency = "€" ) { Invoice = new Invoice(); Invoice.Title = "Facture"; Invoice.PageSize = size; Invoice.PageOrientation = orientation; Invoice.Currency = currency; Invoice.InvoiceDate = DateTime.Now; Invoice.OrderReference = DefaultReference; Invoice.IsUnpaid = false; Invoice.UnpaidMessage = "à payer"; Invoice.PaidMessage = "payée"; }
public InvoicerApi( long IdVenta, DateTime f, SizeOption size = SizeOption.A4, OrientationOption orientation = OrientationOption.Portrait, string currency = "$" ) { Invoice = new Invoice { Title = "Ticket de venta", PageSize = size, PageOrientation = orientation, Currency = currency, BillingDate = f }; Invoice.DueDate = Invoice.BillingDate.AddDays(14); Invoice.Reference = IdVenta.ToString(); }