partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit bba388dd0700c8bfe790f32162d8cdff7b1c0f55
parent d211813e3fec053a4355cd1b268367cdd5d27c69
Author: Felicitus <felicitus@felicitus.org>
Date:   Sat,  7 Nov 2015 18:28:33 +0100

Retrieve the stock report data from associations

Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/StockReport/StockHistoryGrid.js | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/StockReport/StockHistoryGrid.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/StockReport/StockHistoryGrid.js @@ -13,16 +13,18 @@ Ext.define('PartKeepr.StockHistoryGrid', { this.columns.splice(2, 0, { header: i18n("Part"), - renderer: Ext.util.Format.htmlEncode, - dataIndex: 'part_name', + renderer: function (val, q, rec) { + return rec.getPart().get("name"); + }, flex: 1, minWidth: 200 }); this.columns.splice(3, 0, { header: i18n("Storage Location"), - renderer: Ext.util.Format.htmlEncode, - dataIndex: 'storageLocation_name', + renderer: function (val, q, rec) { + return rec.getPart().getStorageLocation().get("name"); + }, flex: 1, minWidth: 200 });