Is there a way to create a custom filter that hides the inventory column for Color Pencil Special on October 2nd, 2017 in the view?
The inventory for Color Pencil Special is dependent on the inventory of regular Color Pencils, which are stored somewhere else.
$scope.stationary = [{
"name": "Pen",
"data": [{
"date": "1-10-2017",
"inventory": 25
}, {
"date": "2-10-2017",
"inventory": 21
}]
}, {
"name": "Color Pencil",
"data": [{
"date": "1-10-2017",
"inventory": 3
}, {
"date": "2-10-2017",
"inventory": 0
}]
}, {
"name": "Color Pencil Special",
"data": [{
"date": "1-10-2017",
"inventory": 2
}, {
"date": "2-10-2017",
"inventory": 1 // this should be hidden in the view since regular Color Pencil inventory is zero
}]
}]
I've been struggling with this issue for quite some time. It's proving to be quite challenging...