From 79989664d5779a04bb684f530d8df677d6a60708 Mon Sep 17 00:00:00 2001 From: kittapath Date: Thu, 3 Oct 2024 18:06:56 +0700 Subject: [PATCH] =?UTF-8?q?=E0=B9=81=E0=B8=81=E0=B9=89=20data=20=E0=B8=A3?= =?UTF-8?q?=E0=B8=B1=E0=B8=AB=E0=B8=A9=E0=B8=B2=E0=B8=81=E0=B8=B2=E0=B8=A3?= =?UTF-8?q?=E0=B9=81=E0=B8=97=E0=B8=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/CommandController.ts | 15 ++++++++++++++- src/controllers/PosMasterActController.ts | 1 - 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/controllers/CommandController.ts b/src/controllers/CommandController.ts index 74bd4537..3b3fdde8 100644 --- a/src/controllers/CommandController.ts +++ b/src/controllers/CommandController.ts @@ -960,7 +960,20 @@ export class CommandController extends Controller { await new CallAPI() .PostData(request, path + "/attachment", { - refIds: command.commandRecives.map((x) => x.refId), + refIds: command.commandRecives.map((x) => ({ + refId: x.refId, + Sequence: x.order, + CitizenId: x.citizenId, + Prefix: x.prefix, + FirstName: x.firstName, + LastName: x.lastName, + Amount: x.amount, + PositionSalaryAmount: x.positionSalaryAmount, + MouthSalaryAmount: x.mouthSalaryAmount, + RemarkHorizontal: x.remarkHorizontal, + RemarkVertical: x.remarkVertical, + CommandYear: command.commandYear, + })), }) .then(async (res) => { console.log(res); diff --git a/src/controllers/PosMasterActController.ts b/src/controllers/PosMasterActController.ts index ff2d96a6..8d30dd5f 100644 --- a/src/controllers/PosMasterActController.ts +++ b/src/controllers/PosMasterActController.ts @@ -263,7 +263,6 @@ export class PosMasterActController extends Controller { @Get("{posMasterActId}/{profileId}") async GetPosMasterActProfileReport( @Path() posMasterActId: string, - profileId: string, @Request() request: { user: Record }, ) { const posMasterAct = await this.posMasterActRepository.findOne({