Handle ItemReceipt Tranforms

# What
Updating transform to hand item receipts correctly.
Also cleaned up so JS and adding some logging capabilities.

# Test
1. Transform some POs into itemreceipts
1. Make sure things don't break