Skip to content

Commit

Permalink
- added column movement_id on stock movements list grid
Browse files Browse the repository at this point in the history
- set productStockMovementGrid on stock movements list in product tab
  • Loading branch information
eneiasramos committed Apr 9, 2022
1 parent 7fc58a1 commit 923dfea
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ protected function _prepareCollection()

protected function _prepareColumns()
{
$this->addColumn('movement_id', array(
'header' => Mage::helper('bubble_stockmovements')->__('Movement ID'),
'align' => 'right',
'index' => 'movement_id',
'type' => 'number',
'width' => '80px',
'filter_index' => 'main_table.movement_id',
));
if (!$this->getProduct()) {
$this->addColumn('sku', array(
'header' => Mage::helper('bubble_stockmovements')->__('SKU'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public function addStockMovementsTab()
$block->addTab('stock_movements', array(
'after' => 'inventory',
'label' => Mage::helper('bubble_stockmovements')->__('Stock Movements'),
'content' => $layout->createBlock('bubble_stockmovements/adminhtml_stock_movement_grid')->toHtml(),
'content' => $layout->createBlock('bubble_stockmovements/adminhtml_stock_movement_grid')
->setId('productStockMovementGrid')->toHtml(),
));
}
}
Expand Down
1 change: 1 addition & 0 deletions app/locale/pt_BR/Bubble_StockMovements.csv
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"Movement ID","ID Movimento"
"Quantity","Quantidade"
"Movement","Movimento"
"In Stock","Em Estoque"
Expand Down

0 comments on commit 923dfea

Please sign in to comment.