Inventory Purchase Improvements

@emre, any chance you could improve this: Parent Unit is NULL in the DB, but should be Ounce as shown.

In my PHP code, I explicitly set this value, but if the item is created within SambaPOS, the value in the DB is NULL.

EDIT: not a big deal… I added some PHP code to select the ParentUnit as either the TransactionUnit or BaseUnit. Though I still think the ParentUnit value should not be NULL if configured via SambaPOS. Also, I assume that if there are more than 1 AdditionalUnits that use another AdditionalUnit as the ParentUnit, this value will not be NULL in the DB.