The limits of the Inventory System in v4 (and earlier) are what drove me to design a PHP solution, which uses those Document Types. When v5 is released, it may make my PHP solution somewhat obsolete. That said, there are still elements to my PHP solution that I prefer over SambaPOS will offer in the near-term.
Here is the Purchase Screen, which uses the Document Types defined in SambaPOS: