I am working in the Customization Project Editor. I went in and added on the Customer Screen a new custom field usrDate_Of_Loss. I think its BAccountExt.usr_Date_Of_Loss. I added it to the customer.
I also added a usrDateOfLoss to the invoice
ARRegisterExt.usrDateOfLoss I believe is what it is called.
I also added the Default code and the Formula attributes where the custom field is declared in the Customization Project Editor. I am adding it to the Attributes section, I put in bold below:
pPXDBDate]
DPXUIField(DisplayName="Date Of Loss")]
PersistingCheck = PXPersistingCheck.Nothing)]
tPXFormula(typeof(Default<ARInvoice.CustomerID>))]
It is looking up I hope that custom field from Customer to put in the Invoice DateofLoss Field.
The error on validation is:
\App_RuntimeCode\PX_Objects_AR_ARRegister_extensions.cs(36): error CS0426: The type name 'CustomerID' does not exist in the type 'Customer'
\App_RuntimeCode\PX_Objects_AR_ARRegister_extensions.cs(36): error CS0426: The type name 'CustomerID' does not exist in the type 'ARInvoice'
\App_RuntimeCode\PX_Objects_AR_ARRegister_extensions.cs(38): error CS0426: The type name 'CustomerID' does not exist in the type 'ARInvoice'
\App_RuntimeCode\PX_Objects_AR_ARRegister_extensions.cs(36): error CS0426: The type name 'CustomerID' does not exist in the type 'Customer'
Do I need to add declarations to the Attributes section in Customization Project Editor, that doesn’t seem to make sense. Any help would be appreciated.
Image below