tax
This commit is contained in:
@@ -176,6 +176,11 @@ namespace Back.Services
|
||||
SetValue(item, ref InvoiceItem);
|
||||
|
||||
}
|
||||
// سریال صورتحساب
|
||||
var innoS=await _invoiceRepo.Get(w => w.CompanyID == InvoiceItem.CompanyID).Select(s => s.inno).ToListAsync();
|
||||
var result = Enumerable.Range(1, 1000000000) .Except(innoS.Select(t => t).ToList().Select(int.Parse).ToList()).FirstOrDefault();
|
||||
InvoiceItem.inno = result.ToString("0000000000");
|
||||
|
||||
if (await _invoiceRepo.UpdateAsync(InvoiceItem))
|
||||
{
|
||||
foreach (var Bitem in FildItems.Bodys)
|
||||
|
Reference in New Issue
Block a user