remove unused codes and update

This commit is contained in:
2026-05-10 09:44:30 +03:30
parent a138034c06
commit 048e292bdd
107 changed files with 317 additions and 17930 deletions
@@ -0,0 +1,3 @@
export * from './filter-drawer.component';
export * from './list.component';
export * from './sale-invoice-card.component';
@@ -68,7 +68,14 @@ export class SaleInvoiceCardComponent {
this.service
.sendToTsp(this.saleInvoice.id)
.pipe(finalize(() => this.sendingLoading.set(false)))
.subscribe(() => {
.subscribe((res) => {
if (res.status === 'FAILURE') {
this.toastService.error({
text: res.message || 'خطا در ارسال فاکتور رخ داده است.',
});
} else {
this.toastService.success({ text: 'ارسال فاکتور با موفقیت انجام شد.' });
}
this.toastService.success({ text: 'ارسال فاکتور با موفقیت انجام شد.' });
this.refreshRequested.emit();
});
@@ -89,8 +96,12 @@ export class SaleInvoiceCardComponent {
this.service
.retrySendToTsp(this.saleInvoice.id)
.pipe(finalize(() => this.resendingLoading.set(false)))
.subscribe(() => {
this.toastService.success({ text: 'ارسال مجدد فاکتور با موفقیت انجام شد.' });
.subscribe((res) => {
if (res.status === 'FAILURE') {
this.toastService.error({ text: res.message || 'خطا در ارسال مجدد فاکتور رخ داده است.' });
} else {
this.toastService.success({ text: 'ارسال مجدد فاکتور با موفقیت انجام شد.' });
}
this.refreshRequested.emit();
});
}