Skip to content

Commit

Permalink
add new fields pallets_disposable and bag_boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
JamieVangeysel committed Aug 28, 2024
1 parent df36511 commit 4b1e897
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/src/controllers/delivery-note.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ export default async function (fastify: FastifyInstance) {
pal?: string
pal2?: string
wght?: string
wpa?: string
tb?: string
}
}>, reply: FastifyReply) {
request.log.debug({ ...request.query, ...request.params }, 'params')
Expand All @@ -46,7 +48,11 @@ export default async function (fastify: FastifyInstance) {
if (request.query.pal2)
payload.data[0].pallets_half = request.query.pal2
if (request.query.wght)
payload.data[0].pallets_disposable = request.query.wpa
if (request.query.tb)
payload.data[0].total_weight = request.query.wght
if (request.query.wpa)
payload.data[0].bag_boxes = request.query.tb
}

const oeResponse = await oe.run('slshbra01b', [
Expand Down

0 comments on commit 4b1e897

Please sign in to comment.