fix ui issues and upload image for guild good

This commit is contained in:
2026-04-18 12:14:39 +03:30
parent ac23d47b79
commit e027b89173
32 changed files with 353 additions and 177 deletions
@@ -31,7 +31,7 @@
<app-key-value label="کسب و کار" [value]="invoice()?.pos!.complex.business_activity.name" />
<app-key-value label="مجموعه" [value]="invoice()?.pos!.complex.name" />
<app-key-value label="پایانه‌ی فروش" [value]="invoice()?.pos!.name" />
<app-key-value label="ایجاد کننده" [value]="invoice()?.account?.account?.username" />
<app-key-value label="ایجاد کننده" [value]="invoice()?.consumer_account?.account?.username" />
</div>
@if (variant !== "customer") {
@@ -1,6 +1,6 @@
import { AbstractDialog } from '@/shared/abstractClasses/abstract-dialog';
import { KeyValueComponent } from '@/shared/components';
import { licenseStatus } from '@/shared/localEnum/constants/licenseStatus';
import { getLicenseStatus } from '@/utils';
import { Component, computed, inject } from '@angular/core';
import { Dialog } from 'primeng/dialog';
import { Message } from 'primeng/message';
@@ -14,15 +14,7 @@ import { ConsumerStore } from '../store/main.store';
export class ConsumerLicenseInfoDialogComponent extends AbstractDialog {
private readonly store = inject(ConsumerStore);
license = computed(() => this.store.entity()?.license);
license = computed(() => this.store.entity()?.license_info);
licenseStatus = computed(() => {
if (!this.store.entity()?.license?.expires_at) {
return null;
}
if (new Date().getTime() > new Date(this.store.entity()?.license?.expires_at || '').getTime()) {
return licenseStatus.EXPIRED;
}
return licenseStatus.ACTIVE;
});
licenseStatus = computed(() => getLicenseStatus(getLicenseStatus(this.license()?.expires_at)));
}