|
|
@ -501,7 +501,7 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
fastify.route({
|
|
|
|
fastify.route({
|
|
|
|
method: "GET",
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/rejected/:customerId",
|
|
|
|
url: "/api/allrejected",
|
|
|
|
schema: {
|
|
|
|
schema: {
|
|
|
|
tags: ["Supplier-Order"],
|
|
|
|
tags: ["Supplier-Order"],
|
|
|
|
description:"This is for Get All order cancelled",
|
|
|
|
description:"This is for Get All order cancelled",
|
|
|
@ -528,6 +528,35 @@ module.exports = function (fastify, opts, next) {
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
|
|
|
|
method: "GET",
|
|
|
|
|
|
|
|
url: "/api/rejected/:customerId",
|
|
|
|
|
|
|
|
schema: {
|
|
|
|
|
|
|
|
tags: ["Supplier-Order"],
|
|
|
|
|
|
|
|
description:"This is for Get particular customer order cancelled",
|
|
|
|
|
|
|
|
summary: "This is for Get particular customer order cancelled",
|
|
|
|
|
|
|
|
params: {
|
|
|
|
|
|
|
|
required: ["customerId"],
|
|
|
|
|
|
|
|
type: "object",
|
|
|
|
|
|
|
|
properties: {
|
|
|
|
|
|
|
|
customerId: {
|
|
|
|
|
|
|
|
type: "string",
|
|
|
|
|
|
|
|
description: "customerId",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
security: [
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
basicAuth: [],
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
handler:supplierOrderController.getCustomerOrderreject,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
fastify.route({
|
|
|
|
fastify.route({
|
|
|
|
method: "GET",
|
|
|
|
method: "GET",
|
|
|
|
url: "/api/delivered/:customerId",
|
|
|
|
url: "/api/delivered/:customerId",
|
|
|
|