Skip to content

Commit

Permalink
fix(inventory): display sellable flag on edit
Browse files Browse the repository at this point in the history
Fixes a bug reported by HEV where the sellable flag was not displayed on
the client while editing the inventory item, leading to much confusion.
  • Loading branch information
jniles committed Jan 15, 2020
1 parent 066da8d commit 76131fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client/src/modules/inventory/list/modals/actions.modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ InventoryListActionsModalController.$inject = [

function InventoryListActionsModalController(
Account, Inventory, Notify, Instance,
$state, util, AppCache, SessionService, $rootScope
$state, util, AppCache, SessionService, $rootScope,
) {
const vm = this;
const cache = AppCache('InventoryList');
Expand Down
2 changes: 1 addition & 1 deletion server/controllers/inventory/inventory/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ function getItemsMetadataById(uid) {
const sql = `
SELECT BUID(i.uuid) as uuid, i.code, i.text AS label, i.price, iu.abbr AS unit,
it.text AS type, ig.name AS groupName, BUID(ig.uuid) AS group_uuid, ig.expires,
ig.unique_item, i.consumable, i.locked, i.stock_min,
ig.unique_item, i.consumable, i.locked, i.stock_min, i.sellable,
i.stock_max, i.created_at AS timestamp, i.type_id, i.unit_id, i.unit_weight, i.unit_volume,
ig.sales_account, i.default_quantity, i.avg_consumption, i.delay, i.purchase_interval,
i.last_purchase, i.num_purchase
Expand Down

0 comments on commit 76131fc

Please sign in to comment.