public function get_option($key, $default = false)
 {
     if (get_option('woocommerce_gzdp_invoice_packing_slip_options') == 'yes') {
         $key = $this->type . '_' . $key;
     } else {
         if ($key == 'table_content') {
             $key = $this->type . '_' . $key;
         }
     }
     return parent::get_option($key, $default);
 }
 public function get_export_data(WC_GZDP_Invoice $invoice)
 {
     $type = wc_gzdp_get_invoice_types($invoice->type);
     $totals = $invoice->totals;
     $status = '';
     foreach (wc_gzdp_get_invoice_statuses() as $key => $val) {
         if ($key == $invoice->get_status()) {
             $status = $val;
         }
     }
     $return = array('type' => $type['title'], 'date' => $invoice->get_date(get_option('woocommerce_gzdp_invoice_date_format')), 'delivered' => $invoice->is_delivered() ? $invoice->get_delivery_date() : __('no'), 'status' => $status);
     foreach ($totals as $key => $total) {
         $return[$key] = $total;
     }
     foreach ($this->metas as $meta) {
         $return[$meta] = $invoice->{$meta};
     }
     return $invoice->filter_export_data($return);
 }
 public function get_title_pdf()
 {
     $title = parent::get_title_pdf();
     return sprintf(__('%s <span class="number-smaller">to %s</span>', 'woocommerce-germanized-pro'), $title, $this->parent_title);
 }
 public function __construct($invoice)
 {
     parent::__construct($invoice);
 }