Главная страница


su.dbms

 
 - SU.DBMS ----------------------------------------------------------------------
 From :  Sergey Pratch                       2:5020/400     28 Aug 2002  13:51:08
 To : Igor Kuhtin
 Subject : Hа: Hа: Hа: Отчеты
 -------------------------------------------------------------------------------- 
 
 Hi!
 
 "Igor Kuhtin" <Igor.Kuhtin@p2.f3000.n464.z2.fidonet.org> сообщил/сообщила в
 новостях следующее: news:1030452874@p2.f3000.n464.z2.fidonet.ftn...
 
 > Привет  Sergey!
 >
 > Он считает остатки, а не себестоимость. Еще и по одному товару. Мне
 
 интересно
 
 > как ты показываешь текущие остатки?
 >
 >    Отчетом :-)))
 >
 >
 >  SP> CREATE PROCEDURE КСУ_ОстаткиБазовый
 >  SP> @Dt    DATETIME=NULL,
 >  SP> @Schet udtSchet=NULL,
 >  SP> @ID    INT=NULL,
 >  SP> @Tovar INT=NULL,
 >  SP> @Pred INT=NULL
 
     Он считает остатки на конкретный день, но может и по отдельному товару
 (если @Tovar IS NOT NULL). А реализованная себестоимость товаров за период -
 это просто общая сумма проводок за период Дт:791-Кр:281 или если
 задействованная 9 группа, то кажется Дт:901-Кр:281. А это просто запрос,
 типа:
 
 SELECT
 SUM(P.Количество*.Цена) AS Сумма
 -- Правда у меня в таблице уже есть готовое
 -- вычисляемое поле КСУСумма и реально оно используется
 FROM Документы D INNER JOIN Документы-проводки P ON (D.ID=P.Документ)
 WHERE D.Дата between @DtS AND @DtPo
     AND (P.Дебет = @Db)
     AND (P.Кредит= @Kr)
 
 У меня сами по себе товары хранятся в цене приобретения, хотя есть
 возможность хранить и в цене реализации. В зависимости от значения в записи
 поля HДС (bit), в таблице "План счетов".
 --
 С уважением,
 Сергей Прач
 
 =================
 Please, send you private mail to: s_pratch@mail.ru
 --- ifmail v.2.15dev5
  * Origin: LtawaSoft (2:5020/400)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Отчеты   Igor Kuhtin   21 Aug 2002 13:11:30 
 Re: Отчеты   Denis Gorbunov   21 Aug 2002 19:25:01 
 Re: Отчеты   Vladimir Pavlikov   21 Aug 2002 20:01:47 
 Re: Отчеты   Nik Sestrin   21 Aug 2002 21:29:18 
 Re: Отчеты   Liliya Huff   21 Aug 2002 22:30:04 
 Hа: Отчеты    Sergey Pratch   22 Aug 2002 00:13:36 
 Re: Отчеты   Igor Kuhtin   22 Aug 2002 08:55:08 
 Re: Отчеты   Liliya Huff   23 Aug 2002 07:55:46 
 Re: Отчеты   Tolik Tentser   22 Aug 2002 18:31:39 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 19:52:40 
 Re: Отчеты   Tolik Tentser   23 Aug 2002 18:57:43 
 Re: Отчеты   Vladimir Pavlikov   23 Aug 2002 19:03:48 
 Re: Отчеты   Tolik Tentser   23 Aug 2002 19:34:25 
 Re: Отчеты   Igor Kuhtin   22 Aug 2002 08:49:16 
 Re: Отчеты   Nik Sestrin   22 Aug 2002 18:49:56 
 Hа: Отчеты    Sergey Pratch   22 Aug 2002 20:29:16 
 Re: Hа: Отчеты   Igor Kuhtin   23 Aug 2002 13:36:10 
 Hа: Hа: Отчеты    Sergey Pratch   23 Aug 2002 21:50:26 
 Re: Hа: Hа: Отчеты   Igor Kuhtin   27 Aug 2002 14:52:34 
 Hа: Hа: Hа: Отчеты    Sergey Pratch   28 Aug 2002 13:51:08 
 Re: Hа: Hа: Hа: Отчеты   Igor Kuhtin   28 Aug 2002 18:18:11 
 Hа: Hа: Hа: Hа: Отчеты    Sergey Pratch   29 Aug 2002 01:40:48 
 Re: Hа: Hа: Hа: Hа: Отчеты   Igor Kuhtin   29 Aug 2002 09:33:06 
 Hа: Отчеты    Sergey Pratch   29 Aug 2002 15:29:30 
 Re: Hа: Hа: Hа: Отчеты   Igor Kuhtin   28 Aug 2002 18:04:26 
 Hа: Hа: Hа: Hа: Отчеты    Sergey Pratch   29 Aug 2002 01:40:47 
 Re: Hа: Hа: Hа: Hа: Отчеты   Igor Kuhtin   29 Aug 2002 09:00:30 
 Hа: Hа: Hа: Hа: Hа: Отчеты    Sergey Pratch   29 Aug 2002 15:29:30 
 Re: Hа: Hа: Hа: Отчеты   Michael Skulsky   29 Aug 2002 11:29:02 
 Hа: Hа: Hа: Hа: Отчеты    Sergey Pratch   29 Aug 2002 12:03:39 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 15:46:37 
 Re: Отчеты   Nik Sestrin   22 Aug 2002 18:39:46 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 19:52:40 
 Re: Отчеты   Nik Sestrin   22 Aug 2002 20:06:52 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 20:51:32 
 Hа: Отчеты    Sergey Pratch   22 Aug 2002 22:24:51 
 Re: Отчеты   Vladimir Pavlikov   23 Aug 2002 16:10:28 
 Re: Отчеты   Nik Sestrin   23 Aug 2002 07:17:10 
 Re: Отчеты   Vladimir Pavlikov   23 Aug 2002 16:40:57 
 Re: Отчеты   Nik Sestrin   23 Aug 2002 18:37:22 
 Re: Отчеты   Vladimir Pavlikov   23 Aug 2002 18:53:39 
 Re: Отчеты   Nik Sestrin   23 Aug 2002 19:56:43 
 Re: Отчеты   Vladimir Pavlikov   26 Aug 2002 15:28:47 
 Re: Отчеты   Andrei N. Sobchuck   24 Aug 2002 12:07:46 
 Re: Отчеты   Vladimir Pavlikov   26 Aug 2002 16:25:43 
 Re: Отчеты   Denis Krylov   25 Aug 2002 18:53:46 
 Re: Отчеты   Vladimir Pavlikov   26 Aug 2002 16:25:43 
 Re: Отчеты   Andrew Grachyov   26 Aug 2002 00:19:00 
 Re: Отчеты   Vladimir Pavlikov   26 Aug 2002 16:25:43 
 Re: Отчеты   Tolik Tentser   23 Aug 2002 19:07:53 
 Re: Отчеты   Vladimir Pavlikov   23 Aug 2002 19:50:38 
 Hа: Отчеты    Sergey Pratch   23 Aug 2002 21:50:26 
 Hа: Отчеты    Sergey Pratch   22 Aug 2002 20:29:16 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 20:53:35 
 Hа: Отчеты    Sergey Pratch   22 Aug 2002 00:13:36 
 Re: Hа: Отчеты   Vova Aksionov   22 Aug 2002 07:14:43 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 15:46:37 
 Re: Отчеты   Andrei N. Sobchuck   22 Aug 2002 16:07:00 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 17:14:09 
 Re: Отчеты   Andrei N. Sobchuck   22 Aug 2002 18:13:14 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 19:52:40 
 Re: Отчеты   Andrei N. Sobchuck   23 Aug 2002 09:14:56 
 Re: Отчеты   Vladimir Pavlikov   23 Aug 2002 16:12:29 
 Re: Отчеты   Denis Gorbunov   22 Aug 2002 14:00:47 
 Re: Отчеты   Vladimir Pavlikov   22 Aug 2002 15:46:37 
 Re: Отчеты   Liliya Huff   23 Aug 2002 07:05:04 
 Re: Отчеты   Loki   21 Aug 2002 21:15:04 
 Отчеты   Dzurilo Dmitry   22 Aug 2002 09:59:22 
 Re: Отчеты   Igor Kuhtin   23 Aug 2002 13:31:18 
 Re: Отчеты   Michael Raschepkin   28 Aug 2002 15:40:55 
 Re: Отчеты   Igor Kuhtin   28 Aug 2002 18:15:07 
Архивное /su.dbms/16786e931aa42.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional