Si,
about your comment: I don't think that the missing support for marketing
packages should prevent the usage of the script in production.
Instead I think that the *fake* inventory units shown for the mkt pkg
could be an issue because the items are not really in inventory (just
their components are there), and most of all because the units of the
components are also shown in the reports and this could induce the user
think there are components AND mkt pkg (i.e. more inventory than the
real one).
On the other hand, your second point is really worth considering (the
issue with a product with no InventoryItems) and so for now I think that
using the original script makes sense.
Jacopo
+// This script can be used for testing right now but it should not be used for production because
+// it does not work for marketing packages and more importantly, if there is a
new product without any
+// inventory items, it will not show up on the inventory report even if it had
a ProductFacility record.
+// These problems need to be addressed before this can be used in production.
+