Closed hansbak closed 2 years ago
This changes the logic so that if an order has items with products of any of the given types ('PtAsset', 'PtDigitalAsset', 'PtAssetUse', 'PtPickAssembly') then it does not create a shipment.
Based on the comment on the PR it seems you want to exclude 'PtAssetUse', which could be discussed, but these are the 4 primary product types that NEED a shipment.
Thanks for your quick comment,
looking into it a bit further and added a new productType PtFixedAssetUse here locally to show the rental of hotel rooms which do not need a shipment.
Yes, the general idea with PtAssetUse is that it is for things that would be shipped (portable assets), and sounds like you are working on non-portable assets like hotel rooms or house or the like. A different product type would be a good idea for that.
a shipment is created from an order even if the orderitem product has a type of assetUsage.