From e5f53c22659ca5e40aad8d2955d56e2b1586c071 Mon Sep 17 00:00:00 2001 From: ahasani194 Date: Wed, 17 Jun 2026 09:21:20 +0330 Subject: [PATCH] set loading in correction and return form --- .../pos/modules/saleInvoices/views/single.component.html | 2 ++ .../components/invoices/correctionForm/form.component.html | 2 +- .../shared/components/invoices/correctionForm/form.component.ts | 1 + .../shared/components/invoices/returnForm/form.component.html | 2 +- .../components/invoices/sale-invoice-single-view.component.html | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/domains/pos/modules/saleInvoices/views/single.component.html b/src/app/domains/pos/modules/saleInvoices/views/single.component.html index 548fa4d..7d52d4f 100644 --- a/src/app/domains/pos/modules/saleInvoices/views/single.component.html +++ b/src/app/domains/pos/modules/saleInvoices/views/single.component.html @@ -5,6 +5,8 @@ [sendToTspLoading]="sendToTspLoading()" [inquiryLoading]="inquiryLoading()" [resendToTspLoading]="resendToTspLoading()" + [correctionLoading]="correctionLoading()" + [returnFromSaleLoading]="backFromSaleLoading()" (onSendToTsp)="sendToTsp()" (onResendToTsp)="resendToTsp()" (onInquiry)="inquiry()" diff --git a/src/app/shared/components/invoices/correctionForm/form.component.html b/src/app/shared/components/invoices/correctionForm/form.component.html index 8c9984b..6762f6e 100644 --- a/src/app/shared/components/invoices/correctionForm/form.component.html +++ b/src/app/shared/components/invoices/correctionForm/form.component.html @@ -43,7 +43,7 @@ - + Promise | boolean; @Input({ required: true }) invoiceDate!: string; @Input() visible = false; + @Input() loading = false; form = this.fb.group({ invoice_date: [this.invoiceDate], diff --git a/src/app/shared/components/invoices/returnForm/form.component.html b/src/app/shared/components/invoices/returnForm/form.component.html index f57c2ba..be47804 100644 --- a/src/app/shared/components/invoices/returnForm/form.component.html +++ b/src/app/shared/components/invoices/returnForm/form.component.html @@ -22,5 +22,5 @@ - + diff --git a/src/app/shared/components/invoices/sale-invoice-single-view.component.html b/src/app/shared/components/invoices/sale-invoice-single-view.component.html index ac20984..06a5c5f 100644 --- a/src/app/shared/components/invoices/sale-invoice-single-view.component.html +++ b/src/app/shared/components/invoices/sale-invoice-single-view.component.html @@ -50,6 +50,7 @@ [initialValues]="invoice.items" [invoiceDate]="invoice.invoice_date" [beforeSubmit]="beforeCorrectionSubmitHandler.bind(this)" + [loading]="correctionLoading || false" (onSubmit)="correctionSubmit($event)" (onClose)="cancelCorrection()" />