เพิ่มฟิวคำสั่ง

This commit is contained in:
kittapath 2024-09-23 16:16:59 +07:00
parent 90f754c0bd
commit 963a76df10
5 changed files with 51 additions and 3 deletions

View file

@ -145,6 +145,10 @@ export class CommandController extends Controller {
if (!commandType) {
throw new HttpError(HttpStatusCode.NOT_FOUND, "ไม่พบประเภทคำสั่งนี้ในระบบ");
}
command.detailHeader = commandType.detailHeader;
command.detailBody = commandType.detailBody;
command.detailFooter = commandType.detailFooter;
command.isAttachment = commandType.isAttachment;
command.status = "DRAFT";
command.issue = commandType.name;
command.createdUserId = request.user.sub;