diff --git a/src/assets/images/sign.png b/src/assets/images/sign.png index ebff7f3..d54fe5e 100644 Binary files a/src/assets/images/sign.png and b/src/assets/images/sign.png differ diff --git a/src/components/Invoice.css b/src/components/Invoice.css index c37c8ef..f5c05f7 100644 --- a/src/components/Invoice.css +++ b/src/components/Invoice.css @@ -1,7 +1,7 @@ .invoice-container { - padding: 0; + padding: 20px; + max-width: 100%; margin: 0 auto; - max-width: 29.7cm; -webkit-print-color-adjust: exact; direction: rtl; font: 9pt irancell; @@ -144,3 +144,20 @@ tfoot { margin-bottom: 0.5cm; margin-top: 0.5cm; } + +.mobile-scroll-wrapper { + width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; +} + +@media screen and (max-width: 768px) { + .mobile-scroll-wrapper { + margin: 0 -20px; + padding: 0 20px; + } + + .page { + min-width: 1200px; + } +} diff --git a/src/components/Invoice.tsx b/src/components/Invoice.tsx index 29e53b7..1ade3d4 100644 --- a/src/components/Invoice.tsx +++ b/src/components/Invoice.tsx @@ -88,188 +88,190 @@ const Invoice = () => { -
-

- {invoice?.status === 'PAID' ? 'فاکتور (پرداخت شده)' : 'پیش فاکتور (پرداخت نشده)'} -

- - - - - - - - - - - -
-
-
فروشندده
-
-
-
- - - - - - - - - - - - -
- فروشنده: رسا نگاره داناک - - شناسه ملی: ۱۴۰۰۵۴۵۳۱۹۰ - - شماره ثبت: ۴۸۳۵۱۶ - - شماره اقتصادی: ۱۴۰۰۵۴۵۳۱۹۰ -
- نشانی شرکت:تهران - یوسف آباد - خیابان فتحی شقاقی - پلاک ۵ - واحد ۱۳ - - کدپستی: ۱۴۳۳۶۳۴۴۴۶ - - تلفن و فکس: ۰۲۱۹۱۶۹۳۵۳۳ -
-
-
-
-
-
شماره فاکتور:
-
{moment(invoice?.createdAt).format('jYYYY') + invoice?.numericId}
-
-
-
تاریخ:
-
{moment(invoice?.createdAt).format('jYYYY/jMM/jDD')}
-
-
-
پیگیری:
-
{invoice?.numericId}
-
-
-
-
-
خریدار
-
-
-
- - - - - - - - - - - - -
- خریدار: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.registrationName : `${profile?.firstName} ${profile?.lastName}`} - - شناسه ملی: {profile?.nationalCode || '-'} - - شماره ثبت: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.registrationCode : '-'} - - شماره اقتصادی: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.economicCode : '-'} -
- نشانی: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.address?.fullAddress : profile?.address?.fullAddress || '-'} - - کدپستی: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.address?.postalCode : profile?.address?.postalCode || '-'} - - تلفن: {profile?.phone || '-'} -
-
-
-
-
-
نوع شخص:
-
{profile?.financialType === 'LEGAL' ? 'حقوقی' : 'حقیقی'}
-
-
-
وضعیت:
-
{t(`receip.${invoice?.status}`)}
-
-
-
تاریخ پرداخت:
-
{invoice?.paidAt ? moment(invoice?.paidAt).format('jYYYY/jMM/jDD') : '-'}
-
-
-
- - +
+
+

+ {invoice?.status === 'PAID' ? 'فاکتور (پرداخت شده)' : 'پیش فاکتور (پرداخت نشده)'} +

+
- - - - - - - - - - - + + + - - - {invoice?.items?.map((item: ReceiptDetailItemType, index: number) => ( - - - - - - - - - - - - + + + + + +
ردیفشناسه کالا یا خدمتشرح کالا یا خدمتآمرتعدادمبلغ واحد (ریال)مبلغ کل (ریال)تخفیف (ریال)مبلغ کل پس از تخفیف (ریال)جمع مالیات و عوارض ارزش افزوده (ریال)جمع کل پس از تخفیف و مالیات و عوارض (ریال) +
+
فروشندده
+
+
+
+ + + + + + + + + + + + +
+ فروشنده: رسا نگاره داناک + + شناسه ملی: ۱۴۰۰۵۴۵۳۱۹۰ + + شماره ثبت: ۴۸۳۵۱۶ + + شماره اقتصادی: ۱۴۰۰۵۴۵۳۱۹۰ +
+ نشانی شرکت:تهران - یوسف آباد - خیابان فتحی شقاقی - پلاک ۵ - واحد ۱۳ + + کدپستی: ۱۴۳۳۶۳۴۴۴۶ + + تلفن و فکس: ۰۲۱۹۱۶۹۳۵۳۳ +
+
+
+
+
+
شماره فاکتور:
+
{moment(invoice?.createdAt).format('jYYYY') + invoice?.numericId}
+
+
+
تاریخ:
+
{moment(invoice?.createdAt).format('jYYYY/jMM/jDD')}
+
+
+
پیگیری:
+
{invoice?.numericId}
+
+
+
{index + 1}{item.id.slice(-5)}{item.name}داناک{item.count}{NumberFormat(Number(item.unitPrice))}{NumberFormat(item.totalPrice)}{NumberFormat(Number(item.discount))}{NumberFormat(item.totalPrice - Number(item.discount))}{NumberFormat(invoice.tax)}{NumberFormat(invoice.totalPrice)}
+
+
خریدار
+
+
+
+ + + + + + + + + + + + +
+ خریدار: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.registrationName : `${profile?.firstName} ${profile?.lastName}`} + + شناسه ملی: {profile?.nationalCode || '-'} + + شماره ثبت: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.registrationCode : '-'} + + شماره اقتصادی: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.economicCode : '-'} +
+ نشانی: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.address?.fullAddress : profile?.address?.fullAddress || '-'} + + کدپستی: {profile?.financialType === 'LEGAL' ? profile?.legalUser?.address?.postalCode : profile?.address?.postalCode || '-'} + + تلفن: {profile?.phone || '-'} +
+
+
+
+
+
نوع شخص:
+
{profile?.financialType === 'LEGAL' ? 'حقوقی' : 'حقیقی'}
+
+
+
وضعیت:
+
{t(`receip.${invoice?.status}`)}
+
+
+
تاریخ پرداخت:
+
{invoice?.paidAt ? moment(invoice?.paidAt).format('jYYYY/jMM/jDD') : '-'}
+
+
+
+ + + + + + + + + + + + + + - ))} - - - - - - - - - - - - - + {invoice?.items?.map((item: ReceiptDetailItemType, index: number) => ( + + + + + + + + + + + + + + ))} + + + + + + + + + + + + + - - -
ردیفشناسه کالا یا خدمتشرح کالا یا خدمتفروشندهتعدادمبلغ واحد (ریال)مبلغ کل (ریال)تخفیف (ریال)مبلغ کل پس از تخفیف (ریال)جمع مالیات و عوارض ارزش افزوده (ریال)جمع کل پس از تخفیف و مالیات و عوارض (ریال)
- جمع کل پس از کسر تخفیف با احتساب مالیات و عوارض (ریال): - {NumberFormat(invoice?.totalPrice)}
- اعتبار مالیاتی قابل استفاده توسط خریدار - -
-
-
-
مهر و امضای فروشنده:
-
تاریخ خرید:
-
-
-
- + +
{index + 1}2330000576716{item.name}داناک{item.count}{NumberFormat(Number(item.unitPrice))}{NumberFormat(Number(item.unitPrice) * Number(item.count))}{NumberFormat(Number(item.discount))}{NumberFormat(Number(item.totalPrice))}{NumberFormat(Number(item.totalPrice) * 0.1)}{NumberFormat(Number(item.totalPrice) * 0.1 + Number(item.totalPrice))}
+ جمع کل پس از کسر تخفیف با احتساب مالیات و عوارض (ریال): + {NumberFormat(invoice?.totalPrice)}
+ اعتبار مالیاتی قابل استفاده توسط خریدار + +
+
+
+
مهر و امضای فروشنده:
+
تاریخ خرید:
-
- {moment(invoice?.paidAt).format('jYYYY/jMM/jDD')} +
+
+ +
+
+ {invoice?.paidAt ? moment(invoice?.paidAt).format('jYYYY/jMM/jDD') : '-'} +
-
-
+ + + + +
); diff --git a/src/pages/service/components/ServiceHeader.tsx b/src/pages/service/components/ServiceHeader.tsx index 1fcc3ce..d7e1f0d 100644 --- a/src/pages/service/components/ServiceHeader.tsx +++ b/src/pages/service/components/ServiceHeader.tsx @@ -61,7 +61,7 @@ const ServiceHeader: FC = (props: Props) => {
-
+
{ return {