fixing some bugs, and adding patient reference in consumption_patient table
deacrising stock and increasing charge to the journal