Answer the question
In order to leave comments, you need to log in
How to calculate the average cost in processing 1C?
There is such a problem, now I am implementing the first report and the question arose of how to calculate the average cost in order to write the correct amount in the expense column, I was told that this should be done in the processing of the transaction, but I still don’t understand how to implement it syntactically what to pull out and where to put. I will be very glad for your help. This is how my processing looks like now
Процедура ОбработкаПроведения(Отказ, Режим)
//{{__КОНСТРУКТОР_ДВИЖЕНИЙ_РЕГИСТРОВ
// Данный фрагмент построен конструктором.
// При повторном использовании конструктора, внесенные вручную изменения будут утеряны!!!
// регистр ОстаткиТоваров Расход
Движения.ОстаткиТоваров.Записывать = Истина;
Для Каждого ТекСтрокаСведенияОПродаже Из СведенияОПродаже Цикл
Движение = Движения.ОстаткиТоваров.Добавить();
Движение.ВидДвижения = ВидДвиженияНакопления.Расход;
Движение.Период = Дата;
Движение.Товар = ТекСтрокаСведенияОПродаже.Номенклатура;
Движение.Количество = ТекСтрокаСведенияОПродаже.Количество;
Движение.Сумма = ТекСтрокаСведенияОПродаже.Сумма;
КонецЦикла;
//}}__КОНСТРУКТОР_ДВИЖЕНИЙ_РЕГИСТРОВ
КонецПроцедуры
Answer the question
In order to leave comments, you need to log in
I was told that this should be done in the processing of the holding
but I still don’t understand how to implement it syntactically, what to pull out from where and where to put it
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question