Clear manually rescheduled date on chore execution (references #1830)

This commit is contained in:
Bernd Bestel
2022-03-27 16:11:16 +02:00
parent f41a219760
commit acebed5aae
3 changed files with 11 additions and 1 deletions

View File

@@ -205,6 +205,13 @@ class ChoresService extends BaseService
$this->getStockService()->ConsumeProduct($chore->product_id, $chore->product_amount, false, StockService::TRANSACTION_TYPE_CONSUME, 'default', null, null, $transactionId, true);
}
if (!empty($chore->rescheduled_date))
{
$chore->update([
'rescheduled_date' => null
]);
}
return $lastInsertId;
}