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

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