Merge pull request #1763 from eeintech/stock_table_supplier_part_detail

Fixed supplier part detail handling in stock table
This commit is contained in:
Oliver authored and GitHub committed 2021-07-07 07:53:04 +10:00
commit 1dbdcb6d9c
4 files changed
+5 -2

No files matched your search

@@ -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' %}",
});
+2
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 '-';