Exemple #1
0
        private void CopyTableFiscal(bool flag)
        {
            clsListScSalesHistory lstSalH = new clsListScSalesHistory();
            clsListInvFiscal      lstInv  = new clsListInvFiscal();

            lstSalH.GetSalesHistory(clsGlobals.NextScenarioID);
            foreach (clsScSalesHistory ele in lstSalH.Elements)
            {
                clsInvFiscal myInv = new clsInvFiscal();
                myInv.CopyElement(ele);
                lstInv.AddInvFiscal(myInv);
            }
            lstInv.SaveListInvFiscal(flag);
        }
Exemple #2
0
        private void UpdateItems(clsProductEqui myPeq, int numberSeasons)
        {
            clsListScSalesHistory myProductBase = new clsListScSalesHistory();

            myProductBase.GetSalesHistoryByID(clsGlobals.GIPar.ScenarioID, clsProduct.GetProductColorIDFromGIProductID(myPeq.ProductBaseID));
            foreach (clsScSalesHistory ele in myProductBase.Elements)
            {
                if (numberSeasons == 2)
                {
                    ele.UpdateTwoItems(myPeq.ProductEquiID);
                }
                else
                {
                    ele.UpdateOneItems(myPeq.ProductEquiID);
                }
            }
        }