public byte[] GetPurchaseInvoiceOriginal(Guid pId) { var fRet = SyncHelper.RunAsyncAsSync(() => GetItems <DocumentOriginal>($"{PURCHASEINVOICES}/{pId}/documentoriginal")); return(Base64Helper.GetBytesFromJsonResult(fRet.Content)); }
public bool DeletePaymentTerm(PaymentTerm pPaymentTerm) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{PAYMENTTERMS}/{pPaymentTerm.Id}"));
public CostUnit EditCostUnit(CostUnit pCostUnit) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pCostUnit, $"{COSTUNITS}/{pCostUnit.Id}"));
public List <CostUnit> GetCostUnits(string pIdCompany) => SyncHelper.RunAsyncAsSync(() => GetItems <List <CostUnit> >($"{COSTUNITS}/{pIdCompany}"));
public List <Company> GetCompanies() => SyncHelper.RunAsyncAsSync(() => GetItems <List <Company> >(COMPANIES));
public List <AdministrationAction> GetAdministrationActions() => SyncHelper.RunAsyncAsSync(() => GetItems <List <AdministrationAction> >(ADMINISTRATIONACTIONS));
public bool DeleteVendor(Vendor pVendor) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{VENDORS}/{pVendor.Id}"));
public Vendor AddVendor(Vendor pVendor) => SyncHelper.RunAsyncAsSync(() => AddItem(pVendor, VENDORS));
public List <PurchaseInvoice> GetPurchaseInvoiceWithoutPaymentDate(string pIdCompany) => SyncHelper.RunAsyncAsSync(() => GetItems <List <PurchaseInvoice> >($"{PURCHASEINVOICES}/?filter[payment_date]=null&filter[id_company]={pIdCompany}"));
public bool DeleteProject(Project pProject) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{PROJECTS}/{pProject.Id}"));
public PurchaseInvoice GetPurchaseInvoice(Guid pId) => SyncHelper.RunAsyncAsSync(() => GetItems <PurchaseInvoice>($"{PURCHASEINVOICES}/{pId}"));
public Project EditProject(Project pProject) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pProject, $"{PROJECTS}/{pProject.Id}"));
public Project AddProject(Project pProject) => SyncHelper.RunAsyncAsSync(() => AddItem(pProject, PROJECTS));
public List <Project> GetProjects(string pIdCompany) => SyncHelper.RunAsyncAsSync(() => GetItems <List <Project> >($"{PROJECTS}/{pIdCompany}"));
public bool DeleteVatCode(VatCode pVatCode) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{VATCODES}/{pVatCode.Id}"));
public List <PurchaseOrder> GetPurchaseOrders(string pIdCompany) => SyncHelper.RunAsyncAsSync(() => GetItems <List <PurchaseOrder> >($"{PURCHASEORDERS}/{pIdCompany}"));
public List <Vendor> GetVendors(string pIdCompany) => SyncHelper.RunAsyncAsSync(() => GetItems <List <Vendor> >($"{VENDORS}/{pIdCompany}"));
public PurchaseOrder AddPurchaseOrder(PurchaseOrder pPurchaseOrder) => SyncHelper.RunAsyncAsSync(() => AddItem(pPurchaseOrder, PURCHASEORDERS));
public Vendor EditVendor(Vendor pVendor) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pVendor, $"{VENDORS}/{pVendor.Id}"));
public PurchaseOrder EditPurchaseOrder(PurchaseOrder pPurchaseOrder) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pPurchaseOrder, $"{PURCHASEORDERS}/{pPurchaseOrder.Id}"));
public string GetMe() => SyncHelper.RunAsyncAsSync(() => GetItems <Me>(ME)).EnvironmentName;
public bool DeletePurchaseOrder(PurchaseOrder pPurchaseOrder) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{PURCHASEORDERS}/{pPurchaseOrder.Id}"));
public bool FinishAdministrationAction(AdministrationAction pAdministrationAction) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{ADMINISTRATIONACTIONS}/{pAdministrationAction.Id}"));
public List <VatCode> GetVatCodes(string pIdCompany) => SyncHelper.RunAsyncAsSync(() => GetItems <List <VatCode> >( $"{VATCODES}/{pIdCompany}"));
public Company EditCompany(Company pCompany) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pCompany, $"{COMPANIES}/{pCompany.Id}"));
public VatCode AddVatCode(VatCode pVatCode) => SyncHelper.RunAsyncAsSync(() => AddItem(pVatCode, VATCODES));
public CostUnit AddCostUnit(CostUnit pCostUnit) => SyncHelper.RunAsyncAsSync(() => AddItem(pCostUnit, COSTUNITS));
public VatCode EditVatCode(VatCode pVatCode) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pVatCode, $"{VATCODES}/{pVatCode.Id}"));
public bool DeleteCostUnit(CostUnit pCostUnit) => SyncHelper.RunAsyncAsSync(() => DeleteItem($"{COSTUNITS}/{pCostUnit.Id}"));
public PaymentTerm EditPaymentTerm(PaymentTerm pPaymentTerm) => SyncHelper.RunAsyncAsSync(() => EditAndReturnItem(pPaymentTerm, $"{PAYMENTTERMS}/{pPaymentTerm.Id}"));