/// <summary>
 /// Gets the physical store type ID.
 /// </summary>
 /// <returns></returns>
 /// <exception cref="System.Exception"></exception>
 internal int GetPhysicalStoreTypeID()
 {
     try
     {
         var physicalStore = new PhysicalStore();
         if (!this.IsColumnNull("PalletLocationID"))
         {
             physicalStore.LoadByPalletLocationID(PalletLocationID);
         }
         else
         {
             physicalStore.LoadByPalletID(PalletID);
         }
         return(physicalStore.PhysicalStoreTypeID);
     }
     catch
     {
         throw new Exception("Invalid warehouse setting.  Please configure the warehouse settings correctly.");
     }
 }
 /// <summary>
 /// Gets the physical store type ID.
 /// </summary>
 /// <returns></returns>
 /// <exception cref="System.Exception"></exception>
 internal int GetPhysicalStoreTypeID()
 {
     try
     {
         var physicalStore = new PhysicalStore();
         if (!this.IsColumnNull("PalletLocationID"))
             physicalStore.LoadByPalletLocationID(PalletLocationID);
         else
             physicalStore.LoadByPalletID(PalletID);
         return physicalStore.PhysicalStoreTypeID;
     }
     catch
     {
         throw new Exception("Invalid warehouse setting.  Please configure the warehouse settings correctly.");
     }
 }