Пример #1
0
        public item_price New_ItemPrice(item item)
        {
            item_price item_price = new item_price();

            Brillo.General general = new Brillo.General();
            item_price.id_currency   = general.Get_Currency(CurrentSession.Id_Company);
            item_price.id_price_list = general.get_price_list(CurrentSession.Id_Company);
            return(item_price);
        }
Пример #2
0
        public item_price()
        {
            id_company = CurrentSession.Id_Company;
            id_user    = CurrentSession.Id_User;
            is_head    = true;

            min_quantity = 1;

            if (item != null && item.State > 0)
            {
                Brillo.General general = new Brillo.General();
                id_currency   = general.Get_Currency(CurrentSession.Id_Company);
                id_price_list = general.get_price_list(CurrentSession.Id_Company);
            }
        }