This commit is contained in:
mmrbnjd
2024-10-19 18:30:02 +03:30
parent a930d1c576
commit 42a5e76cde
5 changed files with 48 additions and 30 deletions

View File

@@ -301,7 +301,6 @@ else
</div>
</div>
@if (invoice != null)
{
@* action *@
@@ -382,19 +381,22 @@ else
public async Task Send()
{
SpinnerVisible = true;
string route = "PreparationInvoiceBeforeSending";
if (FullInvoice)
route = "UpdateInvoice";
var rsp = await hc.Post<_TaxPayer.Atemplatefield>($"TaxPayer/{route}", invoice);
if (rsp.IsSuccessStatusCode)
string route = "PreparationInvoiceBeforeSending";
if (FullInvoice)
route = "UpdateInvoice";
var rsp = await hc.Post<_TaxPayer.Atemplatefield>($"TaxPayer/{route}", invoice);
if (rsp.IsSuccessStatusCode)
{
var response = await rsp.Content.ReadFromJsonAsync<bool>();
if (response)
{
var response = await rsp.Content.ReadFromJsonAsync<bool>();
if (response)
if (FullInvoice)
{
if (FullInvoice)
ShowMessage(ToastType.Success, "تغییرات با موفقیت انجام شد");
ShowMessage(ToastType.Success, "تغییرات با موفقیت انجام شد");
await LoadData();
}
else
{