S
S
SteepNET2022-04-11 21:59:09
1C-Enterprise
SteepNET, 2022-04-11 21:59:09

Fill in the software programmatically in 1C Enterprise UT 11.4?

Good afternoon! UT 11.4 Faced with the task of filling in the document's PM programmatically and setting the value in the "Action" column "Ship" during posting
.

Для каждого ТекущаяСтрока Из Товары Цикл 
      ТекущаяСтрока.ВариантОбеспечения = Перечисления.ВариантыОбеспечения.Отгрузить;
КонецЦикла;

But this turned out to be not enough, he puts the status in the PM, but if you do it on the basis of the order "Sale of goods", then he swears and asks to set the status in the PM "Ship" but it is already there, then I realized that when choosing a value, you need to pierce the required amount of goods with the turnout, and then it works!

How can I set this value programmatically?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin, 2022-04-12
@SteepNET

In the module of the Customer Order object in posting processing, added

should be done earlier)
Before it starts to be carried out.

A
Alexander Prokhorovich, 2022-04-11
@alexgp13

Use the debugger to see what changes in the document data after "piercing the right amount of goods with an arrow" and write it down in processing accordingly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question