Ext.define('TradePortal.view.products.TallyWindow', {
	extend: 'Ext.window.Window',
	alias: 'widget.tallypanel',
	id: 'tally_panel',
	autoShow: true,
	title: 'Tally maintenance',
	layout: 'fit',
	width: 500,
	resizable: true,
	modal: true,
	stateful: false,
	layout: {
		type: 'vbox',
		align: 'stretch'
	},
	border: false,

	dockedItems: [
		{
			xtype: 'toolbar',
			dock: 'bottom',
			items: [
				{
					html: '-	To order total LM without specifying lengths, key total qty with length of 1.0 <br/>-	To remove a length from the tally, change qty to zero.',
					height: 35
				}, {
					xtype: 'tbfill'
				}, {
					xtype: 'tbspacer',
					width: 5
				},
				{
					xtype: 'button',
					text: 'Save',
					scale: 'medium',
					height: 30,
					id: 'addtally_save'
				}
			]
		}
	],

	items: [
		{
			xtype: 'tallyproductsgrid',
			height: 275
		}
	],

	initComponent: function () {
		this.callParent(arguments);
	}
}); 