feat: add thai text to notification

This commit is contained in:
Methapon2001 2025-03-05 14:50:08 +07:00
parent 17b92b4012
commit f583448e5f
4 changed files with 22 additions and 22 deletions

View file

@ -642,8 +642,8 @@ export class QuotationController extends Controller {
await prisma.notification.create({
data: {
title: "New Quotation",
detail: "New quotation: " + ret.code,
title: "ใบเสนอราคาใหม่ / New Quotation",
detail: "รหัส / code : " + ret.code,
registeredBranchId: ret.registeredBranchId,
groupReceiver: { create: [{ name: "accountant" }, { name: "head_of_accountant" }] },
},
@ -1176,8 +1176,8 @@ export class QuotationActionController extends Controller {
.then(async (ret) => {
await prisma.notification.create({
data: {
title: "New Request",
detail: "New request: " + ret.requestData.map((v) => v.code).join(", "),
title: "รายการคำขอใหม่ / New Request",
detail: "รหัส / code : " + ret.requestData.map((v) => v.code).join(", "),
registeredBranchId: ret.registeredBranchId,
groupReceiver: { create: { name: "document_checker" } },
},