P
P
pippu2016-04-19 14:53:04
1C
pippu, 2016-04-19 14:53:04

Why doesn't it allow to write down the props "Object field is not writable"?

Here is the code:
Request = New Request;
Request.Text = "
SELECT
| Incoming Goods of Services. Counterparty , | Incoming of Goods of Services . Date , | Incoming of Goods of Services . Link, | Incoming of Goods of Services . Goods. , | Amount, | VAT Amount, | Price, | GTD Number, | Country of Origin, | Account, | VAT Account, | Reflection VUSN, | Retail Price,
| AmountRetail,
| RateVATRetail,
| Contractor,
| AgreementContractor,
| AccountSettlements
| )
| FROM
| Document.Receipt of Goods/Services HOW Receipt of Goods
/Services |WHERE
| IncomingGoodsServices.Date >= &DateFrom
| AND Receipt of Goods/Services.Date <= &DateBY
| And Receipt of Goods/Services.Counterparty = &Counterparty1";
Query.SetParameter("DatePO", DatePO);
Query.SetParameter("DateS", DateS);
Query.SetParameter("Counterparty1", References.Counterparties.FindBy Name("companyLLC"));
QueryResult = Query.Execute();
While SelectionDetailedRecords.Next() Loop
Object = SelectionDetailedRecords.Reference.GetObject();
TabularSection Columns = SelectionDetailRecords.Reference.Products;
For Each Row from ColumnTabularPart Loop
Row.Price = Row.Price * 0.2;
EndCycle;
Object.Write();
EndCycle;
Platform 8.3 Thick Client

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Nagibovich, 2016-04-19
@pippu

TabularSection Columns = SelectionDetailRecords.Reference.Products;

Products get from Object, not from SampleDetailedRecords
to name variable Object - not the best solution

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question