Skip to content

Commit

Permalink
fix low credit alert feature (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
bessantoy authored Jul 1, 2024
1 parent 636f590 commit 3041edd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/entity.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,9 @@ public static function cronLowCredits($task)
'SELECT' => [
'glpi_plugin_credit_entities.id',
'glpi_plugin_credit_entities.name',
'glpi_plugin_credit_entities.quantity',
'glpi_plugin_credit_entities.low_credit_alert',
new QueryExpression('SUM(glpi_plugin_credit_tickets.consumed) AS quantity_consumed')
],
'FROM' => 'glpi_plugin_credit_entities',
'LEFT JOIN' => [
Expand Down

0 comments on commit 3041edd

Please sign in to comment.