แก้ data รัหษาการแทน

This commit is contained in:
kittapath 2024-10-03 18:06:56 +07:00
parent c0b14fe189
commit 79989664d5
2 changed files with 14 additions and 2 deletions

View file

@ -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);

View file

@ -263,7 +263,6 @@ export class PosMasterActController extends Controller {
@Get("{posMasterActId}/{profileId}")
async GetPosMasterActProfileReport(
@Path() posMasterActId: string,
profileId: string,
@Request() request: { user: Record<string, any> },
) {
const posMasterAct = await this.posMasterActRepository.findOne({