{
	"name": "form/nc/nc-stock/stock-value/column/stock-event.json",
	"option": {
		"grid_option": {
			"cell_class_rules": {
				"red": "data.remaining <= 0 && data.event_type === 'LI' && colDef.field === 'remaining'",
				"blue": "data.idx === 1 && colDef.field === 'stock_balance'"
			},
			"row_class_rules": {
				"darkred": "data.event_type === 'VI'",
				"grey": "data.event_type !== 'LI' && data.event_type !== 'VI'"
			}
		}
	},
	"column": [
		{
			"link_field": "st.stock_event_id",
			"link_data_field": "stock_id",
			"name": "Row",
			"record_type": "",
			"variable": "idx",
			"width": 55
		},
		{
			"variable": "event_time",
			"width": 150,
			"name": "Event time"
		},
		{
			"variable": "event_type",
			"width": 55,
			"name": "Type"
		},
		{
			"variable": "remaining",
			"width": 90,
			"name": "Remaining",
			"format": "%'.-2f",
			"cell_class": ["nc-grid-align-center"]
		},
		{
			"variable": "used",
			"width": 75,
			"name": "Used",
			"format": "%'.-2f",
			"cell_class": ["nc-grid-align-center"]
		},
		{
			"field": "stock_unit",
			"width": 50,
			"name": "Unit"
		},
		{
			"variable": "price",
			"width": 85,
			"name": "Unit price",
			"format": "%'.2f"
		},
		{
			"variable": "currency",
			"width": 55,
			"name": "Cur."
		},
		{
			"variable": "rate",
			"width": 55,
			"name": "Rate",
			"format": "%'.3f"
		},
		{
			"variable": "stock_value",
			"width": 85,
			"name": "Value",
			"format": "%'.2f"
		},
		{
			"variable": "target_currency",
			"width": 55,
			"name": "Cur."
		},
		{
			"variable": "currency_price",
			"width": 110,
			"name": "Cur. unit price",
			"format": "%'.2f"
		},
		{
			"variable": "from",
			"width": 360,
			"name": "Price from"
		},
		{
			"variable": "event_amount",
			"width": 110,
			"name": "Event amount",
			"format": "%'.-2f",
			"cell_class": ["nc-grid-align-center"]
		},
		{
			"variable": "stock_balance",
			"width": 150,
			"name": "Balance after event",
			"format": "%'.-2f",
			"cell_class": ["nc-grid-align-center"]
		},
		{
			"variable": "order_row",
			"width": 125,
			"name": "Order row"
		},
		{
			"variable": "orderer_id",
			"width": 65,
			"name": "Person"
		},
		{
			"variable": "stock_id",
			"width": 150,
			"name": "Id"
		}
	]
}
