mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
Clear manually rescheduled date on chore execution (references #1830)
This commit is contained in:
parent
f41a219760
commit
acebed5aae
@ -156,6 +156,8 @@ $(document).on('click', '.track-chore-button', function(e)
|
||||
$('#chore-' + choreId + '-next-execution-assigned-user').text(result.next_execution_assigned_user.display_name);
|
||||
}
|
||||
|
||||
$('#chore-' + choreId + '-reschedule-icon').remove();
|
||||
|
||||
Grocy.FrontendHelpers.EndUiBusy();
|
||||
toastr.success(__t('Tracked execution of chore %1$s on %2$s', choreName, trackedTime));
|
||||
RefreshStatistics();
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -219,7 +219,8 @@
|
||||
<span>-</span>
|
||||
@endif
|
||||
@if($curentChoreEntry->is_rescheduled == 1)
|
||||
<span class="text-muted"
|
||||
<span id="chore-{{ $curentChoreEntry->chore_id }}-reschedule-icon"
|
||||
class="text-muted"
|
||||
data-toggle="tooltip"
|
||||
title="{{ $__t('Rescheduled') }}">
|
||||
<i class="far fa-clock"></i>
|
||||
|
Loading…
x
Reference in New Issue
Block a user