Answer the question
In order to leave comments, you need to log in
How to programmatically write down the address of the counterparty in 1C and add it to the history of address changes?
I am interested in Enterprise Accounting and Trade Management, but for definiteness I will talk about Accounting 3.0 of the current version.
The task is this. There is a competitor. He has a legal address. I need to programmatically change it, but so that the changes are displayed in the address change history. So that the old one remains, and a new one appears with the beginning of the action from the current date. I'm trying to do it like this:
МойКонтрагент = Справочники.Контрагенты.НайтиПоНаименованию("НаименованиеМоегоКонтрагента");
НовыйАдрес = "Тут реальный корректный адрес";
Вид = Справочники.ВидыКонтактнойИНформации.ЮрАдресКонтрагента;
УправлениеКонтактнойИнформацией.ДобавитьКонтактнуюИнформацию(МойКонтрагент, НовыйАдрес, Вид, ТекущаяДата(), Ложь);
Периодическая = УправлениеКонтактнойИнформациейСлужебныйПовтИсп.КонтактнаяИнформацияОбъектаСодержитКолонкуДействуетС(Объект.Ссылка);
Answer the question
In order to leave comments, you need to log in
The correct clarification in which conf you will write, tk. there are differences in the structure and recording methods.
Yes, use the BSP procedures. This will make life easier.
but....
In that case I recommend to catch a debugger that happens.
You are doing everything according to the procedure.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question