Exemplo n.º 1
0
        public ActionResult InvoiceSummary(int id)
        {
            var invoice        = _iFInvoice.Read(id);
            var services       = _iFService.Read(id);
            var client         = _iFClient.Read(invoice.ClientId);
            var clients        = _iFClient.ReadId(invoice.ClientId);
            var typeOfServices = _iFTypeOfService.Read();
            var currencies     = _iFCurrencyCode.ReadCurrencyId(invoice.CurrencyId);

            //var taxType = _iFTaxType.Read(client.TaxTypeId); // uncomment the next two lines once the TaxType table is done
            //client.TaxType = taxType;
            invoice.Client         = client;
            invoice.Clients        = clients;
            invoice.Services       = services;
            invoice.TypeOfServices = typeOfServices;
            invoice.Currencies     = currencies;
            return(PartialView(invoice));
        }
Exemplo n.º 2
0
 public JsonResult ReadId(int id)
 {
     return(Json(_iFService.Read(id)));
 }