mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-04 07:05:41 +00:00 
			
		
		
		
	Table tweaks
This commit is contained in:
		@@ -96,6 +96,7 @@ class BuildList(generics.ListCreateAPIView):
 | 
			
		||||
        'target_date',
 | 
			
		||||
        'completion_date',
 | 
			
		||||
        'quantity',
 | 
			
		||||
        'completed',
 | 
			
		||||
        'issued_by',
 | 
			
		||||
        'responsible',
 | 
			
		||||
    ]
 | 
			
		||||
 
 | 
			
		||||
@@ -1121,7 +1121,7 @@ function loadBuildOutputTable(build_info, options={}) {
 | 
			
		||||
            {
 | 
			
		||||
                field: 'quantity',
 | 
			
		||||
                title: '{% trans "Build Output" %}',
 | 
			
		||||
                switchable: true,
 | 
			
		||||
                switchable: false,
 | 
			
		||||
                sortable: true,
 | 
			
		||||
                formatter: function(value, row) {
 | 
			
		||||
 | 
			
		||||
@@ -1834,12 +1834,12 @@ function loadBuildOutputAllocationTable(buildInfo, output, options={}) {
 | 
			
		||||
 | 
			
		||||
                    // Handle the case where both ratios are equal
 | 
			
		||||
                    if (progressA == progressB) {
 | 
			
		||||
                        return (qA < qB) ? 1 : -1;
 | 
			
		||||
                        return (qA > qB) ? 1 : -1;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    if (progressA == progressB) return 0;
 | 
			
		||||
 | 
			
		||||
                    return (progressA < progressB) ? 1 : -1;
 | 
			
		||||
                    return (progressA > progressB) ? 1 : -1;
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
@@ -2374,8 +2374,8 @@ function loadBuildTable(table, options) {
 | 
			
		||||
                }
 | 
			
		||||
            },
 | 
			
		||||
            {
 | 
			
		||||
                field: 'quantity',
 | 
			
		||||
                title: '{% trans "Completed" %}',
 | 
			
		||||
                field: 'completed',
 | 
			
		||||
                title: '{% trans "Progress" %}',
 | 
			
		||||
                sortable: true,
 | 
			
		||||
                formatter: function(value, row) {
 | 
			
		||||
                    return makeProgressBar(
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user