Fixed supplier part detail handling in stock table
This commit is contained in:
parent
c2df1fcd95
commit
87a7081185
|
|
@ -23,7 +23,7 @@
|
|||
params: {
|
||||
company: {{ company.id }},
|
||||
part_detail: true,
|
||||
supplier_detail: true,
|
||||
supplier_part_detail: true,
|
||||
location_detail: true,
|
||||
},
|
||||
buttons: [
|
||||
|
|
|
|||
|
|
@ -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: [
|
||||
|
|
|
|||
|
|
@ -265,6 +265,7 @@
|
|||
{% endif %}
|
||||
part_detail: true,
|
||||
location_detail: true,
|
||||
supplier_part_detail: true,
|
||||
},
|
||||
url: "{% url 'api-stock-list' %}",
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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 '-';
|
||||
|
|
|
|||
Loading…
Reference in New Issue