//================================== PLAN QUANTITIES FOR PRODUCTION ===========================
        public static void PlanQuantitiesForProduction(List<ViewPlanningJournal> myPlanJrnlList)
        {
            var db = new IstokDoorsDBContext();

            for (int i = 0; i < myPlanJrnlList.Count; i++)
            {
                db.usp_PlanQuantitiesForProduction(myPlanJrnlList[i].OrderId, myPlanJrnlList[i].OrderItemId,
                    myPlanJrnlList[i].FactoryId, myPlanJrnlList[i].AllocateFromInventory);


            }

            db.SaveChanges();

        }