Example #1
0
        public byte[] GetPurchaseInvoiceOriginal(Guid pId)
        {
            var fRet = SyncHelper.RunAsyncAsSync(() =>
                                                 GetItems <DocumentOriginal>($"{PURCHASEINVOICES}/{pId}/documentoriginal"));

            return(Base64Helper.GetBytesFromJsonResult(fRet.Content));
        }
Example #2
0
 public bool DeletePaymentTerm(PaymentTerm pPaymentTerm) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{PAYMENTTERMS}/{pPaymentTerm.Id}"));
Example #3
0
 public CostUnit EditCostUnit(CostUnit pCostUnit) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pCostUnit, $"{COSTUNITS}/{pCostUnit.Id}"));
Example #4
0
 public List <CostUnit> GetCostUnits(string pIdCompany) =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <CostUnit> >($"{COSTUNITS}/{pIdCompany}"));
Example #5
0
 public List <Company> GetCompanies() =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <Company> >(COMPANIES));
Example #6
0
 public List <AdministrationAction> GetAdministrationActions() =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <AdministrationAction> >(ADMINISTRATIONACTIONS));
Example #7
0
 public bool DeleteVendor(Vendor pVendor) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{VENDORS}/{pVendor.Id}"));
Example #8
0
 public Vendor AddVendor(Vendor pVendor) =>
 SyncHelper.RunAsyncAsSync(() =>
                           AddItem(pVendor, VENDORS));
Example #9
0
 public List <PurchaseInvoice> GetPurchaseInvoiceWithoutPaymentDate(string pIdCompany) =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <PurchaseInvoice> >($"{PURCHASEINVOICES}/?filter[payment_date]=null&filter[id_company]={pIdCompany}"));
Example #10
0
 public bool DeleteProject(Project pProject) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{PROJECTS}/{pProject.Id}"));
Example #11
0
 public PurchaseInvoice GetPurchaseInvoice(Guid pId) =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <PurchaseInvoice>($"{PURCHASEINVOICES}/{pId}"));
Example #12
0
 public Project EditProject(Project pProject) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pProject, $"{PROJECTS}/{pProject.Id}"));
Example #13
0
 public Project AddProject(Project pProject) =>
 SyncHelper.RunAsyncAsSync(() =>
                           AddItem(pProject, PROJECTS));
Example #14
0
 public List <Project> GetProjects(string pIdCompany) =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <Project> >($"{PROJECTS}/{pIdCompany}"));
Example #15
0
 public bool DeleteVatCode(VatCode pVatCode) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{VATCODES}/{pVatCode.Id}"));
Example #16
0
 public List <PurchaseOrder> GetPurchaseOrders(string pIdCompany) =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <PurchaseOrder> >($"{PURCHASEORDERS}/{pIdCompany}"));
Example #17
0
 public List <Vendor> GetVendors(string pIdCompany) =>
 SyncHelper.RunAsyncAsSync(() =>
                           GetItems <List <Vendor> >($"{VENDORS}/{pIdCompany}"));
Example #18
0
 public PurchaseOrder AddPurchaseOrder(PurchaseOrder pPurchaseOrder) =>
 SyncHelper.RunAsyncAsSync(() =>
                           AddItem(pPurchaseOrder, PURCHASEORDERS));
Example #19
0
 public Vendor EditVendor(Vendor pVendor) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pVendor, $"{VENDORS}/{pVendor.Id}"));
Example #20
0
 public PurchaseOrder EditPurchaseOrder(PurchaseOrder pPurchaseOrder) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pPurchaseOrder, $"{PURCHASEORDERS}/{pPurchaseOrder.Id}"));
Example #21
0
 public string GetMe() =>
 SyncHelper.RunAsyncAsSync(() => GetItems <Me>(ME)).EnvironmentName;
Example #22
0
 public bool DeletePurchaseOrder(PurchaseOrder pPurchaseOrder) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{PURCHASEORDERS}/{pPurchaseOrder.Id}"));
Example #23
0
 public bool FinishAdministrationAction(AdministrationAction pAdministrationAction) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{ADMINISTRATIONACTIONS}/{pAdministrationAction.Id}"));
Example #24
0
 public List <VatCode> GetVatCodes(string pIdCompany) =>
 SyncHelper.RunAsyncAsSync(() => GetItems <List <VatCode> >(
                               $"{VATCODES}/{pIdCompany}"));
Example #25
0
 public Company EditCompany(Company pCompany) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pCompany, $"{COMPANIES}/{pCompany.Id}"));
Example #26
0
 public VatCode AddVatCode(VatCode pVatCode) =>
 SyncHelper.RunAsyncAsSync(() => AddItem(pVatCode, VATCODES));
Example #27
0
 public CostUnit AddCostUnit(CostUnit pCostUnit) =>
 SyncHelper.RunAsyncAsSync(() =>
                           AddItem(pCostUnit, COSTUNITS));
Example #28
0
 public VatCode EditVatCode(VatCode pVatCode) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pVatCode, $"{VATCODES}/{pVatCode.Id}"));
Example #29
0
 public bool DeleteCostUnit(CostUnit pCostUnit) =>
 SyncHelper.RunAsyncAsSync(() =>
                           DeleteItem($"{COSTUNITS}/{pCostUnit.Id}"));
Example #30
0
 public PaymentTerm EditPaymentTerm(PaymentTerm pPaymentTerm) =>
 SyncHelper.RunAsyncAsSync(() =>
                           EditAndReturnItem(pPaymentTerm, $"{PAYMENTTERMS}/{pPaymentTerm.Id}"));