Exemple #1
0
 public InvoiceReports(Invoices Invoices)
 {
     _id = Invoices._id;
     this.OwnerId = Invoices.OwnerId;
     this.PONo = Invoices.PONo;
     this.Customer = Invoices.Customer;
     this.InvoiceNo = Invoices.InvoiceNo;
     buildKeywords(Invoices);
 }
Exemple #2
0
 private void buildKeywords(Invoices Invoices)
 {
     Keywords = new string[] {
         Invoices._id.ToString(),
         Invoices.OwnerId,
         Invoices.PONo,
         Invoices.Customer,
         Invoices.InvoiceNo
     };
 }
Exemple #3
0
 public void Save(Invoices invoice)
 {
     Collections.Save<Invoices>(invoice);
 }
Exemple #4
0
 public void UpdateInvoices(Invoices invoice)
 {
     Collections.Save<Invoices>(invoice);
 }
Exemple #5
0
        public InvoiceReport(Invoices invoice)
        {
            Items = new List<InvoiceItemReport>();
            Customer = invoice.Customer;
            CustomerId = invoice.CustomerId;
            InvoiceNo = invoice.InvoiceNo;
            PONo = invoice.PONo;
            InvoiceDate = invoice.InvoiceDate;
            Terms = invoice.Terms;
            DueDate = invoice.DueDate;
            LateFee = invoice.LateFee;
            Note = invoice.Note;
            TermCondition = invoice.TermCondition;
            ExchangeRate = invoice.ExchangeRate;
            BaseCcy = invoice.BaseCcy;
            Currency = invoice.Currency;
            SubTotal = invoice.SubTotal;
            Total = invoice.Total;
            _id = invoice._id;
            OwnerId = invoice.OwnerId;
            Status = invoice.Status;
            CancelNote = invoice.CancelNote;

            foreach (var item in invoice.Items)
            {
                Items.Add(new InvoiceItemReport(item));
            }
        }