/** * Creates a default items subtotal line item * @param EE_Line_Item $event_line_item * @param EE_Event $event * @param EE_Transaction $transaction * @return EE_Line_Item */ public static function set_event_subtotal_details(EE_Line_Item $event_line_item, EE_Event $event, $transaction = NULL) { if ($event instanceof EE_Event) { $event_line_item->set_code(self::get_event_code($event)); $event_line_item->set_name(self::get_event_name($event)); $event_line_item->set_desc(self::get_event_desc($event)); $event_line_item->set_OBJ_ID($event->ID()); } self::set_TXN_ID($event_line_item, $transaction); }