Update import scripts through orders
This commit is contained in:
@@ -385,8 +385,8 @@ async function importPurchaseOrders(prodConnection, localConnection, incremental
|
||||
FROM inserted_pos
|
||||
`);
|
||||
|
||||
recordsAdded = result.rows[0].inserted;
|
||||
recordsUpdated = result.rows[0].updated;
|
||||
recordsAdded = parseInt(result.rows[0].inserted, 10) || 0;
|
||||
recordsUpdated = parseInt(result.rows[0].updated, 10) || 0;
|
||||
|
||||
// Update sync status
|
||||
await localConnection.query(`
|
||||
|
||||
Reference in New Issue
Block a user