I'm not sure why it's failing on this particular field and I have couple of other fields with same inputField, what I'm doing wrong here?
Wrong type for attribute
<c:invoicedetail InvoiceAmount="{!myinvoice.Invoice_Amount__c}">
. Expected Invoice__c, found BigDecimal (Line: 1, Column: -1)
Here is my very simple VF component:
<apex:attribute name="InvoiceAmount" description="Invoice Amount" type="invoice__c" required="true"/>
<many other inputfields here....
<apex:inputField id="in" value="{!InvoiceAmount.Invoice_Amount__c}"/>
VF page:
<c:mycomponent InvoiceAmount="{!myinvoice.Invoice_Amount__c}"
Controller:
public with sharing class InvoiceController {
public InvoiceController() {
Invoice__c myinvoice = [/*SOQL*/];
}
}