Skip to content

Commit

Permalink
revert set options.columns.type
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-topway-it authored Feb 2, 2025
1 parent 2708292 commit 425581d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions formats/datatables/resources/ext.srf.formats.datatables.js
Original file line number Diff line number Diff line change
Expand Up @@ -695,10 +695,13 @@

var columnDefs = [];
$.map(printrequests, function (property, index) {

var isNumeric =
(entityCollation === 'numeric' && property.typeid === '_wpg') ||
['_num', '_tem', '_qty'].indexOf(property.typeid) !== -1;

options.columns.type = isNumeric ? 'num' : 'string';

columnDefs.push(
$.extend(
{
Expand Down

0 comments on commit 425581d

Please sign in to comment.