Fix zero division error on Bom inputs/outputs

issue4055
review13411002
Add tests for bom with inputs/outputs of zero quantity

issue4055
review13411002
Add domain to ensure that bom inputs/outputs quantity is greather than zero

issue4055
review13411002