diff --git a/cod_commerce/modules/cod_billy/cod_billy.module b/cod_commerce/modules/cod_billy/cod_billy.module index 067e870..bc5eb72 100644 --- a/cod_commerce/modules/cod_billy/cod_billy.module +++ b/cod_commerce/modules/cod_billy/cod_billy.module @@ -109,19 +109,19 @@ function cod_billy_commerce_order_view($order, $view_mode) { $custom_date_format = $settings->field_billy_date_format->value() ? $settings->field_billy_date_format->value() : 'Y-m-d'; if ($view_mode == "pdf" || $view_mode == 'canceled') { $order->content['invoice_footer'] = array( - '#markup' => $settings->field_billy_invoice_footer->value() ? $settings->field_billy_invoice_footer->value->value() : '', + '#markup' => $settings->field_billy_invoice_footer->value() ? $settings->field_billy_invoice_footer->value() : '', ); $order->content['invoice_header'] = array( - '#markup' => $settings->field_billy_invoice_header->value() ? $settings->field_billy_invoice_header->value->value() : '', + '#markup' => $settings->field_billy_invoice_header->value() ? $settings->field_billy_invoice_header->value() : '', ); $order->content['invoice_text'] = array( - '#markup' => $settings->field_billy_invoice_text->value() ? $settings->field_billy_invoice_text->value->value() : '', + '#markup' => $settings->field_billy_invoice_text->value() ? $settings->field_billy_invoice_text->value() : '', ); $date_field_name = $view_mode == 'pdf' ? 'field_commerce_billy_i_date' : 'field_commerce_billy_cancel_date'; $date_formatted = format_date($order->{$date_field_name}[LANGUAGE_NONE][0]['value'], 'custom', $custom_date_format); if ($settings->field_billy_invoice_location->value()) { $invoice_header_date_text = t('@location, @date', array( - '@location' => $settings->field_billy_invoice_location->value->value(), + '@location' => $settings->field_billy_invoice_location->value(), '@date' => $date_formatted )); }