'Header for Goods Received Notes
@param data: the S3ResourceData for the inv_recv'

@classmethod
def goods_received_note_header(cls, data):

    row = data.rows[0]
    labels = dict(((rfield.colname, rfield.label) for rfield in data.rfields))
    from gluon import DIV, H2, H4, TABLE, TD, TH, TR, P
    T = current.T
    from layouts import OM
    (name, logo) = OM().render()
    title = H2(T('Goods    Received    Note'))
    row_ = (lambda left, right, row=row, labels=labels: cls._header_row(left, right, row=row, labels=labels))
    dtable = TABLE(TR(TD(DIV(logo, H4(name)), _colspan=2), TD(DIV(title), _colspan=2)), row_('inv_recv.eta', 'inv_recv.date'), row_('inv_recv.from_site_id', 'inv_recv.site_id'), row_('inv_recv.sender_id', 'inv_recv.recipient_id'), row_('inv_recv.send_ref', 'inv_recv.recv_ref'))
    ctable = TABLE(TR(TH(T('Comments'))), TR(TD(row['inv_recv.comments'])))
    return DIV(dtable, P('&nbsp;'), ctable)
