feat: update app version and build details in ngsw-config.json
fix: add baseZIndex to p-toast component in app.component.ts feat: enhance pagination support in saleInvoices list component refactor: modify saleInvoices service to accept pagination query feat: update API routes for saleInvoices to support pagination fix: adjust layout for consumer accounts in partner module style: improve layout for consumer business activities in partner module fix: update license info display in dashboard component fix: ensure price info card displays default values for discount and tax refactor: clean up gold payload form component fix: adjust root component layout for mobile view refactor: unify consumer account list configuration across modules chore: remove deprecated partner consumer account list config chore: remove deprecated superAdmin consumer account list config feat: add new consumer account list configuration style: add summary list styling in customize.scss chore: switch API base URL for TIS environment
This commit is contained in:
@@ -8,6 +8,7 @@ import { MenuItem } from 'primeng/api';
|
||||
import { Button, ButtonDirective } from 'primeng/button';
|
||||
import { Card } from 'primeng/card';
|
||||
import { Menu } from 'primeng/menu';
|
||||
import { finalize } from 'rxjs';
|
||||
import images from 'src/assets/images';
|
||||
import { PosInfoStore, PosProfileStore } from '../../store';
|
||||
import { DeviceInfoStore } from '../../store/device.store';
|
||||
@@ -85,19 +86,22 @@ export class PosPagesLayoutComponent {
|
||||
homeRouteLink = '/pos';
|
||||
|
||||
async getData() {
|
||||
// await this.layoutService.changeFullPageLoading(true);
|
||||
// await this.posProfileStore.getData().subscribe({
|
||||
// next: () => {
|
||||
// this.posInfoStore
|
||||
// .getData()
|
||||
// .pipe(
|
||||
// finalize(() => {
|
||||
// this.layoutService.changeFullPageLoading(false);
|
||||
// }),
|
||||
// )
|
||||
// .subscribe();
|
||||
// },
|
||||
// });
|
||||
if (!this.posInfo() || !this.posProfile()) {
|
||||
await this.layoutService.changeFullPageLoading(true);
|
||||
await this.layoutService.changeFullPageLoading(true);
|
||||
await this.posProfileStore.getData().subscribe({
|
||||
next: () => {
|
||||
this.posInfoStore
|
||||
.getData()
|
||||
.pipe(
|
||||
finalize(() => {
|
||||
this.layoutService.changeFullPageLoading(false);
|
||||
}),
|
||||
)
|
||||
.subscribe();
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
toggleMenu() {
|
||||
|
||||
@@ -15,11 +15,11 @@
|
||||
</div>
|
||||
<div class="flex justify-between items-center">
|
||||
<span>تخفیف</span>
|
||||
<span [appPriceMask]="priceInfo().discountAmount"></span>
|
||||
<span [appPriceMask]="priceInfo().discountAmount || 0"></span>
|
||||
</div>
|
||||
<div class="flex justify-between items-center">
|
||||
<span>مالیات</span>
|
||||
<span [appPriceMask]="priceInfo().taxAmount"></span>
|
||||
<span [appPriceMask]="priceInfo().taxAmount || 0"></span>
|
||||
</div>
|
||||
<hr />
|
||||
<div class="flex justify-between items-center font-bold text-lg">
|
||||
|
||||
@@ -31,16 +31,16 @@ export class PosGoldPayloadFormComponent extends AbstractForm<
|
||||
IPosOrderItem<IGoldPayload>,
|
||||
IPosOrderItem<IGoldPayload>
|
||||
> {
|
||||
override defaultValues: Partial<IPosOrderItem<IGoldPayload>> = {
|
||||
unit_price: 200_000_000,
|
||||
quantity: 2,
|
||||
payload: {
|
||||
commission: 10_000,
|
||||
wages: 10_000,
|
||||
profit: 10_000,
|
||||
karat: '18' as TGoldKarat,
|
||||
} as any,
|
||||
};
|
||||
// override defaultValues: Partial<IPosOrderItem<IGoldPayload>> = {
|
||||
// unit_price: 200_000_000,
|
||||
// quantity: 2,
|
||||
// payload: {
|
||||
// commission: 10_000,
|
||||
// wages: 10_000,
|
||||
// profit: 10_000,
|
||||
// karat: '18' as TGoldKarat,
|
||||
// } as any,
|
||||
// };
|
||||
|
||||
@Output() onSubmitForm = new EventEmitter<IGoldPayload>();
|
||||
@Output() onChangeTotalAmount = new EventEmitter<number>();
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
type="button"
|
||||
pButton
|
||||
class="sticky! bottom-0 inset-x-0 w-full right-0 z-1200 border-t border-surface-border bg-surface-0 px-4 py-3 shadow-[0_-4px_16px_rgba(0,0,0,0.08)] md:hidden! rounded-b-none!"
|
||||
[style.paddingBottom]="'calc(0.75rem + {{env(safe-area-inset-bottom)}})'"
|
||||
(click)="openInvoiceBottomSheet()"
|
||||
>
|
||||
<!-- [style.paddingBottom]="'calc(0.75rem + {{env(safe-area-inset-bottom)}})'" -->
|
||||
<div class="mx-auto flex w-full max-w-3xl items-center justify-between">
|
||||
<div class="flex flex-col items-start gap-1">
|
||||
<span class="text-base">مبلغ کل فاکتور</span>
|
||||
|
||||
Reference in New Issue
Block a user