dispatch and delivered and processing

This commit is contained in:
Sibunnayak 2024-09-20 15:35:27 +05:30
parent 44e8e712a7
commit 0f2330db13

View File

@ -736,6 +736,7 @@ export const getDispatchedOrdersAdmin = async (req, res) => {
.skip(skip)
.limit(limit)
.populate({ path: "orderItem.productId" })
.populate({ path: "invoices" })
.populate({ path: "addedBy" });
if (dispatchedOrders.length > 0) {
@ -765,6 +766,7 @@ export const getProcessingOrdersAdmin = async (req, res) => {
.skip(skip)
.limit(limit)
.populate({ path: "orderItem.productId" })
.populate({ path: "invoices" })
.populate({ path: "addedBy" });
if (processingOrders.length > 0) {
@ -795,6 +797,7 @@ export const getDeliveredOrdersAdmin = async (req, res) => {
.skip(skip)
.limit(limit)
.populate({ path: "orderItem.productId" })
.populate({ path: "invoices" })
.populate({ path: "addedBy" });
if (deliveredOrders.length > 0) {