SA_LAYOUT_NUM
search.lot_num = SA_LAYOUT_NUM(hdr, type);
search.lot_num = SA_LAYOUT_NUM(hdr, bonustype);