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({