...
This commit is contained in:
@@ -19,6 +19,10 @@ namespace Back.Services
|
||||
{
|
||||
return await _invoiceitemRepo.UpdateAsync(item);
|
||||
}
|
||||
public async Task<bool> Delete(InvoiceItem item)
|
||||
{
|
||||
return await _invoiceitemRepo.DeleteAsync(item);
|
||||
}
|
||||
public async Task<bool> Exist(int companyID,int invoiceID,int invoiceitemID)
|
||||
{
|
||||
return await _invoiceitemRepo.Get(w => w.InvoiceID == invoiceID && w.ID == invoiceitemID && w.invoice.CompanyID == companyID).AnyAsync();
|
||||
|
@@ -20,7 +20,7 @@ namespace Back.Services
|
||||
}
|
||||
public async Task<bool> ExistSuccessfulorSendorpendingInvoice(Invoice invoice)
|
||||
{
|
||||
return _repoSentTax.Get(w => /*w.InvoiceType == invoice.invoiceType &&*/ w.InvoiceID == invoice.ID &&
|
||||
return _repoSentTax.Get(w => w.InvoiceType == invoice.invoiceType && w.InvoiceID == invoice.ID &&
|
||||
(w.SentStatus == SentStatus.Successful || w.SentStatus == SentStatus.Send || w.SentStatus == SentStatus.pending)).Any();
|
||||
}
|
||||
public async Task<bool> CheckingTheCompanyKeyInformation(int CompanyID, string UniqeMemory, string PrivateKey, string EconomicCode)
|
||||
|
Reference in New Issue
Block a user