update saleinvoice single and create return from sale form, update agent.md file,

This commit is contained in:
2026-06-01 13:53:42 +03:30
parent c271a36f7e
commit d44004d555
25 changed files with 562 additions and 199 deletions
@@ -42,13 +42,7 @@
<div class="sticky bottom-0 flex flex-col gap-4 py-2">
<p-card class="border-surface-border border">
<div class="flex flex-col gap-4">
<app-datepicker
label="تاریخ صورت‌حساب‌"
alignment="horizontal"
[min]="invoiceMinDate"
[max]="invoiceMaxDate"
[control]="invoiceDate"
(valueChange)="changeDate($event)" />
<field-invoice-date [control]="invoiceDate" alignment="horizontal" (onChangeDate)="changeDate($event)" />
<div class="flex shrink-0 items-center justify-between gap-2">
<app-key-value label="مشتری" [value]="customerNameToShow()" />
<button pButton outlined icon="pi pi-pencil" size="small" (click)="openCustomerDialog()"></button>
@@ -1,8 +1,7 @@
// import { CustomersSelectComponent } from '@/modules/customers/components/select/select.component';
// import { ICustomerResponse } from '@/modules/customers/models';
import { KeyValueComponent } from '@/shared/components';
import { MiniMonthlyCalendarComponent } from '@/uikit';
import { formatGregorian, gregorianAddUnit } from '@/utils';
import { FieldInvoiceDateComponent } from '@/shared/components/fields/invoice_date.component';
import {
ChangeDetectionStrategy,
Component,
@@ -35,7 +34,8 @@ import { POSOrderPriceInfoCardComponent } from './price-info-card.component';
PosOrderCustomerDialogComponent,
KeyValueComponent,
Card,
MiniMonthlyCalendarComponent,
FieldInvoiceDateComponent,
],
})
export class PosOrderSectionComponent {
@@ -46,8 +46,6 @@ export class PosOrderSectionComponent {
placeholderImage = images.placeholders.default;
isVisibleCustomerForm = signal(false);
invoiceMinDate = formatGregorian(gregorianAddUnit(new Date(), -7, 'days'));
invoiceMaxDate = formatGregorian(new Date());
invoiceDate = new FormControl(this.store.invoiceDate());