This commit is contained in:
mmrbnjd
2024-08-11 18:59:36 +03:30
parent 42ce2a29e7
commit d5bcde27d2
7 changed files with 57 additions and 12 deletions

View File

@@ -67,9 +67,9 @@ namespace Back.Controllers
}
[HttpGet("GetUnits")]
[AllowAnonymous]
public async Task<ActionResult<List<IdName<int>>>> GetUnits()
public async Task<ActionResult<List<IdName<int>>>> GetUnits(bool UnitTaxID=false)
{
return Ok(await _servCOD.GetUnits());
return Ok(await _servCOD.GetUnits(UnitTaxID));
}
[HttpPost("Add")]
public async Task<ActionResult<bool>> Add(RCOD item)

View File

@@ -247,7 +247,7 @@ namespace Back.Controllers
Tvop = result.tvop ?? null,
//مالیات موضوع 17
Tax17 = string.IsNullOrEmpty(result.seventeentax) ? null : Convert.ToDecimal(result.seventeentax),
};
@@ -466,5 +466,10 @@ namespace Back.Controllers
{
return Ok(await _servTaxPayer.GetPatterns(true));
}
[HttpGet("GetUnits")]
public async Task<ActionResult<List<IdName<int>>>> GetUnits()
{
return Ok(await _servTaxPayer.GetUnits());
}
}
}