update excel file

This commit is contained in:
2026-07-12 19:12:08 +03:30
parent 4048e3424a
commit 571003377a
+4 -4
View File
@@ -25,7 +25,7 @@ import { SalonServiceOffering } from './entities/salon-service-offering.entity';
import { ServiceSkill } from './entities/service-skill.entity';
import { Service } from './entities/service.entity';
const TITLE_HEADERS = new Set(['عنوان مهارت', 'title', 'عنوان']);
const TITLE_HEADERS = new Set(['مهارت', 'عنوان مهارت', 'title', 'عنوان']);
const RENEWAL_HEADERS = new Set([
'دوره بازگشت (روز)',
'دوره بازگشت',
@@ -125,8 +125,8 @@ export class ServicesService {
const sheet = workbook.addWorksheet('مهارت‌ها');
sheet.columns = [
{ header: 'عنوان مهارت', key: 'title', width: 40 },
{ header: 'دوره بازگشت (روز)', key: 'renewalDays', width: 22 },
{ header: 'مهارت', key: 'title', width: 40 },
{ header: 'دوره بازگشت', key: 'renewalDays', width: 22 },
];
sheet.getRow(1).font = { bold: true };
@@ -422,7 +422,7 @@ export class ServicesService {
if (!titleCol || !renewalCol) {
throw new BadRequestException(
'ستون‌های «عنوان مهارت» و «دوره بازگشت (روز)» در ردیف اول الزامی هستند',
'ستون‌های «مهارت» و «دوره بازگشت» در ردیف اول الزامی هستند',
);
}