...
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="Service">
|
||||
<HintPath>..\..\..\LocalGit\TaxPayerTools\Service\bin\Debug\Service.dll</HintPath>
|
||||
<HintPath>..\..\Dlls\Service.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
|
||||
|
@@ -98,10 +98,10 @@ namespace Back.Controllers
|
||||
|
||||
}
|
||||
[HttpPut("Update")]
|
||||
public async Task<ActionResult<int>> Update([FromBody] NUInvoiceDTO item)
|
||||
public async Task<ActionResult<bool>> Update([FromBody] NUInvoiceDTO item)
|
||||
{
|
||||
if (!ModelState.IsValid)
|
||||
return BadRequest(item);
|
||||
//if (!ModelState.IsValid)
|
||||
// return BadRequest(item);
|
||||
|
||||
//-----GetUserAndCompany
|
||||
var claim = HttpContext.User.Claims.First(c => c.Type == "UserID");
|
||||
@@ -125,7 +125,7 @@ namespace Back.Controllers
|
||||
if (await _servTaxPayer.ExistSuccessfulorSendorpendingInvoice(invoice))
|
||||
return BadRequest(new List<string> { "این صورتحساب به سازمان ارسال شده"+'\n'+
|
||||
"برای تغییر ،صورتحساب را ابطال/اصلاح یا برگشت بزنید"});
|
||||
else if (invoice.invoiceType != InvoiceType.BackFrmSale)
|
||||
else if (invoice.invoiceType == InvoiceType.BackFrmSale)
|
||||
{
|
||||
return BadRequest(new List<string>
|
||||
{ "صورتحساب در وضعیت برگشت از فروش نمی تواند ویرایش شود" });
|
||||
|
Reference in New Issue
Block a user