V
V
Victor L2017-05-10 12:32:21
Portfolio
Victor L, 2017-05-10 12:32:21

How to programmatically select a warehouse in 1C?

Retail (basic), edition 2.2 (2.2.5.22), check document, I fill in the tabular part from the xml file, there is one warehouse field left how to assign a warehouse in the configuration it is one

//Добавляем в ТЧ
      НоваяСтрока = ДокОбъект.Товары.Добавить();
      НоваяСтрока.Номенклатура 		= НоваяНоменклатура.Ссылка;
      НоваяСтрока.Количество 			= ПривестиКЧислу(СтрТЧ.Количество);
      НоваяСтрока.КоличествоУпаковок 	= ПривестиКЧислу(СтрТЧ.Количество);
      НоваяСтрока.Цена				= ПривестиКЧислу(СтрТЧ.Цена);
      НоваяСтрока.Сумма				= ПривестиКЧислу(СтрТЧ.Сумма);
                        НоваяСтрока.Склад = ?
      НоваяСтрока.СуммаНДС            = ПривестиКЧислу(СтрТЧ.СуммаНДС);
...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Fedorov, 2018-07-08
@PervizYek

It's funny - I also looked at the idea from this Novosibirsk site and made my own decision :)
This is the standard output of Apache, if you enable file output Specifically
- -here it is: https://oupala.github.io/apaxy/ https://maksfedorov.ru/done/ https://github.com/DirectoryLister/DirectoryLister If you have Apache - I found another beautiful output (moreover, the output of extensions is fresh) https://github.com/Vestride/fancy -index Well, for Nginx (you do not work with Apache, I hope) I found a solution: https://github.com/Naereen/Nginx-Fancyindex-Theme

I
Igor, 2017-05-10
@Fzero0

at the beginning
Warehouse=Directories.Warehouses.FindByCode("Your_warehouse_code");
... add blablabla tutu...
NewLine. Warehouse = Warehouse;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question