update method
The update
method updates an existing entity.
Implementation
@override
FutureOr<void> update(
StockReconciliationModel entity, {
bool createOpLog = true,
}) async {
return retryLocalCallOperation(() async {
final stockReconciliationCompanion = entity.companion;
await sql.batch((batch) {
batch.update(
sql.stockReconciliation,
stockReconciliationCompanion,
where: (table) => table.clientReferenceId.equals(
entity.clientReferenceId,
),
);
});
return super.update(entity, createOpLog: createOpLog);
});
}