Files
psp_panel/src/app/domains/pos/modules/saleInvoices/components/sale-invoice-card.component.html
T
ahasani 88f45eee38
Production CI / validate-and-build (push) Failing after 1m2s
refactor: update labels and translations in various components
- Changed 'تغییر گذرواژه' to 'تغییر رمز عبور' in layout.component.ts
- Updated HTML structure in list.component.html and saleInvoices components for consistency and improved styling.
- Modified sale-invoice-card.component.html to enhance the display of invoice details.
- Adjusted sale-invoice-card.component.ts to handle customer types more effectively.
- Enhanced the handling of invoice statuses in saleInvoices components.
- Improved layout and styling in shop components for better user experience.
- Refactored key-value component for better readability and maintainability.
- Updated upload file component to streamline file selection process.
- Added new styles in customize.scss and psp.scss for consistent UI.
- Adjusted environment configuration for better API endpoint management.
2026-06-09 13:31:48 +03:30

56 lines
2.2 KiB
HTML

<p-card class="border-surface-border relative overflow-visible border p-0!">
<div class="flex w-full items-center justify-between gap-4">
<span class="text-lg font-bold"> {{ saleInvoice.invoice_number }}</span>
<catalog-tax-provider-status-tag [status]="saleInvoice.status.value" [translate]="saleInvoice.status.translate" />
</div>
<hr />
<div class="grid grid-cols-1 gap-3">
<app-key-value alignment="end" label="تاریخ" [value]="saleInvoice.created_at" type="date" />
<app-key-value alignment="end" label="مبلغ کل" [value]="saleInvoice.total_amount" type="price" />
<app-key-value alignment="end" label="نوع صورت‌حساب‌">
<catalog-invoice-type-tag [status]="saleInvoice.type.value" />
</app-key-value>
<app-key-value alignment="end" label="مشتری">
{{ preparedInvoiceType() }}
</app-key-value>
</div>
<hr />
<div class="flex items-center justify-center gap-4">
@if (['success'].includes(saleInvoice.status.value.toLowerCase())) {
<p-button
label="ابطال"
type="button"
severity="danger"
(click)="revokeInvoice()"
[loading]="revokingInvoiceLoading()"
[disabled]="onAction()"></p-button>
}
@if (saleInvoice.status.value.toLowerCase() === 'not_send') {
<p-button
label="ارسال صورت‌حساب‌"
type="button"
(click)="sendInvoice()"
[loading]="sendingLoading()"
[disabled]="onAction()"></p-button>
}
@if (['queued', 'fiscal_queued'].includes(saleInvoice.status.value.toLowerCase())) {
<p-button
label="استعلام وضعیت"
type="button"
severity="info"
(click)="getStatus()"
[loading]="gettingStatusLoading()"
[disabled]="onAction()"></p-button>
}
@if (saleInvoice.status.value.toLowerCase() === 'send_failure') {
<p-button
label="ارسال مجدد"
type="button"
(click)="resendInvoice()"
[loading]="resendingLoading()"
[disabled]="onAction()"></p-button>
}
<a [routerLink]="singlePageRoute()" pButton type="button" (click)="viewDetails()" outlined>مشاهده جزییات</a>
</div>
</p-card>