feat: syn product

This commit is contained in:
efrilm
2025-08-03 00:35:00 +07:00
parent 576f687d21
commit 7678b4791d
28 changed files with 1922 additions and 948 deletions
@@ -308,7 +308,7 @@ class ProductLocalDatasource {
tableProduct,
product.toLocalMap(),
where: 'product_id = ?',
whereArgs: [product.productId],
whereArgs: [product.id],
);
}
@@ -319,7 +319,7 @@ class ProductLocalDatasource {
for (var product in products) {
await db.insert(tableProduct, product.toLocalMap(),
conflictAlgorithm: ConflictAlgorithm.replace);
log('inserted success id: ${product.productId} | name: ${product.name} | price: ${product.price} | Printer Type ${product.printerType}');
log('inserted success id: ${product.id} | name: ${product.name} | price: ${product.price} ');
}
}