Item

Instance Properties

Model Properties

Default View
[[_if(Needs Repair or Replacement, ""#### Needs Repair or Replacement"")]][[_if(Needs Identification, ""#### Needs Identification"")]][[_if(Dead, ""## DEAD"")]][[_if(To Throw Out, ""#### Throw Out on: [[_firstNonEmpty(Future Throw Out Date, ""To be Determined"")]]"")]]

{{_smallSubtitle: [[_if(Is Consumable, ""**Consumable** "")]][[Owned By -> _if(_not(_is(Lochleven)), "" Owned by ____ "")]][[_if(Categories._isNonEmpty, "" Categories: [[Categories -> _commas]] "")]] }}

{{item-image:
[[Item Photos -> _photoTarget]]
}}

[[Item Photos -> _thumbnail]]

[[_if(How Many We Have -> _not(_equals("""")), ""We have [[How Many We Have]] "")]]

[[How Many We Have Over Time -> _bulleted]]

[[_if(Is Consumable, ""We need [[How Many Needed Per Year]] for Pennsic"")]]

Housed at: [[Housed Where]][[_if(Housing Details._isNonEmpty, "" -- [[Housing Details]]"")]]

Lifecycle status: [[_firstNonEmpty(Lifecycle, ""Unknown"")]]

[[Components -> _section(""#### Components"", ""* [[Item Photos -> _first -> _thumbnail]] [[_if(Dead, ""DEAD {{strikethrough:____}}"", ""____"")]]
[[_if(How Many We Have -> _not(_equals("""")),  "" Quantity: [[How Many We Have]] "")]] [[_if(Housed Where -> _not(_equals($_context -> Housed Where)), ""Housed at:  [[Housed Where]]"")]] [[_if(Housing Details._isNonEmpty, "" -- [[Housing Details]]"")]] [[_QLButton(""Edit"", _edit)]]
"")]]

[[Notes]]

[[Investigate -> ""**Investigate:** ____""]]

[[_if(To Throw Out,
  ""This item is marked for being thrown out: [[
    <""Notice to household date: [[_firstNonEmpty(Notice of Throw Out Date, ""None"")]]"",
      ""Throw Out on: [[_firstNonEmpty(Future Throw Out Date, ""To be Determined"")]]""
    >  -> _bulleted]]""
)]]

[[_QLButton(""Edit"", _edit)]]
How Many We Have
[[How Many We Have Over Time -> _sort(Date) -> _reverse -> _first -> ""[[Value]] [[Units]]""]]
Page Header
### [[Name]]
To Throw Out
_and(_not(_equals(Lifecycle, Active use)), 
    _not(_equals(Lifecycle, Unused for 1 or more years)), 
    _not(_equals(Lifecycle, Disowned)), 
    _not(_isEmpty(Lifecycle)))
printItem
$_1 -> +$showPictures
$_2 -> +$showEditButtons
$_context -> ""
	[[_if(Dead, 
		""[[_if($showPictures, Item Photos -> _first -> _thumbnail)]] DEAD {{strikethrough:____}} [[_if($showEditButtons,_QLButton(""Edit"", _edit))]]
		"", 
		""[[_if($showPictures, Item Photos -> _first -> _thumbnail)]] ____ [[_if($showEditButtons,_QLButton(""Edit"", _edit))]]

			Housed at: [[Housed Where]] [[_if(Housing Details._isNonEmpty, "" -- [[Housing Details]]"")]]
			
			[[_if(Owned By -> _not( _equals(Lochleven)), ""Owner: [[Owned By]]"")]]

			[[_if(How Many We Have -> _not(_equals("""")), ""Quantity: [[How Many We Have]] "")]]

			[[_if(Components._isNonEmpty, 
				""Components: 
					[[Housed Where -> +$itemHousedWhere
						Components -> 
						"" 
						[[_if($showPictures, Item Photos -> _first -> _thumbnail)]] [[_if(Dead, ""DEAD {{strikethrough:____}}"", ""____"")]] [[_if(How Many We Have -> _not(_equals("""")), "" ([[How Many We Have]]) "")]] [[_if($showEditButtons,_QLButton(""Edit"", _edit))]]
						[[_if(_not(_equals($itemHousedWhere, Housed Where)), ""Housed at: [[Housed Where]]"")]] [[_if(Housing Details._isNonEmpty, "" -- [[Housing Details]]"")]]
						"" ->
						_bulleted
					]]
				"")
			]]
		"")
	]]
	<br />
""