...
This commit is contained in:
@@ -305,8 +305,8 @@ else
|
||||
<div class="col-md-12">
|
||||
<div class="mb-2">
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="col-auto">
|
||||
<div class="col-md-6">
|
||||
|
||||
@if (FullInvoice)
|
||||
{
|
||||
<Button Disabled="SpinnerVisible" Color="ButtonColor.Primary" @onclick="Send">ثبت تغییرات</Button>
|
||||
@@ -316,7 +316,11 @@ else
|
||||
<Button Disabled="SpinnerVisible" Color="ButtonColor.Primary" @onclick="Send">آماده سازی و ارسال</Button>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="col-md-1">
|
||||
<Spinner Visible="SpinnerVisible" Color="SpinnerColor.Primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -374,12 +378,7 @@ else
|
||||
public async Task Send()
|
||||
{
|
||||
SpinnerVisible = true;
|
||||
if (!FullInvoice && !await CheckAuth())
|
||||
{
|
||||
ShowMessage(ToastType.Danger, "خطا در احراز هویت سازمان مالیاتی");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
string route = "PreparationInvoiceBeforeSending";
|
||||
if (FullInvoice)
|
||||
route = "UpdateInvoice";
|
||||
@@ -428,7 +427,7 @@ else
|
||||
var request = await rsp.Content.ReadFromJsonAsync<List<string>>();
|
||||
ShowMessage(ToastType.Danger, request[0]);
|
||||
}
|
||||
}
|
||||
|
||||
SpinnerVisible = false;
|
||||
}
|
||||
public async Task<bool> CheckAuth()
|
||||
|
Reference in New Issue
Block a user