|
|
@ -2108,7 +2108,7 @@ exports.acceptQuotation = async (req, reply) => {
|
|
|
|
{ type: "slave", count: parseInt(slaves || 0) },
|
|
|
|
{ type: "slave", count: parseInt(slaves || 0) },
|
|
|
|
{ type: "sensor", count: parseInt(sensors || 0) },
|
|
|
|
{ type: "sensor", count: parseInt(sensors || 0) },
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
console.log(sensorTypes,"sensortypes")
|
|
|
|
for (const sensor of sensorTypes) {
|
|
|
|
for (const sensor of sensorTypes) {
|
|
|
|
if (sensor.count > 0) {
|
|
|
|
if (sensor.count > 0) {
|
|
|
|
const stock = await SensorStock.findOne({ storeId, type: sensor.type });
|
|
|
|
const stock = await SensorStock.findOne({ storeId, type: sensor.type });
|
|
|
|