public static InvoiceSummary Summarize(InvoiceFull invoice, string invoiceTexts = null) { var iv = invoice.Invoice; var ft = invoice.FirstTask; var task = ft?.Task; var taskDoc = task?.Document; var accountingDimension1 = invoice.Accounting?.DimensionStrings?.FirstOrDefault().Dimensions?.Dimension1; if (iv.FinalBookingDate.FromMediusDate() != iv.InvoiceDate.FromMediusDate()) { } if (iv.ActualPaymentDate.FromMediusDate() != null) { }
// "/Rpc/LinksService/GetLinks" - H "Accept: application/json, text/javascript, */*; q=0.01" - H "Content-Type: application/json; charset=utf-8" - H "X-Json-Preserve-References: true" // "/Rpc/AttachmentsManager/GetAttachments" -H "Accept: application/json, text/javascript, */*; q=0.01" -H "Content-Type: application/json; charset=utf-8" -H "X-Json-Preserve-References: true"--data "{""entityViewId"":""<<GUID>>"",""entityType"":""Medius.ExpenseInvoice.Entities.ExpenseInvoice""}" // "/Rpc/lightApi/LabelsService/GetLabelsIdsAssignedToDocument"-H "Accept: application/json, text/javascript, */*; q=0.01" -H "Accept-Language: en-US,en;q=0.5" -H "Content-Type: application/json; charset=utf-8" -H "X-Json-Preserve-References: true" -H "Pragma: no-cache" -H "Cache-Control: no-cache" --data "{""documentId"":<<int id>>}" public async Task <List <InvoiceFull> > GetInvoices(IEnumerable <Models.SupplierInvoiceGadgetData.Invoice> invoiceGadgetData) { var result = new List <InvoiceFull>(); foreach (var invoice in invoiceGadgetData) { var accounting = await api.GetAccountingObjectWithLinesForInvoice(invoice.Id); var invF = new InvoiceFull { Invoice = invoice, Accounting = accounting }; result.Add(invF); invF.TaskAssignments = await GetTaskAssignmentAndTasks(invoice.Id); } return(result); }