F
F
fboss992021-05-12 17:51:17
1C
fboss99, 2021-05-12 17:51:17

How to add a posted document to a request?

ГДЕ
    |	ЗаказКлиента.СуммаДокумента >= &СуммаДокумента
    |	И ЗаказКлиента.Дата МЕЖДУ &ДатаНач И &ДатаКон
    |	И ЗаказКлиента.Проведен = &Проведен";
  
  Запрос.УстановитьПараметр("ДатаКон", ДатаКон);
  Запрос.УстановитьПараметр("ДатаНач", ДатаНач);
  Запрос.УстановитьПараметр("Проведен", Проведен);

Where is the mistake?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry Kinash, 2021-05-12
@fboss99

What do you mean "carried out"? If you need to select only completed documents, then in the text of the request it is enough to write: "And Customer's Order.Performed" and you do not need to transfer any extra parameters.

A
Anton Anton, 2021-05-12
@Fragster

It is necessary to read the error that is displayed on the screen when executing this code. If there are no errors, then most likely the variable Passed = Undefined or False (or any other value not equal to True).

B
bic0, 2021-05-13
@bic0

WHERE
| Customer Order.DocumentAmount >= &DocumentAmount
| AND Customer Order.Date BETWEEN &DateStart And &DateEnd
| And Customer Order.Successed";
Query.SetParameter("DateEnd", DateEn);
Query.SetParameter("DateStart", DateStart);
or
WHERE
|CustomerOrder.DocumentAmount >= &DocumentAmount
| ANDCustomerOrder.Date BETWEEN &DateStart AND &DateEn
| ANDCustomerOrder. Posted = &Posted";
Query.SetParameter("DateCon", DateCon);
Query.SetParameter("StartDate", StartDate);
Request.SetParameter("Performed", True);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question