Refactor: Remove stored procedures and replace with direct database operations

feat: Add economic code and guild information to sales invoice selection

fix: Update error messages for invoice access and creation to use "صورت‌حساب"

fix: Change error messages in SaleInvoicesService to use "صورت‌حساب" instead of "فاکتور"

fix: Update error messages in SalesInvoicesService for not found cases to use "صورت‌حساب"

fix: Modify TSP service to handle invoice updates and error messages consistently with "صورت‌حساب"

fix: Update common DTO descriptions to refer to "صورت‌حساب" instead of "فاکتور"

fix: Adjust utility functions to handle invoice references and error messages with "صورت‌حساب"
This commit is contained in:
2026-06-11 16:13:17 +03:30
parent 47a27fb54f
commit 23bfe1ecbe
12 changed files with 114 additions and 2105 deletions
@@ -253,7 +253,7 @@ export class SaleInvoicesService {
if (invoice) {
return ResponseMapper.single(this.invoiceMapper(invoice))
}
throw new NotFoundException('فاکتور مورد نظر شما یافت نشد.')
throw new NotFoundException('صورت‌حساب مورد نظر شما یافت نشد.')
}
async send(invoiceId: string, posInfo: IPosPayload) {
@@ -301,7 +301,7 @@ export class SaleInvoicesService {
async sendBulk(consumer_id: string, invoiceIds: string[]) {
if (!invoiceIds.length) {
throw new BadRequestException('لیست شناسه فاکتورها نمی‌تواند خالی باشد.')
throw new BadRequestException('لیست شناسه ‌صورت‌حساب‌ها نمی‌تواند خالی باشد.')
}
await this.salesInvoiceTaxService.sendBulk(consumer_id, invoiceIds)