Fixed supplier part detail handling in stock table

This commit is contained in:
eeintech 2021-07-06 14:32:16 -04:00
parent c2df1fcd95
commit 87a7081185
4 changed files with 5 additions and 2 deletions

View File

@ -23,7 +23,7 @@
params: {
company: {{ company.id }},
part_detail: true,
supplier_detail: true,
supplier_part_detail: true,
location_detail: true,
},
buttons: [

View File

@ -25,7 +25,7 @@ loadStockTable($("#stock-table"), {
params: {
purchase_order: {{ order.id }},
part_detail: true,
supplier_detail: true,
supplier_part_detail: true,
location_detail: true,
},
buttons: [

View File

@ -265,6 +265,7 @@
{% endif %}
part_detail: true,
location_detail: true,
supplier_part_detail: true,
},
url: "{% url 'api-stock-list' %}",
});

View File

@ -688,6 +688,8 @@ function loadStockTable(table, options) {
{
field: 'supplier_part',
title: '{% trans "Supplier Part" %}',
visible: params['supplier_part_detail'] || false,
switchable: params['supplier_part_detail'] || false,
formatter: function(value, row) {
if (!value) {
return '-';