mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +00:00
Sales order button fix (#4782)
* Add (empty) set of API filters for contact table * Fix typo
This commit is contained in:
parent
5886415aa7
commit
3b3ce81d11
@ -390,7 +390,7 @@
|
|||||||
});
|
});
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if roles.salse_order.add %}
|
{% if roles.sales_order.add %}
|
||||||
$("#new-sales-order").click(function() {
|
$("#new-sales-order").click(function() {
|
||||||
|
|
||||||
createSalesOrder({
|
createSalesOrder({
|
||||||
|
@ -669,6 +669,12 @@ function getPartTableFilters() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// Return a dictionary of filters for the "contact" table
|
||||||
|
function getContactFilters() {
|
||||||
|
return {};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Return a dictionary of filters for the "company" table
|
// Return a dictionary of filters for the "company" table
|
||||||
function getCompanyFilters() {
|
function getCompanyFilters() {
|
||||||
return {
|
return {
|
||||||
@ -699,6 +705,8 @@ function getAvailableTableFilters(tableKey) {
|
|||||||
return getPartCategoryFilters();
|
return getPartCategoryFilters();
|
||||||
case 'company':
|
case 'company':
|
||||||
return getCompanyFilters();
|
return getCompanyFilters();
|
||||||
|
case 'contact':
|
||||||
|
return getContactFilters();
|
||||||
case 'customerstock':
|
case 'customerstock':
|
||||||
return getCustomerStockFilters();
|
return getCustomerStockFilters();
|
||||||
case 'bom':
|
case 'bom':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user