If you would like PigVision to register the amount of medicine automatically you must open General - Setup. Then in the section "Medicine journals" you put a checkmark in "Use calculation", like shown on the picture below: