mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Added license min amt formatter for BS table
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d0d29e03db
commit
3ccc55a78f
|
@ -621,6 +621,22 @@
|
||||||
return frags.join(' ');
|
return frags.join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Show the warning if below min qty
|
||||||
|
function minAmtFormatter(row, value) {
|
||||||
|
|
||||||
|
if ((row) && (row!=undefined)) {
|
||||||
|
console.log(row.free_seats_count);
|
||||||
|
console.log(row.min_amt);
|
||||||
|
|
||||||
|
if (value.free_seats_count <= value.min_amt) {
|
||||||
|
return '<span class="text-danger text-bold" data-tooltip="true" title="{{ trans('admin/licenses/general.below_threshold_short') }}">' + value.min_amt + '</span>';
|
||||||
|
}
|
||||||
|
|
||||||
|
return value.min_amt
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Create a linked phone number in the table list
|
// Create a linked phone number in the table list
|
||||||
function phoneFormatter(value) {
|
function phoneFormatter(value) {
|
||||||
|
|
Loading…
Reference in a new issue