I want to autofill the Phone field of the Goods Receipt document and use the OnChange event of the Supplier field for that:
| Code |
|---|
&AtClient
Procedure SupplierOnChange(Item)
Object.Phone = Object.Supplier.Phone;
EndProcedure
But receive the following error. What I do wrong?
{Document.GoodsReceipt.Form.DocumentForm.Form(168)}: Object field not found (Phone)
Object.Phone = Object.Supplier.Phone; |

