Added order relation to transactions. Added filter by factory to stock report.