/** * Counts all associated InventoryTransactionsAsDestination * @return int */ public function CountInventoryTransactionsAsDestination() { if (is_null($this->intLocationId)) { return 0; } return InventoryTransaction::CountByDestinationLocationId($this->intLocationId); }