A free open source IT asset/license management system
Added license min amt formatter for BS table
snipe3ccc55a78f84
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.phpindex c39b1bd808..a895841023 100644--- a/resources/views/partials/bootstrap-table.blade.php+++ b/resources/views/partials/bootstrap-table.blade.php@@ -621,6 +621,22 @@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 listfunction phoneFormatter(value) {