mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Clear manually rescheduled date on chore execution (references #1830)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user