'Header for Waybills
@param data: the S3ResourceData for the inv_send'

@classmethod
def waybill_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('Waybill'))
    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_send.send_ref', 'inv_send.req_ref'), row_('inv_send.date', 'inv_send.delivery_date'), row_('inv_send.site_id', 'inv_send.to_site_id'), row_('inv_send.sender_id', 'inv_send.recipient_id'), row_('inv_origin_warehouse.contact', 'inv_destination_warehouse.contact'), row_('inv_send.transported_by', 'inv_send.transport_ref'), row_('inv_destination_warehouse.location_id', None))
    ctable = TABLE(TR(TH(T('Comments'))), TR(TD(row['inv_send.comments'])))
    return DIV(dtable, P('&nbsp;'), ctable)
