Version Description
April 8, 2015 =
Added: Variable products attributes on template
Added: Shipping address on template
Added: Order number and order date on template
Added: Option to add the year to the invoice number
Added: Option to change order date format
Fixed: Header CSS on template
Improved: Dutch language file
Download this release
Release Info
Developer | baaaaas |
Plugin | WooCommerce PDF Invoices |
Version | 2.1.0 |
Comparing to | |
See all releases |
Code changes from version 2.0.6 to 2.1.0
- admin/classes/woocommerce-pdf-invoices.php +1 -1
- admin/classes/wpi-template-settings.php +24 -8
- bootstrap.php +3 -3
- includes/classes/wpi-document.php +1 -1
- includes/classes/wpi-invoice.php +26 -15
- includes/views/templates/invoice-micro.php +73 -19
- lang/be-woocommerce-pdf-invoices-nl_NL.mo +0 -0
- lang/be-woocommerce-pdf-invoices-nl_NL.po +442 -419
- lib/mpdf/config_fonts.php +5 -0
- lib/mpdf/ttfonts/Lato-Bold.ttf +0 -0
- lib/mpdf/ttfonts/Lato-Italic.ttf +0 -0
- lib/mpdf/ttfonts/Lato-Regular.ttf +0 -0
- readme.txt +12 -2
admin/classes/woocommerce-pdf-invoices.php
CHANGED
@@ -328,7 +328,7 @@ if ( ! class_exists( 'BE_WooCommerce_PDF_Invoices' ) ) {
|
|
328 |
$invoice = new WPI_Invoice(new WC_Order($post->ID), $this->textdomain);
|
329 |
|
330 |
if( $invoice->exists() ) {
|
331 |
-
$this->show_invoice_number_info($invoice->
|
332 |
$this->show_invoice_button( __( 'View invoice', $this->textdomain ), $post->ID, 'view', __( 'View', $this->textdomain ), array('class="invoice-btn"') );
|
333 |
$this->show_invoice_button( __( 'Cancel invoice', $this->textdomain ), $post->ID, 'cancel', __( 'Cancel', $this->textdomain ), array('class="invoice-btn"', 'onclick="return confirm(\'' . __( 'Are you sure to delete the invoice?', $this->textdomain ) . '\')"' ) );
|
334 |
} else {
|
328 |
$invoice = new WPI_Invoice(new WC_Order($post->ID), $this->textdomain);
|
329 |
|
330 |
if( $invoice->exists() ) {
|
331 |
+
$this->show_invoice_number_info( $invoice->get_formatted_invoice_date(), $invoice->get_formatted_invoice_number() );
|
332 |
$this->show_invoice_button( __( 'View invoice', $this->textdomain ), $post->ID, 'view', __( 'View', $this->textdomain ), array('class="invoice-btn"') );
|
333 |
$this->show_invoice_button( __( 'Cancel invoice', $this->textdomain ), $post->ID, 'cancel', __( 'Cancel', $this->textdomain ), array('class="invoice-btn"', 'onclick="return confirm(\'' . __( 'Are you sure to delete the invoice?', $this->textdomain ) . '\')"' ) );
|
334 |
} else {
|
admin/classes/wpi-template-settings.php
CHANGED
@@ -29,20 +29,21 @@ if ( ! class_exists( 'WPI_Template_Settings' ) ) {
|
|
29 |
'company_address' => '',
|
30 |
'company_details' => '',
|
31 |
'terms' => '',
|
32 |
-
'show_discount' =>
|
33 |
-
'show_subtotal' =>
|
34 |
-
'show_tax' =>
|
35 |
-
'show_shipping' =>
|
36 |
-
'show_customer_notes' =>
|
37 |
'show_sku' => 0,
|
38 |
'invoice_number_type' => 'woocommerce_order_number',
|
39 |
'next_invoice_number' => 1,
|
40 |
'invoice_number_digits' => 3,
|
41 |
'invoice_prefix' => '',
|
42 |
'invoice_suffix' => '',
|
43 |
-
'invoice_format' => '[
|
44 |
'reset_invoice_number' => 0,
|
45 |
-
'invoice_date_format' => '
|
|
|
46 |
'last_invoiced_year' => '',
|
47 |
'last_invoice_number' => 1
|
48 |
);
|
@@ -117,6 +118,7 @@ if ( ! class_exists( 'WPI_Template_Settings' ) ) {
|
|
117 |
add_settings_field('invoice_format', __('Invoice number format', $this->textdomain), array(&$this, 'invoice_format_option'), $this->settings_key, 'section_template');
|
118 |
add_settings_field('reset_invoice_number', __('Reset on 1st January', $this->textdomain), array(&$this, 'reset_invoice_number_option'), $this->settings_key, 'section_template');
|
119 |
add_settings_field('invoice_date_format', __('Invoice date format', $this->textdomain), array(&$this, 'invoice_date_format_option'), $this->settings_key, 'section_template');
|
|
|
120 |
add_settings_field('show_sku', __('Show SKU', $this->textdomain), array(&$this, 'show_sku_option'), $this->settings_key, 'section_template');
|
121 |
add_settings_field('show_discount', __('Show discount', $this->textdomain), array(&$this, 'show_discount_option'), $this->settings_key, 'section_template');
|
122 |
add_settings_field('show_subtotal', __('Show subtotal', $this->textdomain), array(&$this, 'show_subtotal_option'), $this->settings_key, 'section_template');
|
@@ -407,7 +409,7 @@ if ( ! class_exists( 'WPI_Template_Settings' ) ) {
|
|
407 |
name="<?php echo $this->settings_key; ?>[invoice_format]"
|
408 |
value="<?php echo $this->settings['invoice_format']; ?>"/>
|
409 |
<div
|
410 |
-
class="notes"><?php
|
411 |
<?php
|
412 |
}
|
413 |
|
@@ -439,6 +441,20 @@ if ( ! class_exists( 'WPI_Template_Settings' ) ) {
|
|
439 |
<?php
|
440 |
}
|
441 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
442 |
/**
|
443 |
*
|
444 |
*/
|
29 |
'company_address' => '',
|
30 |
'company_details' => '',
|
31 |
'terms' => '',
|
32 |
+
'show_discount' => 1,
|
33 |
+
'show_subtotal' => 1,
|
34 |
+
'show_tax' => 1,
|
35 |
+
'show_shipping' => 1,
|
36 |
+
'show_customer_notes' => 1,
|
37 |
'show_sku' => 0,
|
38 |
'invoice_number_type' => 'woocommerce_order_number',
|
39 |
'next_invoice_number' => 1,
|
40 |
'invoice_number_digits' => 3,
|
41 |
'invoice_prefix' => '',
|
42 |
'invoice_suffix' => '',
|
43 |
+
'invoice_format' => '[number]',
|
44 |
'reset_invoice_number' => 0,
|
45 |
+
'invoice_date_format' => 'd-m-Y',
|
46 |
+
'order_date_format' => 'd-m-Y',
|
47 |
'last_invoiced_year' => '',
|
48 |
'last_invoice_number' => 1
|
49 |
);
|
118 |
add_settings_field('invoice_format', __('Invoice number format', $this->textdomain), array(&$this, 'invoice_format_option'), $this->settings_key, 'section_template');
|
119 |
add_settings_field('reset_invoice_number', __('Reset on 1st January', $this->textdomain), array(&$this, 'reset_invoice_number_option'), $this->settings_key, 'section_template');
|
120 |
add_settings_field('invoice_date_format', __('Invoice date format', $this->textdomain), array(&$this, 'invoice_date_format_option'), $this->settings_key, 'section_template');
|
121 |
+
add_settings_field('order_date_format', __('Order date format', $this->textdomain), array(&$this, 'order_date_format_option'), $this->settings_key, 'section_template');
|
122 |
add_settings_field('show_sku', __('Show SKU', $this->textdomain), array(&$this, 'show_sku_option'), $this->settings_key, 'section_template');
|
123 |
add_settings_field('show_discount', __('Show discount', $this->textdomain), array(&$this, 'show_discount_option'), $this->settings_key, 'section_template');
|
124 |
add_settings_field('show_subtotal', __('Show subtotal', $this->textdomain), array(&$this, 'show_subtotal_option'), $this->settings_key, 'section_template');
|
409 |
name="<?php echo $this->settings_key; ?>[invoice_format]"
|
410 |
value="<?php echo $this->settings['invoice_format']; ?>"/>
|
411 |
<div
|
412 |
+
class="notes"><?php printf( __( 'Available placeholder are %s %s %s %s and %s. %s is required.', $this->textdomain ), '[prefix]', '[suffix]', '[number]', '[Y]', '[y]', '[number]' ); ?></div>
|
413 |
<?php
|
414 |
}
|
415 |
|
441 |
<?php
|
442 |
}
|
443 |
|
444 |
+
/**
|
445 |
+
*
|
446 |
+
*/
|
447 |
+
public function order_date_format_option()
|
448 |
+
{
|
449 |
+
?>
|
450 |
+
<input type="text"
|
451 |
+
name="<?php echo $this->settings_key; ?>[order_date_format]"
|
452 |
+
value="<?php echo $this->settings['order_date_format']; ?>"/>
|
453 |
+
<div
|
454 |
+
class="notes"><?php printf(__('Order date %sformat%s. Examples: %s or %s.', $this->textdomain), '<a href="http://php.net/manual/en/datetime.formats.date.php">', '</a>', '"m.d.y"', '"F jS Y"'); ?></div>
|
455 |
+
<?php
|
456 |
+
}
|
457 |
+
|
458 |
/**
|
459 |
*
|
460 |
*/
|
bootstrap.php
CHANGED
@@ -1,15 +1,15 @@
|
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
-
* @version 2.0
|
5 |
* @package WooCommerce PDF Invoices
|
6 |
* @author baaaaas
|
7 |
*
|
8 |
* @wordpress-plugin
|
9 |
* Plugin Name: WooCommerce PDF Invoices
|
10 |
* Plugin URI:
|
11 |
-
* Description:
|
12 |
-
* Version: 2.0
|
13 |
* Author: baaaaas
|
14 |
* Author URI:
|
15 |
* License: GPL-2.0+
|
1 |
<?php
|
2 |
|
3 |
/**
|
4 |
+
* @version 2.1.0
|
5 |
* @package WooCommerce PDF Invoices
|
6 |
* @author baaaaas
|
7 |
*
|
8 |
* @wordpress-plugin
|
9 |
* Plugin Name: WooCommerce PDF Invoices
|
10 |
* Plugin URI:
|
11 |
+
* Description: Automatically or manually create and send PDF Invoices for WooCommerce orders and connect with Dropbox, Google Drive, OneDrive or Egnyte.
|
12 |
+
* Version: 2.1.0
|
13 |
* Author: baaaaas
|
14 |
* Author URI:
|
15 |
* License: GPL-2.0+
|
includes/classes/wpi-document.php
CHANGED
@@ -84,7 +84,7 @@ if ( ! class_exists( 'WPI_Document' ) ) {
|
|
84 |
|
85 |
update_option('template_settings', $this->template_settings);
|
86 |
|
87 |
-
$this->date = $this->
|
88 |
|
89 |
// Go generate
|
90 |
set_time_limit(0);
|
84 |
|
85 |
update_option('template_settings', $this->template_settings);
|
86 |
|
87 |
+
$this->date = $this->get_formatted_invoice_date( true );
|
88 |
|
89 |
// Go generate
|
90 |
set_time_limit(0);
|
includes/classes/wpi-invoice.php
CHANGED
@@ -101,20 +101,37 @@ if ( ! class_exists( 'WPI_Invoice' ) ) {
|
|
101 |
* Create invoice date
|
102 |
* @return bool|string
|
103 |
*/
|
104 |
-
|
105 |
$date_format = $this->template_settings['invoice_date_format'];
|
106 |
//$date = DateTime::createFromFormat('Y-m-d H:i:s', $this->order->order_date);
|
107 |
//$date = date( $date_format );
|
108 |
|
109 |
if ($date_format != "") {
|
110 |
//$formatted_date = $date->format($date_format);
|
111 |
-
$
|
112 |
} else {
|
113 |
//$formatted_date = $date->format($date, "d-m-Y");
|
114 |
-
$
|
115 |
}
|
116 |
|
117 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
118 |
|
119 |
return $formatted_date;
|
120 |
}
|
@@ -154,11 +171,13 @@ if ( ! class_exists( 'WPI_Invoice' ) ) {
|
|
154 |
$invoice_number_format = $this->template_settings['invoice_format'];
|
155 |
$digit_str = "%0" . $this->template_settings['invoice_number_digits'] . "s";
|
156 |
$this->number = sprintf($digit_str, $this->number);
|
|
|
|
|
157 |
|
158 |
$invoice_number_format = str_replace(
|
159 |
-
array('[prefix]', '[suffix]', '[number]'),
|
160 |
-
array($this->template_settings['invoice_prefix'], $this->template_settings['invoice_suffix'], $this->number),
|
161 |
-
$invoice_number_format);
|
162 |
|
163 |
add_post_meta($this->order->id, '_bewpi_formatted_invoice_number', $invoice_number_format);
|
164 |
|
@@ -250,14 +269,6 @@ if ( ! class_exists( 'WPI_Invoice' ) ) {
|
|
250 |
return $this->formatted_number;
|
251 |
}
|
252 |
|
253 |
-
/**
|
254 |
-
* Getter for formatted date.
|
255 |
-
* @return mixed
|
256 |
-
*/
|
257 |
-
public function get_formatted_date() {
|
258 |
-
return $this->date;
|
259 |
-
}
|
260 |
-
|
261 |
/**
|
262 |
* Gets the year from the WooCommerce order date.
|
263 |
* @return bool|string
|
101 |
* Create invoice date
|
102 |
* @return bool|string
|
103 |
*/
|
104 |
+
public function get_formatted_invoice_date( $add_post_meta = false ) {
|
105 |
$date_format = $this->template_settings['invoice_date_format'];
|
106 |
//$date = DateTime::createFromFormat('Y-m-d H:i:s', $this->order->order_date);
|
107 |
//$date = date( $date_format );
|
108 |
|
109 |
if ($date_format != "") {
|
110 |
//$formatted_date = $date->format($date_format);
|
111 |
+
$this->date = date($date_format);
|
112 |
} else {
|
113 |
//$formatted_date = $date->format($date, "d-m-Y");
|
114 |
+
$this->date = date('d-m-Y');
|
115 |
}
|
116 |
|
117 |
+
if( $add_post_meta )
|
118 |
+
add_post_meta($this->order->id, '_bewpi_invoice_date', $this->date);
|
119 |
+
|
120 |
+
return $this->date;
|
121 |
+
}
|
122 |
+
|
123 |
+
/*
|
124 |
+
* Format the order date and return
|
125 |
+
*/
|
126 |
+
public function get_formatted_order_date() {
|
127 |
+
$order_date = $date = DateTime::createFromFormat('Y-m-d H:i:s', $this->order->order_date);
|
128 |
+
|
129 |
+
if ( !empty ( $this->template_settings['order_date_format'] ) ) {
|
130 |
+
$date_format = $this->template_settings['order_date_format'];
|
131 |
+
$formatted_date = $order_date->format($date_format);
|
132 |
+
} else {
|
133 |
+
$formatted_date = $order_date->format($order_date, "d-m-Y");
|
134 |
+
}
|
135 |
|
136 |
return $formatted_date;
|
137 |
}
|
171 |
$invoice_number_format = $this->template_settings['invoice_format'];
|
172 |
$digit_str = "%0" . $this->template_settings['invoice_number_digits'] . "s";
|
173 |
$this->number = sprintf($digit_str, $this->number);
|
174 |
+
$year = date('Y');
|
175 |
+
$y = date('y');
|
176 |
|
177 |
$invoice_number_format = str_replace(
|
178 |
+
array( '[prefix]', '[suffix]', '[number]', '[Y]', '[y]' ),
|
179 |
+
array( $this->template_settings['invoice_prefix'], $this->template_settings['invoice_suffix'], $this->number, $year, $y ),
|
180 |
+
$invoice_number_format );
|
181 |
|
182 |
add_post_meta($this->order->id, '_bewpi_formatted_invoice_number', $invoice_number_format);
|
183 |
|
269 |
return $this->formatted_number;
|
270 |
}
|
271 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
272 |
/**
|
273 |
* Gets the year from the WooCommerce order date.
|
274 |
* @return bool|string
|
includes/views/templates/invoice-micro.php
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
<html>
|
2 |
<head>
|
3 |
<style>
|
|
|
|
|
|
|
4 |
h1.company-logo {
|
5 |
font-size: 30px;
|
6 |
}
|
@@ -16,6 +19,9 @@
|
|
16 |
table.products th {
|
17 |
border-bottom: 2px solid #A5A5A5;
|
18 |
}
|
|
|
|
|
|
|
19 |
table.products td, table.products th {
|
20 |
padding: 5px;
|
21 |
}
|
@@ -42,14 +48,14 @@
|
|
42 |
.align-left { text-align: left; }
|
43 |
.align-right { text-align: right; }
|
44 |
.company {
|
45 |
-
width: 60%;
|
46 |
-
vertical-align: middle;
|
47 |
margin-bottom: 40px;
|
48 |
-
|
|
|
|
|
49 |
}
|
50 |
.company .info {
|
51 |
-
padding-left: 30px;
|
52 |
text-align: left;
|
|
|
53 |
}
|
54 |
.two-column {
|
55 |
margin-bottom: 40px;
|
@@ -76,7 +82,7 @@
|
|
76 |
.number {
|
77 |
font-size: 16px;
|
78 |
}
|
79 |
-
.
|
80 |
font-size: 12px;
|
81 |
}
|
82 |
.total-amount p {
|
@@ -89,6 +95,10 @@
|
|
89 |
.total-amount, .total-amount h1 {
|
90 |
color: white;
|
91 |
}
|
|
|
|
|
|
|
|
|
92 |
.invoice {
|
93 |
margin-bottom: 20px;
|
94 |
}
|
@@ -123,12 +133,12 @@
|
|
123 |
</head>
|
124 |
<body>
|
125 |
<div id="container">
|
126 |
-
<table class="company">
|
127 |
<tbody>
|
128 |
<tr>
|
129 |
<td class="logo">
|
130 |
-
<?php if( $this->template_settings['company_logo']
|
131 |
-
<img class="company-logo" src="<?php echo $this->template_settings['company_logo']; ?>"
|
132 |
<?php } else { ?>
|
133 |
<h1 class="company-logo"><?php echo $this->template_settings['company_name']; ?></h1>
|
134 |
<?php } ?>
|
@@ -142,10 +152,14 @@
|
|
142 |
<table class="two-column customer">
|
143 |
<tbody>
|
144 |
<tr>
|
145 |
-
<td
|
146 |
-
|
147 |
<?php echo $this->order->get_formatted_billing_address(); ?>
|
148 |
</td>
|
|
|
|
|
|
|
|
|
149 |
</tr>
|
150 |
</tbody>
|
151 |
</table>
|
@@ -154,16 +168,16 @@
|
|
154 |
<tr>
|
155 |
<td class="invoice-details">
|
156 |
<h1 class="title"><?php _e( 'Invoice', $this->textdomain ); ?></h1>
|
157 |
-
<span class="number"
|
158 |
-
<span class="
|
|
|
|
|
159 |
</td>
|
160 |
<td class="total-amount" bgcolor="<?php echo $this->template_settings['color_theme']; ?>">
|
161 |
-
|
162 |
<h1 class="amount"><?php echo wc_price( $this->order->get_total(), array( 'currency' => $this->order->get_order_currency() ) ); ?></h1>
|
163 |
-
<p class="
|
164 |
-
|
165 |
-
</p>
|
166 |
-
</span>
|
167 |
</td>
|
168 |
</tr>
|
169 |
</tbody>
|
@@ -185,10 +199,50 @@
|
|
185 |
</tr>
|
186 |
</thead>
|
187 |
<tbody>
|
188 |
-
<?php foreach( $this->order->get_items( 'line_item' ) as $item ) {
|
189 |
$product = wc_get_product( $item['product_id'] ); ?>
|
190 |
<tr class="product">
|
191 |
-
<td
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
192 |
<?php if( $this->template_settings['show_sku'] ) { ?>
|
193 |
<td><?php echo $product->get_sku(); ?></td>
|
194 |
<?php } ?>
|
1 |
<html>
|
2 |
<head>
|
3 |
<style>
|
4 |
+
div, table, td, tr, tfoot, tbody, thead, span, h1, h2, h3, h4 {
|
5 |
+
/*border: 1px solid black;*/
|
6 |
+
}
|
7 |
h1.company-logo {
|
8 |
font-size: 30px;
|
9 |
}
|
19 |
table.products th {
|
20 |
border-bottom: 2px solid #A5A5A5;
|
21 |
}
|
22 |
+
table.products td{
|
23 |
+
vertical-align: top;
|
24 |
+
}
|
25 |
table.products td, table.products th {
|
26 |
padding: 5px;
|
27 |
}
|
48 |
.align-left { text-align: left; }
|
49 |
.align-right { text-align: right; }
|
50 |
.company {
|
|
|
|
|
51 |
margin-bottom: 40px;
|
52 |
+
}
|
53 |
+
.company .logo {
|
54 |
+
text-align: left;
|
55 |
}
|
56 |
.company .info {
|
|
|
57 |
text-align: left;
|
58 |
+
vertical-align: middle;
|
59 |
}
|
60 |
.two-column {
|
61 |
margin-bottom: 40px;
|
82 |
.number {
|
83 |
font-size: 16px;
|
84 |
}
|
85 |
+
.small-font {
|
86 |
font-size: 12px;
|
87 |
}
|
88 |
.total-amount p {
|
95 |
.total-amount, .total-amount h1 {
|
96 |
color: white;
|
97 |
}
|
98 |
+
div.item-attribute {
|
99 |
+
font-size: 12px;
|
100 |
+
margin-top: 10px;
|
101 |
+
}
|
102 |
.invoice {
|
103 |
margin-bottom: 20px;
|
104 |
}
|
133 |
</head>
|
134 |
<body>
|
135 |
<div id="container">
|
136 |
+
<table class="company two-column">
|
137 |
<tbody>
|
138 |
<tr>
|
139 |
<td class="logo">
|
140 |
+
<?php if( !empty( $this->template_settings['company_logo'] ) ) { ?>
|
141 |
+
<img class="company-logo" src="<?php echo $this->template_settings['company_logo']; ?>"/>
|
142 |
<?php } else { ?>
|
143 |
<h1 class="company-logo"><?php echo $this->template_settings['company_name']; ?></h1>
|
144 |
<?php } ?>
|
152 |
<table class="two-column customer">
|
153 |
<tbody>
|
154 |
<tr>
|
155 |
+
<td>
|
156 |
+
<b>Invoice to</b><br/>
|
157 |
<?php echo $this->order->get_formatted_billing_address(); ?>
|
158 |
</td>
|
159 |
+
<td class="address">
|
160 |
+
<b>Ship to</b><br/>
|
161 |
+
<?php echo $this->order->get_formatted_shipping_address(); ?>
|
162 |
+
</td>
|
163 |
</tr>
|
164 |
</tbody>
|
165 |
</table>
|
168 |
<tr>
|
169 |
<td class="invoice-details">
|
170 |
<h1 class="title"><?php _e( 'Invoice', $this->textdomain ); ?></h1>
|
171 |
+
<span class="number"><?php echo $this->get_formatted_invoice_number(); ?></span><br/>
|
172 |
+
<span class="small-font"><?php echo $this->get_formatted_invoice_date(); ?></span><br/><br/>
|
173 |
+
<span class="small-font"><?php printf( __( 'Order Number %s', $this->textdomain ), $this->order->get_order_number() ); ?></span><br/>
|
174 |
+
<span class="small-font"><?php printf( __( 'Order Date %s', $this->textdomain ), $this->get_formatted_order_date() ); ?></span><br/>
|
175 |
</td>
|
176 |
<td class="total-amount" bgcolor="<?php echo $this->template_settings['color_theme']; ?>">
|
177 |
+
<span>
|
178 |
<h1 class="amount"><?php echo wc_price( $this->order->get_total(), array( 'currency' => $this->order->get_order_currency() ) ); ?></h1>
|
179 |
+
<p class="small-font"><?php echo $this->template_settings['intro_text']; ?></p>
|
180 |
+
</span>
|
|
|
|
|
181 |
</td>
|
182 |
</tr>
|
183 |
</tbody>
|
199 |
</tr>
|
200 |
</thead>
|
201 |
<tbody>
|
202 |
+
<?php foreach( $this->order->get_items( 'line_item' ) as $item_id => $item ) {
|
203 |
$product = wc_get_product( $item['product_id'] ); ?>
|
204 |
<tr class="product">
|
205 |
+
<td>
|
206 |
+
<?php echo $product->get_title(); ?>
|
207 |
+
<?php
|
208 |
+
global $wpdb;
|
209 |
+
|
210 |
+
if ( $metadata = $this->order->has_meta( $item_id ) ) {
|
211 |
+
foreach ( $metadata as $meta ) {
|
212 |
+
|
213 |
+
// Skip hidden core fields
|
214 |
+
if ( in_array( $meta['meta_key'], apply_filters( 'woocommerce_hidden_order_itemmeta', array(
|
215 |
+
'_qty',
|
216 |
+
'_tax_class',
|
217 |
+
'_product_id',
|
218 |
+
'_variation_id',
|
219 |
+
'_line_subtotal',
|
220 |
+
'_line_subtotal_tax',
|
221 |
+
'_line_total',
|
222 |
+
'_line_tax',
|
223 |
+
) ) ) ) {
|
224 |
+
continue;
|
225 |
+
}
|
226 |
+
|
227 |
+
// Skip serialised meta
|
228 |
+
if ( is_serialized( $meta['meta_value'] ) ) {
|
229 |
+
continue;
|
230 |
+
}
|
231 |
+
|
232 |
+
// Get attribute data
|
233 |
+
if ( taxonomy_exists( wc_sanitize_taxonomy_name( $meta['meta_key'] ) ) ) {
|
234 |
+
$term = get_term_by( 'slug', $meta['meta_value'], wc_sanitize_taxonomy_name( $meta['meta_key'] ) );
|
235 |
+
$meta['meta_key'] = wc_attribute_label( wc_sanitize_taxonomy_name( $meta['meta_key'] ) );
|
236 |
+
$meta['meta_value'] = isset( $term->name ) ? $term->name : $meta['meta_value'];
|
237 |
+
} else {
|
238 |
+
$meta['meta_key'] = apply_filters( 'woocommerce_attribute_label', wc_attribute_label( $meta['meta_key'], $_product ), $meta['meta_key'] );
|
239 |
+
}
|
240 |
+
|
241 |
+
echo '<div class="item-attribute"><span style="font-weight: bold;">' . wp_kses_post( rawurldecode( $meta['meta_key'] ) ) . ': </span>' . wp_kses_post( rawurldecode( $meta['meta_value'] ) ) . '</div>';
|
242 |
+
}
|
243 |
+
}
|
244 |
+
?>
|
245 |
+
</td>
|
246 |
<?php if( $this->template_settings['show_sku'] ) { ?>
|
247 |
<td><?php echo $product->get_sku(); ?></td>
|
248 |
<?php } ?>
|
lang/be-woocommerce-pdf-invoices-nl_NL.mo
CHANGED
Binary file
|
lang/be-woocommerce-pdf-invoices-nl_NL.po
CHANGED
@@ -1,419 +1,442 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: WooCommerce PDF Invoices\n"
|
4 |
-
"POT-Creation-Date: 2015-
|
5 |
-
"PO-Revision-Date: 2015-
|
6 |
-
"Last-Translator: \n"
|
7 |
-
"Language-Team: \n"
|
8 |
-
"Language: nl_NL\n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"X-Generator: Poedit 1.7.3\n"
|
13 |
-
"X-Poedit-Basepath: ..\n"
|
14 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
-
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
16 |
-
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
17 |
-
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
18 |
-
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
21 |
-
|
22 |
-
#: admin/classes/woocommerce-pdf-invoices.php:152
|
23 |
-
msgid "General"
|
24 |
-
msgstr "Algemeen"
|
25 |
-
|
26 |
-
#: admin/classes/woocommerce-pdf-invoices.php:153
|
27 |
-
#: admin/classes/wpi-template-settings.php:
|
28 |
-
msgid "Template"
|
29 |
-
msgstr ""
|
30 |
-
|
31 |
-
#: admin/classes/woocommerce-pdf-invoices.php:167
|
32 |
-
msgid "Invoices"
|
33 |
-
msgstr "Facturen"
|
34 |
-
|
35 |
-
#: admin/classes/woocommerce-pdf-invoices.php:262
|
36 |
-
msgid "PDF Invoice"
|
37 |
-
msgstr "PDF Factuur"
|
38 |
-
|
39 |
-
#: admin/classes/woocommerce-pdf-invoices.php:290
|
40 |
-
msgid "Invoiced on:"
|
41 |
-
msgstr "Gefactureerd op:"
|
42 |
-
|
43 |
-
#: admin/classes/woocommerce-pdf-invoices.php:294
|
44 |
-
msgid "Invoice number:"
|
45 |
-
msgstr "Factuurnummer:"
|
46 |
-
|
47 |
-
#: admin/classes/woocommerce-pdf-invoices.php:332
|
48 |
-
msgid "View invoice"
|
49 |
-
msgstr "Toon factuur"
|
50 |
-
|
51 |
-
#: admin/classes/woocommerce-pdf-invoices.php:332
|
52 |
-
msgid "View"
|
53 |
-
msgstr "Bekijk"
|
54 |
-
|
55 |
-
#: admin/classes/woocommerce-pdf-invoices.php:333
|
56 |
-
msgid "Cancel invoice"
|
57 |
-
msgstr "Factuur annuleren"
|
58 |
-
|
59 |
-
#: admin/classes/woocommerce-pdf-invoices.php:333
|
60 |
-
msgid "Cancel"
|
61 |
-
msgstr "Annuleer"
|
62 |
-
|
63 |
-
#: admin/classes/woocommerce-pdf-invoices.php:333
|
64 |
-
msgid "Are you sure to delete the invoice?"
|
65 |
-
msgstr "Weet u zeker dat u de factuur wilt verwijderen?"
|
66 |
-
|
67 |
-
#: admin/classes/woocommerce-pdf-invoices.php:335
|
68 |
-
msgid "Create invoice"
|
69 |
-
msgstr "Maak factuur"
|
70 |
-
|
71 |
-
#: admin/classes/woocommerce-pdf-invoices.php:335
|
72 |
-
msgid "Create"
|
73 |
-
msgstr "Aanmaken"
|
74 |
-
|
75 |
-
#: admin/classes/wpi-general-settings.php:74
|
76 |
-
msgid "General Settings"
|
77 |
-
msgstr "Algemene Opties"
|
78 |
-
|
79 |
-
#: admin/classes/wpi-general-settings.php:75
|
80 |
-
msgid "Attach to Email"
|
81 |
-
msgstr "Voeg toe aan Email"
|
82 |
-
|
83 |
-
#: admin/classes/wpi-general-settings.php:79
|
84 |
-
msgid "Processing order"
|
85 |
-
msgstr "Bestelling wordt verwerkt"
|
86 |
-
|
87 |
-
#: admin/classes/wpi-general-settings.php:83
|
88 |
-
msgid "Completed order"
|
89 |
-
msgstr "Bestelling voltooid"
|
90 |
-
|
91 |
-
#: admin/classes/wpi-general-settings.php:87
|
92 |
-
msgid "Customer invoice"
|
93 |
-
msgstr "Klant factuur"
|
94 |
-
|
95 |
-
#: admin/classes/wpi-general-settings.php:91
|
96 |
-
msgid "Attach to New order Email"
|
97 |
-
msgstr "Voeg toe aan New order Email"
|
98 |
-
|
99 |
-
#: admin/classes/wpi-general-settings.php:92
|
100 |
-
msgid "Automatically send invoice to Google Drive, Egnyte, Dropbox or OneDrive"
|
101 |
-
msgstr "Verzend automatisch naar Google Drive, Egnyte, Dropbox of OneDrive"
|
102 |
-
|
103 |
-
#: admin/classes/wpi-general-settings.php:93
|
104 |
-
msgid "Email It In account"
|
105 |
-
msgstr ""
|
106 |
-
|
107 |
-
#: admin/classes/wpi-general-settings.php:133
|
108 |
-
msgid "For bookkeeping purposes."
|
109 |
-
msgstr "Voor boekhoudkundige doeleinden."
|
110 |
-
|
111 |
-
#: admin/classes/wpi-general-settings.php:146
|
112 |
-
#, php-format
|
113 |
-
msgid "Signup at %s and enter your account below."
|
114 |
-
msgstr "Meld je aan op %s en geef je account onderstaand in."
|
115 |
-
|
116 |
-
#: admin/classes/wpi-general-settings.php:159
|
117 |
-
#, php-format
|
118 |
-
msgid "Enter your %s account."
|
119 |
-
msgstr "Het %s account."
|
120 |
-
|
121 |
-
#: admin/classes/wpi-general-settings.php:184
|
122 |
-
msgid "Invalid type of Email."
|
123 |
-
msgstr "Ongeldig type Email."
|
124 |
-
|
125 |
-
#: admin/classes/wpi-general-settings.php:197
|
126 |
-
#: admin/classes/wpi-general-settings.php:210
|
127 |
-
#: admin/classes/wpi-template-settings.php:
|
128 |
-
msgid "Please don't try to change the values."
|
129 |
-
msgstr "Probeer de waardes niet te wijzigen a.u.b."
|
130 |
-
|
131 |
-
#: admin/classes/wpi-general-settings.php:223
|
132 |
-
msgid "Invalid Email address."
|
133 |
-
msgstr "Ongeldig Emailadres."
|
134 |
-
|
135 |
-
#: admin/classes/wpi-settings.php:92
|
136 |
-
msgid "Allowed tags: "
|
137 |
-
msgstr "Toegestane tags: "
|
138 |
-
|
139 |
-
#: admin/classes/wpi-template-settings.php:
|
140 |
-
msgid "Template Settings"
|
141 |
-
msgstr "Template Opties"
|
142 |
-
|
143 |
-
#: admin/classes/wpi-template-settings.php:
|
144 |
-
msgid "Color theme"
|
145 |
-
msgstr "Kleur thema"
|
146 |
-
|
147 |
-
#: admin/classes/wpi-template-settings.php:
|
148 |
-
msgid "Company name"
|
149 |
-
msgstr "Bedrijfsnaam"
|
150 |
-
|
151 |
-
#: admin/classes/wpi-template-settings.php:
|
152 |
-
msgid "Company logo"
|
153 |
-
msgstr "Bedrijfslogo"
|
154 |
-
|
155 |
-
#: admin/classes/wpi-template-settings.php:
|
156 |
-
msgid "Intro text"
|
157 |
-
msgstr "Introtekst"
|
158 |
-
|
159 |
-
#: admin/classes/wpi-template-settings.php:
|
160 |
-
msgid "Company address"
|
161 |
-
msgstr "Bedrijfsadres"
|
162 |
-
|
163 |
-
#: admin/classes/wpi-template-settings.php:
|
164 |
-
msgid "Company details"
|
165 |
-
msgstr "Algemene bedrijfsgegevens"
|
166 |
-
|
167 |
-
#: admin/classes/wpi-template-settings.php:
|
168 |
-
msgid "Terms & conditions, policies etc."
|
169 |
-
msgstr "Algemene voorwaarden"
|
170 |
-
|
171 |
-
#: admin/classes/wpi-template-settings.php:
|
172 |
-
msgid "Invoice number type"
|
173 |
-
msgstr "Type factuurnummer"
|
174 |
-
|
175 |
-
#: admin/classes/wpi-template-settings.php:
|
176 |
-
msgid "Next invoice number"
|
177 |
-
msgstr "Eerstvolgende factuurnummer"
|
178 |
-
|
179 |
-
#: admin/classes/wpi-template-settings.php:
|
180 |
-
msgid "Number of digits"
|
181 |
-
msgstr "Aantal cijfers"
|
182 |
-
|
183 |
-
#: admin/classes/wpi-template-settings.php:
|
184 |
-
msgid "Invoice number prefix"
|
185 |
-
msgstr "Factuurnummer voorvoegsel"
|
186 |
-
|
187 |
-
#: admin/classes/wpi-template-settings.php:
|
188 |
-
msgid "Invoice number suffix"
|
189 |
-
msgstr "Factuurnummer achtervoegsel"
|
190 |
-
|
191 |
-
#: admin/classes/wpi-template-settings.php:
|
192 |
-
msgid "Invoice number format"
|
193 |
-
msgstr "Factuurnummer format"
|
194 |
-
|
195 |
-
#: admin/classes/wpi-template-settings.php:
|
196 |
-
msgid "Reset on 1st January"
|
197 |
-
msgstr "Reset op 1 januari"
|
198 |
-
|
199 |
-
#: admin/classes/wpi-template-settings.php:
|
200 |
-
msgid "Invoice date format"
|
201 |
-
msgstr "Factuur datumnotatie"
|
202 |
-
|
203 |
-
#: admin/classes/wpi-template-settings.php:
|
204 |
-
msgid "
|
205 |
-
msgstr "
|
206 |
-
|
207 |
-
#: admin/classes/wpi-template-settings.php:
|
208 |
-
msgid "Show
|
209 |
-
msgstr "Toon
|
210 |
-
|
211 |
-
#: admin/classes/wpi-template-settings.php:
|
212 |
-
msgid "Show
|
213 |
-
msgstr "Toon
|
214 |
-
|
215 |
-
#: admin/classes/wpi-template-settings.php:
|
216 |
-
msgid "Show
|
217 |
-
msgstr "Toon
|
218 |
-
|
219 |
-
#: admin/classes/wpi-template-settings.php:
|
220 |
-
msgid "Show
|
221 |
-
msgstr "Toon
|
222 |
-
|
223 |
-
#: admin/classes/wpi-template-settings.php:
|
224 |
-
msgid "Show
|
225 |
-
msgstr "Toon
|
226 |
-
|
227 |
-
#: admin/classes/wpi-template-settings.php:
|
228 |
-
msgid "
|
229 |
-
msgstr "
|
230 |
-
|
231 |
-
#: admin/classes/wpi-template-settings.php:
|
232 |
-
msgid ""
|
233 |
-
"
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
#: admin/classes/wpi-template-settings.php:
|
243 |
-
msgid "
|
244 |
-
msgstr "
|
245 |
-
|
246 |
-
#: admin/classes/wpi-template-settings.php:
|
247 |
-
msgid "
|
248 |
-
msgstr "
|
249 |
-
|
250 |
-
#: admin/classes/wpi-template-settings.php:
|
251 |
-
msgid "
|
252 |
-
msgstr "
|
253 |
-
|
254 |
-
#: admin/classes/wpi-template-settings.php:
|
255 |
-
msgid "
|
256 |
-
msgstr "
|
257 |
-
|
258 |
-
#: admin/classes/wpi-template-settings.php:
|
259 |
-
msgid "
|
260 |
-
msgstr "
|
261 |
-
|
262 |
-
#: admin/classes/wpi-template-settings.php:
|
263 |
-
msgid "
|
264 |
-
msgstr "
|
265 |
-
|
266 |
-
#: admin/classes/wpi-template-settings.php:
|
267 |
-
msgid ""
|
268 |
-
"
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
-
|
285 |
-
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
|
308 |
-
|
309 |
-
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
315 |
-
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
msgid "
|
357 |
-
msgstr "
|
358 |
-
|
359 |
-
#: includes/views/templates/invoice-micro.php:
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
#: includes/views/templates/invoice-micro.php:
|
365 |
-
msgid "
|
366 |
-
msgstr "
|
367 |
-
|
368 |
-
#: includes/views/templates/invoice-micro.php:
|
369 |
-
msgid "
|
370 |
-
msgstr "
|
371 |
-
|
372 |
-
#: includes/views/templates/invoice-micro.php:
|
373 |
-
msgid "
|
374 |
-
msgstr "
|
375 |
-
|
376 |
-
#: includes/views/templates/invoice-micro.php:
|
377 |
-
msgid "
|
378 |
-
msgstr "
|
379 |
-
|
380 |
-
#: includes/views/templates/invoice-micro.php:
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
|
394 |
-
|
395 |
-
|
396 |
-
|
397 |
-
|
398 |
-
|
399 |
-
|
400 |
-
|
401 |
-
|
402 |
-
#~
|
403 |
-
#~
|
404 |
-
#~ "[number]
|
405 |
-
#~
|
406 |
-
|
407 |
-
#~ "
|
408 |
-
|
409 |
-
|
410 |
-
#~
|
411 |
-
|
412 |
-
|
413 |
-
#~
|
414 |
-
|
415 |
-
|
416 |
-
#~
|
417 |
-
|
418 |
-
|
419 |
-
#~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: WooCommerce PDF Invoices\n"
|
4 |
+
"POT-Creation-Date: 2015-04-08 22:39+0100\n"
|
5 |
+
"PO-Revision-Date: 2015-04-08 22:44+0100\n"
|
6 |
+
"Last-Translator: \n"
|
7 |
+
"Language-Team: \n"
|
8 |
+
"Language: nl_NL\n"
|
9 |
+
"MIME-Version: 1.0\n"
|
10 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
+
"Content-Transfer-Encoding: 8bit\n"
|
12 |
+
"X-Generator: Poedit 1.7.3\n"
|
13 |
+
"X-Poedit-Basepath: ..\n"
|
14 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
+
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
|
16 |
+
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
|
17 |
+
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
|
18 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
19 |
+
"X-Poedit-SearchPath-0: .\n"
|
20 |
+
"X-Poedit-SearchPathExcluded-0: *.js\n"
|
21 |
+
|
22 |
+
#: admin/classes/woocommerce-pdf-invoices.php:152
|
23 |
+
msgid "General"
|
24 |
+
msgstr "Algemeen"
|
25 |
+
|
26 |
+
#: admin/classes/woocommerce-pdf-invoices.php:153
|
27 |
+
#: admin/classes/wpi-template-settings.php:105
|
28 |
+
msgid "Template"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: admin/classes/woocommerce-pdf-invoices.php:167
|
32 |
+
msgid "Invoices"
|
33 |
+
msgstr "Facturen"
|
34 |
+
|
35 |
+
#: admin/classes/woocommerce-pdf-invoices.php:262
|
36 |
+
msgid "PDF Invoice"
|
37 |
+
msgstr "PDF Factuur"
|
38 |
+
|
39 |
+
#: admin/classes/woocommerce-pdf-invoices.php:290
|
40 |
+
msgid "Invoiced on:"
|
41 |
+
msgstr "Gefactureerd op:"
|
42 |
+
|
43 |
+
#: admin/classes/woocommerce-pdf-invoices.php:294
|
44 |
+
msgid "Invoice number:"
|
45 |
+
msgstr "Factuurnummer:"
|
46 |
+
|
47 |
+
#: admin/classes/woocommerce-pdf-invoices.php:332
|
48 |
+
msgid "View invoice"
|
49 |
+
msgstr "Toon factuur"
|
50 |
+
|
51 |
+
#: admin/classes/woocommerce-pdf-invoices.php:332
|
52 |
+
msgid "View"
|
53 |
+
msgstr "Bekijk"
|
54 |
+
|
55 |
+
#: admin/classes/woocommerce-pdf-invoices.php:333
|
56 |
+
msgid "Cancel invoice"
|
57 |
+
msgstr "Factuur annuleren"
|
58 |
+
|
59 |
+
#: admin/classes/woocommerce-pdf-invoices.php:333
|
60 |
+
msgid "Cancel"
|
61 |
+
msgstr "Annuleer"
|
62 |
+
|
63 |
+
#: admin/classes/woocommerce-pdf-invoices.php:333
|
64 |
+
msgid "Are you sure to delete the invoice?"
|
65 |
+
msgstr "Weet u zeker dat u de factuur wilt verwijderen?"
|
66 |
+
|
67 |
+
#: admin/classes/woocommerce-pdf-invoices.php:335
|
68 |
+
msgid "Create invoice"
|
69 |
+
msgstr "Maak factuur"
|
70 |
+
|
71 |
+
#: admin/classes/woocommerce-pdf-invoices.php:335
|
72 |
+
msgid "Create"
|
73 |
+
msgstr "Aanmaken"
|
74 |
+
|
75 |
+
#: admin/classes/wpi-general-settings.php:74
|
76 |
+
msgid "General Settings"
|
77 |
+
msgstr "Algemene Opties"
|
78 |
+
|
79 |
+
#: admin/classes/wpi-general-settings.php:75
|
80 |
+
msgid "Attach to Email"
|
81 |
+
msgstr "Voeg toe aan Email"
|
82 |
+
|
83 |
+
#: admin/classes/wpi-general-settings.php:79
|
84 |
+
msgid "Processing order"
|
85 |
+
msgstr "Bestelling wordt verwerkt"
|
86 |
+
|
87 |
+
#: admin/classes/wpi-general-settings.php:83
|
88 |
+
msgid "Completed order"
|
89 |
+
msgstr "Bestelling voltooid"
|
90 |
+
|
91 |
+
#: admin/classes/wpi-general-settings.php:87
|
92 |
+
msgid "Customer invoice"
|
93 |
+
msgstr "Klant factuur"
|
94 |
+
|
95 |
+
#: admin/classes/wpi-general-settings.php:91
|
96 |
+
msgid "Attach to New order Email"
|
97 |
+
msgstr "Voeg toe aan New order Email"
|
98 |
+
|
99 |
+
#: admin/classes/wpi-general-settings.php:92
|
100 |
+
msgid "Automatically send invoice to Google Drive, Egnyte, Dropbox or OneDrive"
|
101 |
+
msgstr "Verzend automatisch naar Google Drive, Egnyte, Dropbox of OneDrive"
|
102 |
+
|
103 |
+
#: admin/classes/wpi-general-settings.php:93
|
104 |
+
msgid "Email It In account"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: admin/classes/wpi-general-settings.php:133
|
108 |
+
msgid "For bookkeeping purposes."
|
109 |
+
msgstr "Voor boekhoudkundige doeleinden."
|
110 |
+
|
111 |
+
#: admin/classes/wpi-general-settings.php:146
|
112 |
+
#, php-format
|
113 |
+
msgid "Signup at %s and enter your account below."
|
114 |
+
msgstr "Meld je aan op %s en geef je account onderstaand in."
|
115 |
+
|
116 |
+
#: admin/classes/wpi-general-settings.php:159
|
117 |
+
#, php-format
|
118 |
+
msgid "Enter your %s account."
|
119 |
+
msgstr "Het %s account."
|
120 |
+
|
121 |
+
#: admin/classes/wpi-general-settings.php:184
|
122 |
+
msgid "Invalid type of Email."
|
123 |
+
msgstr "Ongeldig type Email."
|
124 |
+
|
125 |
+
#: admin/classes/wpi-general-settings.php:197
|
126 |
+
#: admin/classes/wpi-general-settings.php:210
|
127 |
+
#: admin/classes/wpi-template-settings.php:658
|
128 |
+
msgid "Please don't try to change the values."
|
129 |
+
msgstr "Probeer de waardes niet te wijzigen a.u.b."
|
130 |
+
|
131 |
+
#: admin/classes/wpi-general-settings.php:223
|
132 |
+
msgid "Invalid Email address."
|
133 |
+
msgstr "Ongeldig Emailadres."
|
134 |
+
|
135 |
+
#: admin/classes/wpi-settings.php:92
|
136 |
+
msgid "Allowed tags: "
|
137 |
+
msgstr "Toegestane tags: "
|
138 |
+
|
139 |
+
#: admin/classes/wpi-template-settings.php:104
|
140 |
+
msgid "Template Settings"
|
141 |
+
msgstr "Template Opties"
|
142 |
+
|
143 |
+
#: admin/classes/wpi-template-settings.php:106
|
144 |
+
msgid "Color theme"
|
145 |
+
msgstr "Kleur thema"
|
146 |
+
|
147 |
+
#: admin/classes/wpi-template-settings.php:107
|
148 |
+
msgid "Company name"
|
149 |
+
msgstr "Bedrijfsnaam"
|
150 |
+
|
151 |
+
#: admin/classes/wpi-template-settings.php:108
|
152 |
+
msgid "Company logo"
|
153 |
+
msgstr "Bedrijfslogo"
|
154 |
+
|
155 |
+
#: admin/classes/wpi-template-settings.php:109
|
156 |
+
msgid "Intro text"
|
157 |
+
msgstr "Introtekst"
|
158 |
+
|
159 |
+
#: admin/classes/wpi-template-settings.php:110
|
160 |
+
msgid "Company address"
|
161 |
+
msgstr "Bedrijfsadres"
|
162 |
+
|
163 |
+
#: admin/classes/wpi-template-settings.php:111
|
164 |
+
msgid "Company details"
|
165 |
+
msgstr "Algemene bedrijfsgegevens"
|
166 |
+
|
167 |
+
#: admin/classes/wpi-template-settings.php:112
|
168 |
+
msgid "Terms & conditions, policies etc."
|
169 |
+
msgstr "Algemene voorwaarden"
|
170 |
+
|
171 |
+
#: admin/classes/wpi-template-settings.php:113
|
172 |
+
msgid "Invoice number type"
|
173 |
+
msgstr "Type factuurnummer"
|
174 |
+
|
175 |
+
#: admin/classes/wpi-template-settings.php:114
|
176 |
+
msgid "Next invoice number"
|
177 |
+
msgstr "Eerstvolgende factuurnummer"
|
178 |
+
|
179 |
+
#: admin/classes/wpi-template-settings.php:115
|
180 |
+
msgid "Number of digits"
|
181 |
+
msgstr "Aantal cijfers"
|
182 |
+
|
183 |
+
#: admin/classes/wpi-template-settings.php:116
|
184 |
+
msgid "Invoice number prefix"
|
185 |
+
msgstr "Factuurnummer voorvoegsel"
|
186 |
+
|
187 |
+
#: admin/classes/wpi-template-settings.php:117
|
188 |
+
msgid "Invoice number suffix"
|
189 |
+
msgstr "Factuurnummer achtervoegsel"
|
190 |
+
|
191 |
+
#: admin/classes/wpi-template-settings.php:118
|
192 |
+
msgid "Invoice number format"
|
193 |
+
msgstr "Factuurnummer format"
|
194 |
+
|
195 |
+
#: admin/classes/wpi-template-settings.php:119
|
196 |
+
msgid "Reset on 1st January"
|
197 |
+
msgstr "Reset op 1 januari"
|
198 |
+
|
199 |
+
#: admin/classes/wpi-template-settings.php:120
|
200 |
+
msgid "Invoice date format"
|
201 |
+
msgstr "Factuur datumnotatie"
|
202 |
+
|
203 |
+
#: admin/classes/wpi-template-settings.php:121
|
204 |
+
msgid "Order date format"
|
205 |
+
msgstr "Notatie bestellingsdatum"
|
206 |
+
|
207 |
+
#: admin/classes/wpi-template-settings.php:122
|
208 |
+
msgid "Show SKU"
|
209 |
+
msgstr "Toon SKU"
|
210 |
+
|
211 |
+
#: admin/classes/wpi-template-settings.php:123
|
212 |
+
msgid "Show discount"
|
213 |
+
msgstr "Toon korting"
|
214 |
+
|
215 |
+
#: admin/classes/wpi-template-settings.php:124
|
216 |
+
msgid "Show subtotal"
|
217 |
+
msgstr "Toon subtotaal"
|
218 |
+
|
219 |
+
#: admin/classes/wpi-template-settings.php:125
|
220 |
+
msgid "Show tax"
|
221 |
+
msgstr "Toon BTW"
|
222 |
+
|
223 |
+
#: admin/classes/wpi-template-settings.php:126
|
224 |
+
msgid "Show shipping"
|
225 |
+
msgstr "Toon verzendkosten"
|
226 |
+
|
227 |
+
#: admin/classes/wpi-template-settings.php:127
|
228 |
+
msgid "Show customer notes"
|
229 |
+
msgstr "Toon notities klant"
|
230 |
+
|
231 |
+
#: admin/classes/wpi-template-settings.php:165
|
232 |
+
msgid "Color theme of the invoice."
|
233 |
+
msgstr "Kleurthema van de factuur."
|
234 |
+
|
235 |
+
#: admin/classes/wpi-template-settings.php:188
|
236 |
+
msgid ""
|
237 |
+
"Please upload an image less then 200Kb and make sure it's a jpeg, jpg or png."
|
238 |
+
msgstr ""
|
239 |
+
"Upload een afbeelding van maximaal 200Kb en zorg dat het een jpeg, jpg of "
|
240 |
+
"png is."
|
241 |
+
|
242 |
+
#: admin/classes/wpi-template-settings.php:199
|
243 |
+
msgid "Remove logo"
|
244 |
+
msgstr "Verwijder logo"
|
245 |
+
|
246 |
+
#: admin/classes/wpi-template-settings.php:261
|
247 |
+
msgid "WooCommerce order number"
|
248 |
+
msgstr "WooCommerce ordernummer"
|
249 |
+
|
250 |
+
#: admin/classes/wpi-template-settings.php:262
|
251 |
+
msgid "Sequential number"
|
252 |
+
msgstr "Volgnummer"
|
253 |
+
|
254 |
+
#: admin/classes/wpi-template-settings.php:354
|
255 |
+
msgid "Invoice number to use for next invoice."
|
256 |
+
msgstr "Factuurnummer te gebruiken voor de volgende factuur."
|
257 |
+
|
258 |
+
#: admin/classes/wpi-template-settings.php:370
|
259 |
+
msgid "Number of zero digits."
|
260 |
+
msgstr "Aantal nullen."
|
261 |
+
|
262 |
+
#: admin/classes/wpi-template-settings.php:384
|
263 |
+
msgid "Prefix text for the invoice number. Not required."
|
264 |
+
msgstr "Voorvoegsel van het factuurnummer is niet verplicht."
|
265 |
+
|
266 |
+
#: admin/classes/wpi-template-settings.php:398
|
267 |
+
msgid "Suffix text for the invoice number. Not required."
|
268 |
+
msgstr "Achtervoegsel van het factuurnummer is niet verplicht."
|
269 |
+
|
270 |
+
#: admin/classes/wpi-template-settings.php:412
|
271 |
+
#, php-format
|
272 |
+
msgid "Available placeholder are %s %s %s %s and %s. %s is required."
|
273 |
+
msgstr "Beschikbare aanduidingen zijn %s %s %s %s of %s. %s is verplicht."
|
274 |
+
|
275 |
+
#: admin/classes/wpi-template-settings.php:426
|
276 |
+
msgid "Reset on the first of January."
|
277 |
+
msgstr "Reset op de eerste van januari."
|
278 |
+
|
279 |
+
#: admin/classes/wpi-template-settings.php:440
|
280 |
+
#, php-format
|
281 |
+
msgid "%sFormat%s of the date. Examples: %s or %s."
|
282 |
+
msgstr "%sFormat%s van de datum. Bijvoorbeeld: %s of %s."
|
283 |
+
|
284 |
+
#: admin/classes/wpi-template-settings.php:454
|
285 |
+
#, php-format
|
286 |
+
msgid "Order date %sformat%s. Examples: %s or %s."
|
287 |
+
msgstr "Notatie %sbestellingsdatum%s. Voorbeelden: %s of %s."
|
288 |
+
|
289 |
+
#: admin/classes/wpi-template-settings.php:501
|
290 |
+
msgid "Invalid template."
|
291 |
+
msgstr "Ongeldige template."
|
292 |
+
|
293 |
+
#: admin/classes/wpi-template-settings.php:516
|
294 |
+
msgid "Invalid color theme code."
|
295 |
+
msgstr "Ongeldige kleurcode."
|
296 |
+
|
297 |
+
#: admin/classes/wpi-template-settings.php:529
|
298 |
+
msgid "Invalid company name."
|
299 |
+
msgstr "Ongeldige bedsrijfsnaam."
|
300 |
+
|
301 |
+
#: admin/classes/wpi-template-settings.php:557
|
302 |
+
msgid "Invalid input into one of the textarea's."
|
303 |
+
msgstr "Ongeldige invoer in een van de textarea's."
|
304 |
+
|
305 |
+
#: admin/classes/wpi-template-settings.php:568
|
306 |
+
msgid "Invalid type of invoice number."
|
307 |
+
msgstr "Ongeldig type factuurnummer."
|
308 |
+
|
309 |
+
#: admin/classes/wpi-template-settings.php:581
|
310 |
+
msgid "Invalid (next) invoice number."
|
311 |
+
msgstr "Ongeldig (eerstvolgend) factuurnummer."
|
312 |
+
|
313 |
+
#: admin/classes/wpi-template-settings.php:602
|
314 |
+
msgid "Invalid invoice number digits."
|
315 |
+
msgstr "Ongeldige factuurnummer cijfers."
|
316 |
+
|
317 |
+
#: admin/classes/wpi-template-settings.php:624
|
318 |
+
msgid "The [number] placeholder is required as invoice number format."
|
319 |
+
msgstr "De aanduiding [number] is vereist."
|
320 |
+
|
321 |
+
#: admin/classes/wpi-template-settings.php:631
|
322 |
+
msgid "Invalid invoice number format."
|
323 |
+
msgstr "Ongeldig factuurnummer format."
|
324 |
+
|
325 |
+
#: admin/classes/wpi-template-settings.php:669
|
326 |
+
msgid "Invalid date format."
|
327 |
+
msgstr "Ongeldige datumnotatie."
|
328 |
+
|
329 |
+
#: admin/classes/wpi-template-settings.php:698
|
330 |
+
msgid "File is invalid and contains either '..' or './'."
|
331 |
+
msgstr "Bestand is niet valide en bevat ofwel '..' of './'."
|
332 |
+
|
333 |
+
#: admin/classes/wpi-template-settings.php:705
|
334 |
+
msgid "File is invalid and contains ':' after the first character."
|
335 |
+
msgstr "Bestand is niet valide en bevat ':' na het eerste teken."
|
336 |
+
|
337 |
+
#: admin/classes/wpi-template-settings.php:714
|
338 |
+
msgid "Please upload image with extension jpg, jpeg or png."
|
339 |
+
msgstr "Gelieve te uploaden een afbeelding met extensie jpg, jpeg of png."
|
340 |
+
|
341 |
+
#: includes/classes/wpi-invoice.php:213
|
342 |
+
msgid "Customer note"
|
343 |
+
msgstr "Opmerking klant"
|
344 |
+
|
345 |
+
#: includes/classes/wpi-invoice.php:226
|
346 |
+
#, php-format
|
347 |
+
msgid "%sPayment%s via"
|
348 |
+
msgstr "%sBetaling%s met"
|
349 |
+
|
350 |
+
#: includes/views/templates/invoice-micro.php:170
|
351 |
+
msgid "Invoice"
|
352 |
+
msgstr "Factuur"
|
353 |
+
|
354 |
+
#: includes/views/templates/invoice-micro.php:173
|
355 |
+
#, php-format
|
356 |
+
msgid "Order Number %s"
|
357 |
+
msgstr "Bestelnummer %s"
|
358 |
+
|
359 |
+
#: includes/views/templates/invoice-micro.php:174
|
360 |
+
#, php-format
|
361 |
+
msgid "Order Date %s"
|
362 |
+
msgstr "Besteldatum: %s"
|
363 |
+
|
364 |
+
#: includes/views/templates/invoice-micro.php:188
|
365 |
+
msgid "Description"
|
366 |
+
msgstr "Beschrijving"
|
367 |
+
|
368 |
+
#: includes/views/templates/invoice-micro.php:192
|
369 |
+
msgid "SKU"
|
370 |
+
msgstr "Productcode"
|
371 |
+
|
372 |
+
#: includes/views/templates/invoice-micro.php:196
|
373 |
+
msgid "Quantity"
|
374 |
+
msgstr "Aantal"
|
375 |
+
|
376 |
+
#: includes/views/templates/invoice-micro.php:197
|
377 |
+
msgid "Unit price"
|
378 |
+
msgstr "Prijs per stuk"
|
379 |
+
|
380 |
+
#: includes/views/templates/invoice-micro.php:198
|
381 |
+
#: includes/views/templates/invoice-micro.php:298
|
382 |
+
msgid "Total"
|
383 |
+
msgstr "Totaal"
|
384 |
+
|
385 |
+
#: includes/views/templates/invoice-micro.php:267
|
386 |
+
msgid "Discount"
|
387 |
+
msgstr "Korting"
|
388 |
+
|
389 |
+
#: includes/views/templates/invoice-micro.php:275
|
390 |
+
msgid "Shipping"
|
391 |
+
msgstr "Verzending"
|
392 |
+
|
393 |
+
#: includes/views/templates/invoice-micro.php:283
|
394 |
+
msgid "Subtotal"
|
395 |
+
msgstr "Subtotaal"
|
396 |
+
|
397 |
+
#: includes/views/templates/invoice-micro.php:291
|
398 |
+
msgid "Tax"
|
399 |
+
msgstr "BTW"
|
400 |
+
|
401 |
+
#~ msgid ""
|
402 |
+
#~ "Use [prefix], [suffix] and [number] as placeholders. [number] is required."
|
403 |
+
#~ msgstr ""
|
404 |
+
#~ "Gebruik [prefix], [suffix] en [number] als aanduidingen. [number] is "
|
405 |
+
#~ "verplicht."
|
406 |
+
|
407 |
+
#~ msgid "Signup at %s and enter your account beyond."
|
408 |
+
#~ msgstr "Meld je aan op %s en vul je account onderstaand in."
|
409 |
+
|
410 |
+
#~ msgid "%sFormat%s of the date. Examples: %s or %s"
|
411 |
+
#~ msgstr "%sFormat%s van de datum. Bijvoorbeeld: %s of %s"
|
412 |
+
|
413 |
+
#~ msgid "Show invoice"
|
414 |
+
#~ msgstr "Toon factuur"
|
415 |
+
|
416 |
+
#~ msgid "%sFormat%s of the date."
|
417 |
+
#~ msgstr "%sFormat%s van de datum."
|
418 |
+
|
419 |
+
#~ msgid "Use [prefix], [suffix] and [number] as placeholders."
|
420 |
+
#~ msgstr "Gebruik [suffix], [prefix] en [number] als aanduidingen."
|
421 |
+
|
422 |
+
#~ msgid "Choose the color witch fits your company."
|
423 |
+
#~ msgstr "Kies uw bedrijfskleur."
|
424 |
+
|
425 |
+
#~ msgid ""
|
426 |
+
#~ "Choose the format for the invoice number. Use [prefix], [suffix] and "
|
427 |
+
#~ "[number] as placeholders."
|
428 |
+
#~ msgstr ""
|
429 |
+
#~ "Kies het formaat voor het factuurnummer. Gebruik [prefix], [suffix] en "
|
430 |
+
#~ "[number] als aanduidingen."
|
431 |
+
|
432 |
+
#~ msgid "Text to greet, congratulate or thank the customer. "
|
433 |
+
#~ msgstr "Tekst om de klant te groeten, te feliciteren of te bedanken. "
|
434 |
+
|
435 |
+
#~ msgid "Some text"
|
436 |
+
#~ msgstr "De vertaling werkt!!!!"
|
437 |
+
|
438 |
+
#~ msgid "Text to greet, congratulate or thank the customer."
|
439 |
+
#~ msgstr "Tekst om de klant te begroeten, te bedanken of te feliciteren."
|
440 |
+
|
441 |
+
#~ msgid "Start all over on the first of January."
|
442 |
+
#~ msgstr "Opnieuw beginnen op de eerste van januari."
|
lib/mpdf/config_fonts.php
CHANGED
@@ -96,6 +96,11 @@ $this->fontdata = array(
|
|
96 |
'B' => "OpenSans-Bold.ttf",
|
97 |
'I' => "OpenSans-Italic.ttf",
|
98 |
),
|
|
|
|
|
|
|
|
|
|
|
99 |
);
|
100 |
|
101 |
|
96 |
'B' => "OpenSans-Bold.ttf",
|
97 |
'I' => "OpenSans-Italic.ttf",
|
98 |
),
|
99 |
+
"lato" => array(
|
100 |
+
'R' => "Lato-Regular.ttf",
|
101 |
+
'B' => "Lato-Bold.ttf",
|
102 |
+
'I' => "Lato-Italic.ttf",
|
103 |
+
),
|
104 |
);
|
105 |
|
106 |
|
lib/mpdf/ttfonts/Lato-Bold.ttf
ADDED
Binary file
|
lib/mpdf/ttfonts/Lato-Italic.ttf
ADDED
Binary file
|
lib/mpdf/ttfonts/Lato-Regular.ttf
ADDED
Binary file
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link:
|
|
4 |
Tags: woocommerce pdf invoices, invoice, generate, pdf, woocommerce, attachment, email, completed order, customer invoice, processing order, attach, automatic, vat, rate, sequential, number
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.1.1
|
7 |
-
Stable tag: 2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -37,7 +37,7 @@ If you want to add code to the source code, report an issue or request an enhanc
|
|
37 |
|
38 |
= Translating =
|
39 |
|
40 |
-
Contribute a translation on [GitHub](https://github.com/baselbers/woocommerce-pdf-invoices)
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
@@ -64,6 +64,16 @@ The manual installation method involves downloading our plugin and uploading it
|
|
64 |
|
65 |
== Changelog ==
|
66 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
= 2.0.6 - April 3, 2015 =
|
68 |
|
69 |
- Fixed: Displays wrong unit price for variation products
|
4 |
Tags: woocommerce pdf invoices, invoice, generate, pdf, woocommerce, attachment, email, completed order, customer invoice, processing order, attach, automatic, vat, rate, sequential, number
|
5 |
Requires at least: 3.5
|
6 |
Tested up to: 4.1.1
|
7 |
+
Stable tag: 2.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
37 |
|
38 |
= Translating =
|
39 |
|
40 |
+
Contribute a translation on [GitHub](https://github.com/baselbers/woocommerce-pdf-invoices).
|
41 |
|
42 |
== Screenshots ==
|
43 |
|
64 |
|
65 |
== Changelog ==
|
66 |
|
67 |
+
= 2.1.0 - April 8, 2015 =
|
68 |
+
|
69 |
+
- Added: Variable products attributes on template
|
70 |
+
- Added: Shipping address on template
|
71 |
+
- Added: Order number and order date on template
|
72 |
+
- Added: Option to add the year to the invoice number
|
73 |
+
- Added: Option to change order date format
|
74 |
+
- Fixed: Header CSS on template
|
75 |
+
- Improved: Dutch language file
|
76 |
+
|
77 |
= 2.0.6 - April 3, 2015 =
|
78 |
|
79 |
- Fixed: Displays wrong unit price for variation products
|