WooCommerce PDF Invoices & Packing Slips - Version 1.3.0

Version Description

  • Feature: Added 'status' panel for better problem diagnosis
  • Feature: Order & Cart, & total discounts can now be called separately with order_discount()
  • Tweak: split create & get invoice number calls to prevent slow database calls from causing number skipping
  • Translations: Added Romanian (Thanks Leonardo!)
  • Translations: Added Slovak (Thanks Oleg!)
Download this release

Release Info

Developer pomegranate
Plugin Icon 128x128 WooCommerce PDF Invoices & Packing Slips
Version 1.3.0
Comparing to
See all releases

Code changes from version 1.2.13 to 1.3.0

includes/class-wcpdf-export.php CHANGED
@@ -53,6 +53,9 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
53
  die('Template not found! Check if the following file exists: <pre>'.$template.'</pre><br/>');
54
  }
55
 
 
 
 
56
  $output_html[$order_id] = $this->get_template($template);
57
 
58
  // store meta to be able to check if an invoice for an order has been created already
@@ -278,11 +281,13 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
278
  $attachments[] = $pdf_path;
279
  }
280
 
 
 
281
  return $attachments;
282
  }
283
 
284
- public function get_invoice_number( $order_id ) {
285
- // get invoice number from post meta
286
  $invoice_number = get_post_meta( $order_id, '_wcpdf_invoice_number', true );
287
 
288
  // add invoice number if it doesn't exist
@@ -306,6 +311,16 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
306
  update_option( 'wpo_wcpdf_template_settings', $template_settings );
307
  }
308
 
 
 
 
 
 
 
 
 
 
 
309
  return apply_filters( 'wpo_wcpdf_invoice_number', $invoice_number, $this->order->get_order_number(), $this->order->id, date_i18n( get_option( 'date_format' ), strtotime( $this->order->order_date ) ) );
310
  }
311
 
@@ -331,7 +346,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
331
  */
332
  public function get_template( $file ) {
333
  ob_start();
334
- if (file_exists($file)) {
335
  include($file);
336
  }
337
  return ob_get_clean();
@@ -362,25 +377,28 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
362
  // Set the id
363
  $data['product_id'] = $item['product_id'];
364
  $data['variation_id'] = $item['variation_id'];
365
-
366
  // Set item name
367
  $data['name'] = $item['name'];
368
 
369
  // Set item quantity
370
  $data['quantity'] = $item['qty'];
371
 
372
- // Set the line total (=before discount)
373
  $data['line_total'] = $this->wc_price( $item['line_total'] );
 
374
  $data['line_tax'] = $this->wc_price( $item['line_tax'] );
 
375
  $data['tax_rates'] = $this->get_tax_rate( $item['tax_class'], $item['line_total'], $item['line_tax'] );
376
 
377
- // Set the line subtotal
378
  $data['line_subtotal'] = $this->wc_price( $item['line_subtotal'] );
379
  $data['line_subtotal_tax'] = $this->wc_price( $item['line_subtotal_tax'] );
380
  $data['ex_price'] = $this->get_formatted_item_price ( $item, 'total', 'excl' );
381
  $data['price'] = $this->get_formatted_item_price ( $item, 'total' );
382
 
383
  // Calculate the single price with the same rules as the formatted line subtotal (!)
 
384
  $data['ex_single_price'] = $this->get_formatted_item_price ( $item, 'single', 'excl' );
385
  $data['single_price'] = $this->get_formatted_item_price ( $item, 'single' );
386
 
@@ -389,7 +407,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
389
  $data['meta'] = $meta->display( false, true );
390
 
391
  // Pass complete item array
392
- $data['item'] = $item;
393
 
394
  // Create the product to display more info
395
  $data['product'] = null;
@@ -531,15 +549,15 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
531
  return;
532
  }
533
 
534
- /**
535
- * Returns the main product image ID
536
  * Adapted from the WC_Product class
537
- *
538
- * @access public
539
- * @return string
540
- */
541
- public function get_thumbnail_id ( $product_id ) {
542
- global $woocommerce;
543
 
544
  if ( has_post_thumbnail( $product_id ) ) {
545
  $thumbnail_id = get_post_thumbnail_id ( $product_id );
@@ -550,7 +568,7 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Export' ) ) {
550
  }
551
 
552
  return $thumbnail_id;
553
- }
554
 
555
  }
556
 
53
  die('Template not found! Check if the following file exists: <pre>'.$template.'</pre><br/>');
54
  }
55
 
56
+ // Set the invoice number
57
+ $this->set_invoice_number( $order_id );
58
+
59
  $output_html[$order_id] = $this->get_template($template);
60
 
61
  // store meta to be able to check if an invoice for an order has been created already
281
  $attachments[] = $pdf_path;
282
  }
283
 
284
+ do_action( 'wpo_wcpdf_email_attachment', $pdf_path );
285
+
286
  return $attachments;
287
  }
288
 
289
+ public function set_invoice_number( $order_id ) {
290
+ // first check: get invoice number from post meta
291
  $invoice_number = get_post_meta( $order_id, '_wcpdf_invoice_number', true );
292
 
293
  // add invoice number if it doesn't exist
311
  update_option( 'wpo_wcpdf_template_settings', $template_settings );
312
  }
313
 
314
+ // store invoice_number in class object
315
+ $this->invoice_number = $invoice_number;
316
+
317
+ return $invoice_number;
318
+ }
319
+
320
+ public function get_invoice_number( $order_id ) {
321
+ // get invoice number from post meta
322
+ $invoice_number = get_post_meta( $order_id, '_wcpdf_invoice_number', true );
323
+
324
  return apply_filters( 'wpo_wcpdf_invoice_number', $invoice_number, $this->order->get_order_number(), $this->order->id, date_i18n( get_option( 'date_format' ), strtotime( $this->order->order_date ) ) );
325
  }
326
 
346
  */
347
  public function get_template( $file ) {
348
  ob_start();
349
+ if (file_exists($file)) {
350
  include($file);
351
  }
352
  return ob_get_clean();
377
  // Set the id
378
  $data['product_id'] = $item['product_id'];
379
  $data['variation_id'] = $item['variation_id'];
380
+
381
  // Set item name
382
  $data['name'] = $item['name'];
383
 
384
  // Set item quantity
385
  $data['quantity'] = $item['qty'];
386
 
387
+ // Set the line total (=after discount)
388
  $data['line_total'] = $this->wc_price( $item['line_total'] );
389
+ $data['single_line_total'] = $this->wc_price( $item['line_total'] / $item['qty'] );
390
  $data['line_tax'] = $this->wc_price( $item['line_tax'] );
391
+ $data['single_line_tax'] = $this->wc_price( $item['line_tax'] / $item['qty'] );
392
  $data['tax_rates'] = $this->get_tax_rate( $item['tax_class'], $item['line_total'], $item['line_tax'] );
393
 
394
+ // Set the line subtotal (=before discount)
395
  $data['line_subtotal'] = $this->wc_price( $item['line_subtotal'] );
396
  $data['line_subtotal_tax'] = $this->wc_price( $item['line_subtotal_tax'] );
397
  $data['ex_price'] = $this->get_formatted_item_price ( $item, 'total', 'excl' );
398
  $data['price'] = $this->get_formatted_item_price ( $item, 'total' );
399
 
400
  // Calculate the single price with the same rules as the formatted line subtotal (!)
401
+ // = before discount
402
  $data['ex_single_price'] = $this->get_formatted_item_price ( $item, 'single', 'excl' );
403
  $data['single_price'] = $this->get_formatted_item_price ( $item, 'single' );
404
 
407
  $data['meta'] = $meta->display( false, true );
408
 
409
  // Pass complete item array
410
+ $data['item'] = $item;
411
 
412
  // Create the product to display more info
413
  $data['product'] = null;
549
  return;
550
  }
551
 
552
+ /**
553
+ * Returns the main product image ID
554
  * Adapted from the WC_Product class
555
+ *
556
+ * @access public
557
+ * @return string
558
+ */
559
+ public function get_thumbnail_id ( $product_id ) {
560
+ global $woocommerce;
561
 
562
  if ( has_post_thumbnail( $product_id ) ) {
563
  $thumbnail_id = get_post_thumbnail_id ( $product_id );
568
  }
569
 
570
  return $thumbnail_id;
571
+ }
572
 
573
  }
574
 
includes/class-wcpdf-settings.php CHANGED
@@ -78,24 +78,27 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
78
  }
79
 
80
  public function settings_page() {
 
 
 
 
 
 
81
  $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
82
  ?>
83
 
84
  <div class="wrap">
85
  <div class="icon32" id="icon-options-general"><br /></div>
86
  <h2><?php _e( 'WooCommerce PDF Invoices', 'wpo_wcpdf' ); ?></h2>
87
- <h2 class="nav-tab-wrapper">
88
- <a href="?page=wpo_wcpdf_options_page&tab=general" class="nav-tab <?php echo $active_tab == 'general' ? 'nav-tab-active' : ''; ?>"><?php _e('General','wpo_wcpdf') ?></a>
89
- <a href="?page=wpo_wcpdf_options_page&tab=template" class="nav-tab <?php echo $active_tab == 'template' ? 'nav-tab-active' : ''; ?>"><?php _e('Template','wpo_wcpdf') ?></a>
 
 
 
90
  </h2>
91
 
92
- <?php
93
- $memory = function_exists('wc_let_to_num')?wc_let_to_num( WP_MEMORY_LIMIT ):woocommerce_let_to_num( WP_MEMORY_LIMIT );
94
-
95
- if ( $memory < 67108864 ) {
96
- echo '<div style="border: 1px solid #ccc; border-radius: 5px; padding: 10px; margin-top: 15px; background-color: #eee;">' . sprintf( __( 'Your WP Memory Limit is currently set to %s - We recommend setting it to at least 64MB (128MB for optimal performance). See: <a href="%s">Increasing memory allocated to PHP</a>', 'wpo_wcpdf' ), size_format( $memory ), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP' ) . '</div>';
97
- }
98
- ?>
99
 
100
  <?php if (!class_exists('WooCommerce_PDF_IPS_Templates')) {
101
  $template_link = '<a href="https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/" target="_blank">wpovernight.com</a>';
@@ -107,34 +110,35 @@ if ( ! class_exists( 'WooCommerce_PDF_Invoices_Settings' ) ) {
107
  <?php printf( __("For custom templates, contact us at %s.", 'wpo_wcpdf'), $email_link );?>
108
  </div>
109
 
110
- <?php } ?>
111
 
 
 
 
 
112
  <form method="post" action="options.php">
113
  <?php
114
- switch ($active_tab) {
115
- case 'general':
116
- settings_fields( 'wpo_wcpdf_general_settings' );
117
- do_settings_sections( 'wpo_wcpdf_general_settings' );
118
- break;
119
- case 'template':
120
- settings_fields( 'wpo_wcpdf_template_settings' );
121
- do_settings_sections( 'wpo_wcpdf_template_settings' );
122
- break;
123
- default:
124
- settings_fields( 'wpo_wcpdf_general_settings' );
125
- do_settings_sections( 'wpo_wcpdf_general_settings' );
126
- break;
127
- }
128
 
129
  submit_button();
130
  ?>
131
 
132
  </form>
 
 
 
133
 
134
  </div>
135
 
136
  <?php
137
  }
 
 
 
 
 
 
138
 
139
  /**
140
  * User settings.
78
  }
79
 
80
  public function settings_page() {
81
+ $settings_tabs = apply_filters( 'wpo_wcpdf_settings_tabs', array (
82
+ 'general' => __('General','wpo_wcpdf'),
83
+ 'template' => __('Template','wpo_wcpdf'),
84
+ )
85
+ );
86
+
87
  $active_tab = isset( $_GET[ 'tab' ] ) ? $_GET[ 'tab' ] : 'general';
88
  ?>
89
 
90
  <div class="wrap">
91
  <div class="icon32" id="icon-options-general"><br /></div>
92
  <h2><?php _e( 'WooCommerce PDF Invoices', 'wpo_wcpdf' ); ?></h2>
93
+ <h2 class="nav-tab-wrapper">
94
+ <?php foreach ($settings_tabs as $tab_slug => $tab_title ) {
95
+ printf('<a href="?page=wpo_wcpdf_options_page&tab=%1$s" class="nav-tab %2$s">%3$s</a>', $tab_slug, (($active_tab == $tab_slug) ? 'nav-tab-active' : ''), $tab_title);
96
+ }
97
+ ?>
98
+ <a href="?page=wpo_wcpdf_options_page&tab=status" class="nav-tab <?php echo (($active_tab == 'status') ? 'nav-tab-active' : ''); ?>"><?php _e('Status','wpo_wcpdf'); ?></a>
99
  </h2>
100
 
101
+ <?php do_action( 'wpo_wcpdf_before_settings_page', $active_tab ); ?>
 
 
 
 
 
 
102
 
103
  <?php if (!class_exists('WooCommerce_PDF_IPS_Templates')) {
104
  $template_link = '<a href="https://wpovernight.com/downloads/woocommerce-pdf-invoices-packing-slips-premium-templates/" target="_blank">wpovernight.com</a>';
110
  <?php printf( __("For custom templates, contact us at %s.", 'wpo_wcpdf'), $email_link );?>
111
  </div>
112
 
113
+ <?php }
114
 
115
+ if ( $active_tab=='status' ) {
116
+ $this->status_page();
117
+ } else {
118
+ ?>
119
  <form method="post" action="options.php">
120
  <?php
121
+ settings_fields( 'wpo_wcpdf_'.$active_tab.'_settings' );
122
+ do_settings_sections( 'wpo_wcpdf_'.$active_tab.'_settings' );
 
 
 
 
 
 
 
 
 
 
 
 
123
 
124
  submit_button();
125
  ?>
126
 
127
  </form>
128
+ <?php
129
+ }
130
+ do_action( 'wpo_wcpdf_after_settings_page', $active_tab ); ?>
131
 
132
  </div>
133
 
134
  <?php
135
  }
136
+
137
+ public function status_page() {
138
+ ?>
139
+ <?php include('dompdf-status.php'); ?>
140
+ <?php
141
+ }
142
 
143
  /**
144
  * User settings.
includes/dompdf-status.php ADDED
@@ -0,0 +1,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <h3 id="system">System Configuration</h3>
2
+
3
+ <?php
4
+ require_once(WooCommerce_PDF_Invoices::$plugin_path."lib/dompdf/dompdf_config.inc.php");
5
+
6
+ $memory_limit = function_exists('wc_let_to_num')?wc_let_to_num( WP_MEMORY_LIMIT ):woocommerce_let_to_num( WP_MEMORY_LIMIT );
7
+
8
+ $server_configs = array(
9
+ "PHP Version" => array(
10
+ "required" => "5.0",
11
+ "value" => phpversion(),
12
+ "result" => version_compare(phpversion(), "5.0"),
13
+ ),
14
+ "DOMDocument extension" => array(
15
+ "required" => true,
16
+ "value" => phpversion("DOM"),
17
+ "result" => class_exists("DOMDocument"),
18
+ ),
19
+ "PCRE" => array(
20
+ "required" => true,
21
+ "value" => phpversion("pcre"),
22
+ "result" => function_exists("preg_match") && @preg_match("/./u", "a"),
23
+ "failure" => "PCRE is required with Unicode support (the \"u\" modifier)",
24
+ ),
25
+ "Zlib" => array(
26
+ "required" => true,
27
+ "value" => phpversion("zlib"),
28
+ "result" => function_exists("gzcompress"),
29
+ "fallback" => "Recommended to compress PDF documents",
30
+ ),
31
+ "MBString extension" => array(
32
+ "required" => true,
33
+ "value" => phpversion("mbstring"),
34
+ "result" => function_exists("mb_send_mail"), // Should never be reimplemented in dompdf
35
+ "fallback" => "Recommended, will use fallback functions",
36
+ ),
37
+ "GD" => array(
38
+ "required" => true,
39
+ "value" => phpversion("gd"),
40
+ "result" => function_exists("imagecreate"),
41
+ "fallback" => "Required if you have images in your documents",
42
+ ),
43
+ "opcache" => array(
44
+ "required" => "For better performances",
45
+ "value" => null,
46
+ "result" => false,
47
+ "fallback" => "Recommended for better performances",
48
+ ),
49
+ "GMagick or IMagick" => array(
50
+ "required" => "Better with transparent PNG images",
51
+ "value" => null,
52
+ "result" => extension_loaded("gmagick") || extension_loaded("imagick"),
53
+ "fallback" => "Recommended for better performances",
54
+ ),
55
+ "WP Memory Limit" => array(
56
+ "required" => 'Recommended: 64MB (128MB for optimal performance)<br/>See: <a href="http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP">Increasing memory allocated to PHP</a>',
57
+ "value" => WP_MEMORY_LIMIT,
58
+ "result" => $memory_limit > 67108864,
59
+ ),
60
+
61
+ );
62
+
63
+ if (($xc = extension_loaded("xcache")) || ($apc = extension_loaded("apc")) || ($zop = extension_loaded("Zend OPcache")) || ($op = extension_loaded("opcache"))) {
64
+ $server_configs["opcache"]["result"] = true;
65
+ $server_configs["opcache"]["value"] = (
66
+ $xc ? "XCache ".phpversion("xcache") : (
67
+ $apc ? "APC ".phpversion("apc") : (
68
+ $zop ? "Zend OPCache ".phpversion("Zend OPcache") : "PHP OPCache ".phpversion("opcache")
69
+ )
70
+ )
71
+ );
72
+ }
73
+ if (($gm = extension_loaded("gmagick")) || ($im = extension_loaded("imagick"))) {
74
+ $server_configs["GMagick or IMagick"]["value"] = ($im ? "IMagick ".phpversion("imagick") : "GMagick ".phpversion("gmagick"));
75
+ }
76
+
77
+ ?>
78
+
79
+ <table cellspacing="1px" cellpadding="4px" style="background-color: white; padding: 5px; border: 1px solid #ccc;">
80
+ <tr>
81
+ <th align="left">&nbsp;</th>
82
+ <th align="left">Required</th>
83
+ <th align="left">Present</th>
84
+ </tr>
85
+
86
+ <?php foreach($server_configs as $label => $server_config) {
87
+ if ($server_config["result"]) {
88
+ $background = "#9e4";
89
+ $color = "black";
90
+ } elseif (isset($server_config["fallback"])) {
91
+ $background = "#FCC612";
92
+ $color = "black";
93
+ } else {
94
+ $background = "#f43";
95
+ $color = "white";
96
+ }
97
+ ?>
98
+ <tr>
99
+ <td class="title"><?php echo $label; ?></td>
100
+ <td><?php echo ($server_config["required"] === true ? "Yes" : $server_config["required"]); ?></td>
101
+ <td style="background-color:<?php echo $background; ?>; color:<?php echo $color; ?>">
102
+ <?php
103
+ echo $server_config["value"];
104
+ if ($server_config["result"] && !$server_config["value"]) echo "Yes";
105
+ if (!$server_config["result"]) {
106
+ if (isset($server_config["fallback"])) {
107
+ echo "<div>No. ".$server_config["fallback"]."</div>";
108
+ }
109
+ if (isset($server_config["failure"])) {
110
+ echo "<div>".$server_config["failure"]."</div>";
111
+ }
112
+ }
113
+ ?>
114
+ </td>
115
+ </tr>
116
+ <?php } ?>
117
+
118
+ </table>
119
+
120
+ <?php
121
+ $permissions = array(
122
+ 'DOMPDF_FONT_DIR' => array (
123
+ 'description' => 'Directory containing fonts loaded into DOMPDF',
124
+ 'value' => DOMPDF_FONT_DIR,
125
+ 'status' => (is_writable(DOMPDF_FONT_DIR) ? "ok" : "failed"),
126
+ 'status_message' => (is_writable(DOMPDF_FONT_DIR) ? "Writable" : "Not writable"),
127
+ ),
128
+ 'DOMPDF_FONT_CACHE' => array (
129
+ 'description' => 'Font metrics cache (used mainly by CPDF)',
130
+ 'value' => DOMPDF_FONT_CACHE,
131
+ 'status' => (is_writable(DOMPDF_FONT_CACHE) ? "ok" : "failed"),
132
+ 'status_message' => (is_writable(DOMPDF_FONT_CACHE) ? "Writable" : "Not writable"),
133
+ ),
134
+ 'DOMPDF_TEMP_DIR' => array (
135
+ 'description' => 'Temporary PDF engine folder',
136
+ 'value' => DOMPDF_TEMP_DIR,
137
+ 'status' => (is_writable(DOMPDF_TEMP_DIR) ? "ok" : "failed"),
138
+ 'status_message' => (is_writable(DOMPDF_TEMP_DIR) ? "Writable" : "Not writable"),
139
+ ),
140
+ 'DOMPDF_ENABLE_REMOTE' => array (
141
+ 'description' => 'Allow remote stylesheets and images',
142
+ 'value' => DOMPDF_ENABLE_REMOTE,
143
+ 'status' => (ini_get("allow_url_fopen")) ? "ok" : "failed",
144
+ 'status_message' => (ini_get("allow_url_fopen")) ? "allow_url_fopen enabled" : "allow_url_fopen disabled",
145
+ ),
146
+ 'WCPDF_TEMP_DIR' => array (
147
+ 'description' => 'Temporary plugin folder',
148
+ 'value' => WooCommerce_PDF_Invoices::$plugin_path . 'tmp/',
149
+ 'status' => (is_writable(WooCommerce_PDF_Invoices::$plugin_path) ? "ok" : "failed"),
150
+ 'status_message' => (is_writable(WooCommerce_PDF_Invoices::$plugin_path) ? "Writable" : "Not writable"),
151
+ ),
152
+ );
153
+
154
+ ?>
155
+ <br />
156
+ <h3 id="system">Permissions</h3>
157
+ <table cellspacing="1px" cellpadding="4px" style="background-color: white; padding: 5px; border: 1px solid #ccc;">
158
+ <tr>
159
+ <th align="left">Description</th>
160
+ <th align="left">Value</th>
161
+ <th align="left">Status</th>
162
+ </tr>
163
+ <?php
164
+ foreach ($permissions as $permission) {
165
+ if ($permission['status'] == 'ok') {
166
+ $background = "#9e4";
167
+ $color = "black";
168
+ } else {
169
+ $background = "#f43";
170
+ $color = "white";
171
+ }
172
+ ?>
173
+ <tr>
174
+ <td><?php echo $permission['description']; ?></td>
175
+ <td><?php echo $permission['value']; ?></td>
176
+ <td style="background-color:<?php echo $background; ?>; color:<?php echo $color; ?>"><?php echo $permission['status_message']; ?></td>
177
+ </tr>
178
+
179
+ <?php } ?>
180
+
181
+ </table>
languages/wpo_wcpdf-ro_RO.mo ADDED
Binary file
languages/wpo_wcpdf-ro_RO.po ADDED
@@ -0,0 +1,482 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips v1.2.13\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: \n"
6
+ "PO-Revision-Date: 2014-03-28 18:24:19+0000\n"
7
+ "Last-Translator: afternoon <zicevrei@afternoon.ro>\n"
8
+ "Language-Team: \n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2; plural=n != 1;\n"
13
+ "X-Generator: CSL v1.x\n"
14
+ "X-Poedit-Language: Romanian\n"
15
+ "X-Poedit-Country: ROMANIA\n"
16
+ "X-Poedit-SourceCharset: utf-8\n"
17
+ "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
18
+ "X-Poedit-Basepath: ../\n"
19
+ "X-Poedit-Bookmarks: \n"
20
+ "X-Poedit-SearchPath-0: .\n"
21
+ "X-Textdomain-Support: yes"
22
+
23
+ #: includes/class-wcpdf-export.php:142
24
+ #: includes/class-wcpdf-export.php:147
25
+ #: includes/class-wcpdf-export.php:152
26
+ #: includes/class-wcpdf-export.php:163
27
+ #: includes/class-wcpdf-export.php:176
28
+ #@ wpo_wcpdf
29
+ msgid "You do not have sufficient permissions to access this page."
30
+ msgstr "Nu aveți permisiunea pentru a accesa această pagină."
31
+
32
+ #. gettext fix: identical singular and plural forms found, that may be ambiguous! Please check the code!
33
+ #: includes/class-wcpdf-export.php:197
34
+ #: includes/class-wcpdf-export.php:273
35
+ #@ wpo_wcpdf
36
+ msgid "invoice"
37
+ msgid_plural "invoices"
38
+ msgstr[0] ""
39
+ msgstr[1] ""
40
+
41
+ #: includes/class-wcpdf-export.php:199
42
+ #@ wpo_wcpdf
43
+ msgid "packing-slip"
44
+ msgid_plural "packing-slips"
45
+ msgstr[0] ""
46
+ msgstr[1] ""
47
+
48
+ #: includes/class-wcpdf-settings.php:36
49
+ #: includes/class-wcpdf-settings.php:37
50
+ #: includes/class-wcpdf-writepanels.php:173
51
+ #: includes/class-wcpdf-writepanels.php:174
52
+ #@ wpo_wcpdf
53
+ msgid "PDF Invoices"
54
+ msgstr "Factură PDF"
55
+
56
+ #: includes/class-wcpdf-settings.php:60
57
+ #@ woocommerce
58
+ msgid "Settings"
59
+ msgstr ""
60
+
61
+ #: includes/class-wcpdf-settings.php:86
62
+ #@ wpo_wcpdf
63
+ msgid "WooCommerce PDF Invoices"
64
+ msgstr "Factură PDF WooCommerce"
65
+
66
+ #: includes/class-wcpdf-settings.php:88
67
+ #@ wpo_wcpdf
68
+ msgid "General"
69
+ msgstr "General"
70
+
71
+ #: includes/class-wcpdf-settings.php:89
72
+ #@ wpo_wcpdf
73
+ msgid "Template"
74
+ msgstr "Șablon"
75
+
76
+ #: includes/class-wcpdf-settings.php:96
77
+ #, php-format
78
+ #@ wpo_wcpdf
79
+ msgid "Your WP Memory Limit is currently set to %s - We recommend setting it to at least 64MB (128MB for optimal performance). See: <a href=\"%s\">Increasing memory allocated to PHP</a>"
80
+ msgstr "Limita dvs. de memorie WP este setată la %s - Vă recomandăm să o setați la cel puțin 64 MB (128 MB pentru performanțe optime). A se vedea: <a href=\"%s\">Creșterea de memorie alocată pentru PHP</ a>"
81
+
82
+ #: includes/class-wcpdf-settings.php:106
83
+ #, php-format
84
+ #@ wpo_wcpdf
85
+ msgid "Looking for more advanced templates? Check out the Premium PDF Invoice & Packing Slips templates at %s."
86
+ msgstr "Căutați șabloane mai avansate? Vezi șabloanele Premium pentru Factură PDF și pentru Ordinul de comandă la %s."
87
+
88
+ #: includes/class-wcpdf-settings.php:107
89
+ #, php-format
90
+ #@ wpo_wcpdf
91
+ msgid "For custom templates, contact us at %s."
92
+ msgstr "Pentru șabloane personalizate, contactați-ne la %s."
93
+
94
+ #: includes/class-wcpdf-settings.php:161
95
+ #@ wpo_wcpdf
96
+ msgid "General settings"
97
+ msgstr "Setări generale"
98
+
99
+ #: includes/class-wcpdf-settings.php:168
100
+ #@ wpo_wcpdf
101
+ msgid "How do you want to view the PDF?"
102
+ msgstr "Cum doriți să vizualizați PDF-ul?"
103
+
104
+ #: includes/class-wcpdf-settings.php:176
105
+ #@ wpo_wcpdf
106
+ msgid "Download the PDF"
107
+ msgstr "Descarcă PDF"
108
+
109
+ #: includes/class-wcpdf-settings.php:177
110
+ #@ wpo_wcpdf
111
+ msgid "Open the PDF in a new browser tab/window"
112
+ msgstr "Deschideți PDF-ul într-o filă/fereastră nouă"
113
+
114
+ #: includes/class-wcpdf-settings.php:187
115
+ #@ wpo_wcpdf
116
+ msgid "Attach invoice to:"
117
+ msgstr "Atașați factura la:"
118
+
119
+ #: includes/class-wcpdf-settings.php:195
120
+ #@ wpo_wcpdf
121
+ msgid "Admin New Order email"
122
+ msgstr "Comanda nouă destinată Administratorului"
123
+
124
+ #: includes/class-wcpdf-settings.php:196
125
+ #@ wpo_wcpdf
126
+ msgid "Customer Processing Order email"
127
+ msgstr "Comanda trimisă clientului în momentul procesării acesteia"
128
+
129
+ #: includes/class-wcpdf-settings.php:197
130
+ #@ wpo_wcpdf
131
+ msgid "Customer Completed Order email"
132
+ msgstr "Comanda trimisă clientului în momentul finalizării acesteia"
133
+
134
+ #: includes/class-wcpdf-settings.php:198
135
+ #@ wpo_wcpdf
136
+ msgid "Customer Invoice email"
137
+ msgstr "Email-ul trimis cu factura finală"
138
+
139
+ #: includes/class-wcpdf-settings.php:200
140
+ #, php-format
141
+ #@ wpo_wcpdf
142
+ msgid "It looks like the temp folder (<code>%s</code>) is not writable, check the permissions for this folder! Without having write access to this folder, the plugin will not be able to email invoices."
143
+ msgstr "Se pare că folderul Temp (<code>%s</ code>) nu poate fi scris, verificați permisiunile pentru acest folder! Fără a avea acces de scriere la acest folder, plugin-ul nu va fi în măsură să trimita email-ul cu facturi."
144
+
145
+ #: includes/class-wcpdf-settings.php:206
146
+ #@ wpo_wcpdf
147
+ msgid "Enable invoice number column in the orders list"
148
+ msgstr "Activați coloana Număr de Factură din lista comenzilor"
149
+
150
+ #: includes/class-wcpdf-settings.php:245
151
+ #@ wpo_wcpdf
152
+ msgid "PDF Template settings"
153
+ msgstr "Setări șablon PDF"
154
+
155
+ #: includes/class-wcpdf-settings.php:252
156
+ #@ wpo_wcpdf
157
+ msgid "Choose a template"
158
+ msgstr "Alege un șablon"
159
+
160
+ #: includes/class-wcpdf-settings.php:260
161
+ #@ wpo_wcpdf
162
+ msgid "Want to use your own template? Copy all the files from <code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/woocommerce/pdf/yourtemplate/</code> to customize them"
163
+ msgstr "Vreți sa utilizați propriul șablon? Copiați toate fișierele din <code>woocommerce-pdf-invoices-packing-slips/templates/pdf/Simple/</ code> în <code>yourtheme/woocommerce/pdf/yourtemplate/</ code> pentru a le personaliza"
164
+
165
+ #: includes/class-wcpdf-settings.php:266
166
+ #@ wpo_wcpdf
167
+ msgid "Paper size"
168
+ msgstr "Dimensiune hârtie"
169
+
170
+ #: includes/class-wcpdf-settings.php:274
171
+ #@ wpo_wcpdf
172
+ msgid "A4"
173
+ msgstr "A4"
174
+
175
+ #: includes/class-wcpdf-settings.php:275
176
+ #@ wpo_wcpdf
177
+ msgid "Letter"
178
+ msgstr "Letter"
179
+
180
+ #: includes/class-wcpdf-settings.php:282
181
+ #@ wpo_wcpdf
182
+ msgid "Shop header/logo"
183
+ msgstr "Antet/Logo"
184
+
185
+ #: includes/class-wcpdf-settings.php:289
186
+ #@ wpo_wcpdf
187
+ msgid "Select or upload your invoice header/logo"
188
+ msgstr "Selectați sau încărcați propriul dvs. antet sau logo"
189
+
190
+ #: includes/class-wcpdf-settings.php:290
191
+ #@ wpo_wcpdf
192
+ msgid "Set image"
193
+ msgstr "Setare imagine"
194
+
195
+ #: includes/class-wcpdf-settings.php:291
196
+ #@ wpo_wcpdf
197
+ msgid "Remove image"
198
+ msgstr "Șterge imagine"
199
+
200
+ #: includes/class-wcpdf-settings.php:298
201
+ #@ wpo_wcpdf
202
+ msgid "Shop Name"
203
+ msgstr "Nume magazin"
204
+
205
+ #: includes/class-wcpdf-settings.php:311
206
+ #@ wpo_wcpdf
207
+ msgid "Shop Address"
208
+ msgstr "Adresă magazin"
209
+
210
+ #: includes/class-wcpdf-settings.php:343
211
+ #@ wpo_wcpdf
212
+ msgid "Footer: terms & conditions, policies, etc."
213
+ msgstr "Notă de subsol: termeni și condiții, politică de confidențialitate, etc."
214
+
215
+ #: includes/class-wcpdf-settings.php:358
216
+ #@ wpo_wcpdf
217
+ msgid "Number to display on invoice"
218
+ msgstr "Număr pentru a fi afișat pe factură"
219
+
220
+ #: includes/class-wcpdf-settings.php:366
221
+ #@ wpo_wcpdf
222
+ msgid "WooCommerce order number"
223
+ msgstr "Numărul de comandă WooCommerce"
224
+
225
+ #: includes/class-wcpdf-settings.php:367
226
+ #@ wpo_wcpdf
227
+ msgid "Built-in sequential invoice number"
228
+ msgstr "Număr de factură secvențial"
229
+
230
+ #: includes/class-wcpdf-settings.php:369
231
+ #@ wpo_wcpdf
232
+ msgid "If you are using the WooCommerce Sequential Order Numbers plugin, select the WooCommerce order number"
233
+ msgstr "Dacă utilizați plugin-ul WooCommerce Sequential Order Numbers, selectați Numărul de comandă WooCommerce"
234
+
235
+ #: includes/class-wcpdf-settings.php:375
236
+ #@ wpo_wcpdf
237
+ msgid "Next invoice number (without prefix/suffix etc.)"
238
+ msgstr "Următorul număr de factură (fără prefix/sufix etc.)"
239
+
240
+ #: includes/class-wcpdf-settings.php:383
241
+ #@ wpo_wcpdf
242
+ msgid "This is the number that will be used on the next invoice that is created. By default, numbering starts from the WooCommerce Order Number of the first invoice that is created and increases for every new invoice. Note that if you override this and set it lower than the highest (PDF) invoice number, this could create double invoice numbers!<br/>Check the <a href=\"http://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/faq/\" target=\"_blank\">FAQ</a> for instructions on how to format the invoice number."
243
+ msgstr "Acesta este numărul care va fi folosit la următoarea factură creată. În mod implicit, numerotarea începe de la primul număr al Ordinului de comanda WooCommerce creat și crește pentru fiecare nouă factură. Rețineți că, dacă rescrieți factura și îi setați un număr mai mic decât cel mai mare număr de factură (PDF), acest lucru ar putea crea un număr duplicat la factură! <br/> Verificați <a href=\"http://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/faq/\" target=\"_blank\">FAQ</a> pentru instrucțiuni despre cum să formatați numărul facturii."
244
+
245
+ #: includes/class-wcpdf-settings.php:390
246
+ #@ wpo_wcpdf
247
+ msgid "Date to display on invoice"
248
+ msgstr "Dată pentru a afișa pe factură"
249
+
250
+ #: includes/class-wcpdf-settings.php:398
251
+ #@ wpo_wcpdf
252
+ msgid "Order date"
253
+ msgstr "Dată comandă"
254
+
255
+ #: includes/class-wcpdf-settings.php:399
256
+ #@ wpo_wcpdf
257
+ msgid "Invoice date"
258
+ msgstr "Dată factură"
259
+
260
+ #: includes/class-wcpdf-settings.php:407
261
+ #@ wpo_wcpdf
262
+ msgid "Extra template fields"
263
+ msgstr "Câmpuri suplimentare pentru șablon"
264
+
265
+ #: includes/class-wcpdf-settings.php:414
266
+ #@ wpo_wcpdf
267
+ msgid "Extra field 1"
268
+ msgstr "Câmp suplimentar 1"
269
+
270
+ #: includes/class-wcpdf-settings.php:423
271
+ #@ wpo_wcpdf
272
+ msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
273
+ msgstr "Aceasta este coloana 1 pentru nota de subsol, disponibilă în șablonul <i>Modern (Premium)</ i>"
274
+
275
+ #: includes/class-wcpdf-settings.php:429
276
+ #@ wpo_wcpdf
277
+ msgid "Extra field 2"
278
+ msgstr "Câmp suplimentar 2"
279
+
280
+ #: includes/class-wcpdf-settings.php:438
281
+ #@ wpo_wcpdf
282
+ msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
283
+ msgstr "Aceasta este coloana 2 pentru nota de subsol, disponibilă în șablonul <i>Modern (Premium)</ i>"
284
+
285
+ #: includes/class-wcpdf-settings.php:444
286
+ #@ wpo_wcpdf
287
+ msgid "Extra field 3"
288
+ msgstr "Câmp suplimentar 3"
289
+
290
+ #: includes/class-wcpdf-settings.php:453
291
+ #@ wpo_wcpdf
292
+ msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
293
+ msgstr "Aceasta este coloana 3 pentru nota de subsol, disponibilă în șablonul <i>Modern (Premium)</ i>"
294
+
295
+ #: includes/class-wcpdf-settings.php:710
296
+ #@ default
297
+ msgid "Image resolution"
298
+ msgstr ""
299
+
300
+ #: includes/class-wcpdf-settings.php:740
301
+ #@ wpo_wcpdf
302
+ msgid "These are used for the (optional) footer columns in the <em>Modern (Premium)</em> template, but can also be used for other elements in your custom template"
303
+ msgstr "Acestea sunt utilizate pentru (opțional) coloanele notei de subsol din șablonul <em>Modern (Premium)</ em>, dar poate fi de asemenea utilizat pentru alte elemente în șablonul personalizat"
304
+
305
+ #: includes/class-wcpdf-writepanels.php:81
306
+ #: includes/class-wcpdf-writepanels.php:82
307
+ #: includes/class-wcpdf-writepanels.php:157
308
+ #@ wpo_wcpdf
309
+ msgid "PDF invoice"
310
+ msgstr "Factură PDF"
311
+
312
+ #: includes/class-wcpdf-writepanels.php:84
313
+ #: includes/class-wcpdf-writepanels.php:85
314
+ #: includes/class-wcpdf-writepanels.php:158
315
+ #@ wpo_wcpdf
316
+ msgid "PDF Packing Slip"
317
+ msgstr "Ordin de comandă PDF"
318
+
319
+ #: includes/class-wcpdf-writepanels.php:102
320
+ #@ wpo_wcpdf
321
+ msgid "Invoice Number"
322
+ msgstr "Număr factură"
323
+
324
+ #: includes/class-wcpdf-writepanels.php:133
325
+ #@ wpo_wcpdf
326
+ msgid "Create PDF"
327
+ msgstr "Crează PDF"
328
+
329
+ #: includes/class-wcpdf-writepanels.php:143
330
+ #@ wpo_wcpdf
331
+ msgid "Download invoice (PDF)"
332
+ msgstr "Descarcă factură (PDF)"
333
+
334
+ #: includes/class-wcpdf-writepanels.php:157
335
+ #@ wpo_wcpdf
336
+ msgid "PDF Invoice"
337
+ msgstr "Factură PDF"
338
+
339
+ #: includes/class-wcpdf-writepanels.php:175
340
+ #: includes/class-wcpdf-writepanels.php:176
341
+ #@ wpo_wcpdf
342
+ msgid "PDF Packing Slips"
343
+ msgstr "Ordine de comandă PDF"
344
+
345
+ #: includes/class-wcpdf-writepanels.php:187
346
+ #@ wpo_wcpdf
347
+ msgid "PDF Invoice Number (unformatted!)"
348
+ msgstr "Număr factură PDF (neformatat!)"
349
+
350
+ #: templates/pdf/Simple/html-document-wrapper.php:6
351
+ #: templates/pdf/Simple/invoice.php:9
352
+ #: templates/pdf/Simple/invoice.php:21
353
+ #@ wpo_wcpdf
354
+ msgid "Invoice"
355
+ msgstr "Factură"
356
+
357
+ #: templates/pdf/Simple/html-document-wrapper.php:6
358
+ #: templates/pdf/Simple/packing-slip.php:9
359
+ #: templates/pdf/Simple/packing-slip.php:21
360
+ #@ wpo_wcpdf
361
+ msgid "Packing Slip"
362
+ msgstr "Ordin de comandă"
363
+
364
+ #: templates/pdf/Simple/invoice.php:37
365
+ #@ wpo_wcpdf
366
+ msgid "Invoice Date:"
367
+ msgstr "Dată factură:"
368
+
369
+ #: templates/pdf/Simple/invoice.php:40
370
+ #: templates/pdf/Simple/packing-slip.php:30
371
+ #@ wpo_wcpdf
372
+ msgid "Order Date:"
373
+ msgstr "Dată comandă:"
374
+
375
+ #: templates/pdf/Simple/invoice.php:46
376
+ #@ wpo_wcpdf
377
+ msgid "Invoice Number:"
378
+ msgstr "Număr factură:"
379
+
380
+ #: templates/pdf/Simple/invoice.php:49
381
+ #: templates/pdf/Simple/packing-slip.php:32
382
+ #@ wpo_wcpdf
383
+ msgid "Order Number:"
384
+ msgstr "Număr comandă:"
385
+
386
+ #: templates/pdf/Simple/invoice.php:56
387
+ #@ wpo_wcpdf
388
+ msgid "Payment Method:"
389
+ msgstr "Metodă de plată:"
390
+
391
+ #: templates/pdf/Simple/invoice.php:69
392
+ #: templates/pdf/Simple/packing-slip.php:45
393
+ #@ wpo_wcpdf
394
+ msgid "Product"
395
+ msgstr "Produs"
396
+
397
+ #: templates/pdf/Simple/invoice.php:70
398
+ #: templates/pdf/Simple/packing-slip.php:46
399
+ #@ wpo_wcpdf
400
+ msgid "Quantity"
401
+ msgstr "Cantitate"
402
+
403
+ #: templates/pdf/Simple/invoice.php:71
404
+ #@ wpo_wcpdf
405
+ msgid "Price"
406
+ msgstr "Preț"
407
+
408
+ #: templates/pdf/Simple/invoice.php:77
409
+ #@ wpo_wcpdf
410
+ msgid "Description"
411
+ msgstr "Descriere"
412
+
413
+ #: templates/pdf/Simple/invoice.php:80
414
+ #: templates/pdf/Simple/packing-slip.php:54
415
+ #@ wpo_wcpdf
416
+ msgid "SKU:"
417
+ msgstr "Cod produs (SKU):"
418
+
419
+ #: templates/pdf/Simple/invoice.php:81
420
+ #: templates/pdf/Simple/packing-slip.php:55
421
+ #@ wpo_wcpdf
422
+ msgid "Weight:"
423
+ msgstr "Greutate:"
424
+
425
+ #: templates/pdf/Simple/invoice.php:114
426
+ #: templates/pdf/Simple/packing-slip.php:69
427
+ #@ wpo_wcpdf
428
+ msgid "Customer Notes"
429
+ msgstr "Notiță client"
430
+
431
+ #: woocommerce-pdf-invoices-packingslips.php:96
432
+ #, php-format
433
+ #@ wpo_wcpdf
434
+ msgid "WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be installed & activated!"
435
+ msgstr "%sWooCommerce%s trebuie să fie instalat și activ pentru ca Factura PDF și Ordinul de comandă WooCommerce să funcționeze."
436
+
437
+ #: woocommerce-pdf-invoices-packingslips.php:191
438
+ #: woocommerce-pdf-invoices-packingslips.php:227
439
+ #@ wpo_wcpdf
440
+ msgid "N/A"
441
+ msgstr "Nu se aplică (N/A)"
442
+
443
+ #: woocommerce-pdf-invoices-packingslips.php:249
444
+ #@ wpo_wcpdf
445
+ msgid "Payment method"
446
+ msgstr "Metodă de plată"
447
+
448
+ #: woocommerce-pdf-invoices-packingslips.php:260
449
+ #@ wpo_wcpdf
450
+ msgid "Shipping method"
451
+ msgstr "Metodă de livrare"
452
+
453
+ #: woocommerce-pdf-invoices-packingslips.php:360
454
+ #@ wpo_wcpdf
455
+ msgid "Subtotal"
456
+ msgstr "Subtotal"
457
+
458
+ #: woocommerce-pdf-invoices-packingslips.php:382
459
+ #@ wpo_wcpdf
460
+ msgid "Shipping"
461
+ msgstr "Transport"
462
+
463
+ #: woocommerce-pdf-invoices-packingslips.php:401
464
+ #@ wpo_wcpdf
465
+ msgid "Discount"
466
+ msgstr "Reducere"
467
+
468
+ #: woocommerce-pdf-invoices-packingslips.php:439
469
+ #@ wpo_wcpdf
470
+ msgid "VAT"
471
+ msgstr "TVA"
472
+
473
+ #: woocommerce-pdf-invoices-packingslips.php:471
474
+ #@ default
475
+ msgid "Total ex. VAT"
476
+ msgstr ""
477
+
478
+ #: woocommerce-pdf-invoices-packingslips.php:474
479
+ #@ default
480
+ msgid "Total"
481
+ msgstr ""
482
+
languages/wpo_wcpdf-sk_SK.mo ADDED
Binary file
languages/wpo_wcpdf-sk_SK.po ADDED
@@ -0,0 +1,404 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: WooCommerce PDF Invoices & Packing Slips\n"
4
+ "POT-Creation-Date: 2014-02-17 22:02+0100\n"
5
+ "PO-Revision-Date: 2014-03-25 11:27+0100\n"
6
+ "Last-Translator: Oleg Komarovskyi <komarovski21@gmail.com>\n"
7
+ "Language-Team: KubiQ <7kubiq7@gmail.com>\n"
8
+ "Language: sk\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.6.4\n"
13
+ "X-Poedit-Basepath: ../\n"
14
+ "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;\n"
15
+ "X-Poedit-SourceCharset: UTF-8\n"
16
+ "X-Poedit-KeywordsList: __;_e;_x;_n:1,2\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+
19
+ #: includes/class-wcpdf-export.php:138 includes/class-wcpdf-export.php:143
20
+ #: includes/class-wcpdf-export.php:148 includes/class-wcpdf-export.php:159
21
+ #: includes/class-wcpdf-export.php:172
22
+ msgid "You do not have sufficient permissions to access this page."
23
+ msgstr "Nemáte dostatočné oprávnenia na prístup."
24
+
25
+ # This is a filename (prefix). do not use spaces or special characters!
26
+ #: includes/class-wcpdf-export.php:180 includes/class-wcpdf-export.php:262
27
+ msgid "invoice"
28
+ msgid_plural "invoices"
29
+ msgstr[0] "faktúra"
30
+ msgstr[1] "faktúry"
31
+ msgstr[2] "faktúr"
32
+
33
+ # This is a filename (prefix). do not use spaces or special characters!
34
+ #: includes/class-wcpdf-export.php:182
35
+ msgid "packing-slip"
36
+ msgid_plural "packing-slips"
37
+ msgstr[0] "balenie"
38
+ msgstr[1] "balenia"
39
+ msgstr[2] "balení"
40
+
41
+ #: includes/class-wcpdf-settings.php:36 includes/class-wcpdf-settings.php:37
42
+ #: includes/class-wcpdf-writepanels.php:131
43
+ #: includes/class-wcpdf-writepanels.php:132
44
+ msgid "PDF Invoices"
45
+ msgstr "PDF Faktúra"
46
+
47
+ #: includes/class-wcpdf-settings.php:60
48
+ msgid "Settings"
49
+ msgstr "Nastavenia"
50
+
51
+ #: includes/class-wcpdf-settings.php:86
52
+ msgid "WooCommerce PDF Invoices"
53
+ msgstr "WooCommerce PDF Faktúry"
54
+
55
+ #: includes/class-wcpdf-settings.php:88
56
+ msgid "General"
57
+ msgstr "Všeobecné"
58
+
59
+ #: includes/class-wcpdf-settings.php:89
60
+ msgid "Template"
61
+ msgstr "Šablóna"
62
+
63
+ #: includes/class-wcpdf-settings.php:98
64
+ #, php-format
65
+ msgid ""
66
+ "Looking for more advanced templates? Check out the Premium PDF Invoice & "
67
+ "Packing Slips templates at %s."
68
+ msgstr ""
69
+ "Hľadáte lepšie šablóny? Navštívte Premium PDF Invoice & Packing Slips "
70
+ "šablóny na %s."
71
+
72
+ #: includes/class-wcpdf-settings.php:99
73
+ #, php-format
74
+ msgid "For custom templates, contact us at %s."
75
+ msgstr "Pre vlastnú šablónu nás kontaktujte na %s."
76
+
77
+ #: includes/class-wcpdf-settings.php:153
78
+ msgid "General settings"
79
+ msgstr "Všeobecné nastavenia"
80
+
81
+ #: includes/class-wcpdf-settings.php:160
82
+ msgid "How do you want to view the PDF?"
83
+ msgstr "Ako chcete zobraziť PDF?"
84
+
85
+ #: includes/class-wcpdf-settings.php:168
86
+ msgid "Download the PDF"
87
+ msgstr "Stiahnuť PDF"
88
+
89
+ #: includes/class-wcpdf-settings.php:169
90
+ msgid "Open the PDF in a new browser tab/window"
91
+ msgstr "Otvoriť PDF v novom okne"
92
+
93
+ #: includes/class-wcpdf-settings.php:179
94
+ msgid "Attach invoice to:"
95
+ msgstr "Priložiť faktúru k:"
96
+
97
+ #: includes/class-wcpdf-settings.php:187
98
+ msgid "Admin New Order email"
99
+ msgstr "Administrátor - email s novou objednávkou"
100
+
101
+ #: includes/class-wcpdf-settings.php:188
102
+ msgid "Customer Processing Order email"
103
+ msgstr "Zákazník - email s prijatou objednávkou"
104
+
105
+ #: includes/class-wcpdf-settings.php:189
106
+ msgid "Customer Completed Order email"
107
+ msgstr "Zákazník - email s vybavenou objednávkou"
108
+
109
+ #: includes/class-wcpdf-settings.php:190
110
+ msgid "Customer Invoice email"
111
+ msgstr "Zákazník - email s faktúrou"
112
+
113
+ #: includes/class-wcpdf-settings.php:192
114
+ #, php-format
115
+ msgid ""
116
+ "It looks like the temp folder (<code>%s</code>) is not writable, check the "
117
+ "permissions for this folder! Without having write access to this folder, the "
118
+ "plugin will not be able to email invoices."
119
+ msgstr ""
120
+ "Zdá sa, že dočasný priečinok (<code>%s</code>) nie je prístupný, "
121
+ "skontrolujte prosím poverenia (chmod)! Bez povolení pre zápis do tohto "
122
+ "priečinku, nebude možné odosielať faktúry e-mailom."
123
+
124
+ #: includes/class-wcpdf-settings.php:224
125
+ msgid "PDF Template settings"
126
+ msgstr "Nastavenia PDF šablóny"
127
+
128
+ #: includes/class-wcpdf-settings.php:231
129
+ msgid "Choose a template"
130
+ msgstr "Zvoľte šablónu"
131
+
132
+ #: includes/class-wcpdf-settings.php:239
133
+ msgid ""
134
+ "Want to use your own template? Copy all the files from <code>woocommerce-pdf-"
135
+ "invoices-packing-slips/templates/pdf/Simple/</code> to <code>yourtheme/"
136
+ "woocommerce/pdf/yourtemplate/</code> to customize them"
137
+ msgstr ""
138
+ "Chcete použiť vlastnú šablónu? Skopírujte všetky súbory z <code>woocommerce-"
139
+ "pdf-invoices-packing-slips/templates/pdf/Simple/</code> do <code>yourtheme/"
140
+ "woocommerce/pdf/yourtemplate/</code> a upravte ich podľa potreby"
141
+
142
+ #: includes/class-wcpdf-settings.php:245
143
+ msgid "Paper size"
144
+ msgstr "Veľkosť papiera"
145
+
146
+ #: includes/class-wcpdf-settings.php:253
147
+ msgid "A4"
148
+ msgstr "A4"
149
+
150
+ #: includes/class-wcpdf-settings.php:254
151
+ msgid "Letter"
152
+ msgstr "List"
153
+
154
+ #: includes/class-wcpdf-settings.php:261
155
+ msgid "Shop header/logo"
156
+ msgstr "Hlavička / logo"
157
+
158
+ #: includes/class-wcpdf-settings.php:268
159
+ msgid "Select or upload your invoice header/logo"
160
+ msgstr "Vyberte hlavičku / logo"
161
+
162
+ #: includes/class-wcpdf-settings.php:269
163
+ msgid "Set image"
164
+ msgstr "Zvoliť obrázok"
165
+
166
+ #: includes/class-wcpdf-settings.php:270
167
+ msgid "Remove image"
168
+ msgstr "Odstrániť obrázok"
169
+
170
+ #: includes/class-wcpdf-settings.php:277
171
+ msgid "Shop Name"
172
+ msgstr "Názov obchodu"
173
+
174
+ #: includes/class-wcpdf-settings.php:290
175
+ msgid "Shop Address"
176
+ msgstr "Adresa obchodu"
177
+
178
+ #: includes/class-wcpdf-settings.php:322
179
+ msgid "Footer: terms & conditions, policies, etc."
180
+ msgstr "Pätička: obchodné podmienky, ochrana osobných údajov, atď."
181
+
182
+ #: includes/class-wcpdf-settings.php:337
183
+ msgid "Number to display on invoice"
184
+ msgstr "Číslo zobrazené vo faktúre"
185
+
186
+ #: includes/class-wcpdf-settings.php:345
187
+ msgid "WooCommerce order number"
188
+ msgstr "WooCommerce číslo objednávky"
189
+
190
+ #: includes/class-wcpdf-settings.php:346
191
+ msgid "Built-in sequential invoice number"
192
+ msgstr "Základné sekvenčné číslovanie faktúr"
193
+
194
+ #: includes/class-wcpdf-settings.php:348
195
+ msgid ""
196
+ "If you are using the WooCommerce Sequential Order Numbers plugin, select the "
197
+ "WooCommerce order number"
198
+ msgstr ""
199
+ "Ak používate plugin <i>WooCommerce Sequential Order Numbers</i>, tak zvoľte "
200
+ "WooCommerce číslo objednávky"
201
+
202
+ #: includes/class-wcpdf-settings.php:354
203
+ msgid "Next invoice number (without prefix/suffix etc.)"
204
+ msgstr "Ďalšie číslo faktúry (bez predpony/prípony)"
205
+
206
+ #: includes/class-wcpdf-settings.php:362
207
+ msgid ""
208
+ "This is the number that will be used on the next invoice that is created. By "
209
+ "default, numbering starts from the WooCommerce Order Number of the first "
210
+ "invoice that is created and increases for every new invoice. Note that if "
211
+ "you override this and set it lower than the highest (PDF) invoice number, "
212
+ "this could create double invoice numbers!<br/>Check the <a href=\"http://"
213
+ "wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/faq/\" target="
214
+ "\"_blank\">FAQ</a> for instructions on how to format the invoice number."
215
+ msgstr ""
216
+ "Toto číslo bude použité v ďalšej vytvorenej faktúre. Číslovanie začína podľa "
217
+ "<i>WooCommerce číslo objednávky</i> prvou vytvorenou faktúrou a vzrastá "
218
+ "každou ďalšou vytvorenou faktúrou. POZOR: Ak toto prepíšete a nastavíte "
219
+ "hodnotu na menšiu ako má posledná vytvorená faktúra, môže dôjsť k zdvojeniu "
220
+ "číslovanie vo faktúrach!<br>Navštívte <a href=\"http://wordpress.org/plugins/"
221
+ "woocommerce-pdf-invoices-packing-slips/faq/\" target=\"_blank\">FAQ</a> pre "
222
+ "podrobnejšie informácie o formátovaní čísiel faktúr."
223
+
224
+ #: includes/class-wcpdf-settings.php:369
225
+ msgid "Date to display on invoice"
226
+ msgstr "Dátum zobrazený vo faktúre"
227
+
228
+ #: includes/class-wcpdf-settings.php:377
229
+ msgid "Order date"
230
+ msgstr "Dátum objednávky"
231
+
232
+ #: includes/class-wcpdf-settings.php:378
233
+ msgid "Invoice date"
234
+ msgstr "Dátum fakturácie"
235
+
236
+ #: includes/class-wcpdf-settings.php:386
237
+ msgid "Extra template fields"
238
+ msgstr "Extra políčka v šablóne"
239
+
240
+ #: includes/class-wcpdf-settings.php:393
241
+ msgid "Extra field 1"
242
+ msgstr "Extra políčko 1"
243
+
244
+ #: includes/class-wcpdf-settings.php:402
245
+ msgid "This is footer column 1 in the <i>Modern (Premium)</i> template"
246
+ msgstr "Toto je 1. políčko v pätičke v šablóne <i>Modern (Premium)</i>"
247
+
248
+ #: includes/class-wcpdf-settings.php:408
249
+ msgid "Extra field 2"
250
+ msgstr "Extra políčko 2"
251
+
252
+ #: includes/class-wcpdf-settings.php:417
253
+ msgid "This is footer column 2 in the <i>Modern (Premium)</i> template"
254
+ msgstr "Toto je 2. políčko v pätičke v šablóne <i>Modern (Premium)</i>"
255
+
256
+ #: includes/class-wcpdf-settings.php:423
257
+ msgid "Extra field 3"
258
+ msgstr "Extra políčko 3"
259
+
260
+ #: includes/class-wcpdf-settings.php:432
261
+ msgid "This is footer column 3 in the <i>Modern (Premium)</i> template"
262
+ msgstr "Toto je 3. políčko v pätičke v šablóne <i>Modern (Premium)</i>"
263
+
264
+ #: includes/class-wcpdf-settings.php:689
265
+ msgid "Image resolution"
266
+ msgstr "Rozmery obrázka"
267
+
268
+ #: includes/class-wcpdf-settings.php:719
269
+ msgid ""
270
+ "These are used for the (optional) footer columns in the <em>Modern "
271
+ "(Premium)</em> template, but can also be used for other elements in your "
272
+ "custom template"
273
+ msgstr ""
274
+ "Tieto nastavenia sú použité ako voliteľné časti pätičky v šablóne <em>Modern "
275
+ "(Premium)</em>, ale môžu byť využité aj ako iné prvky vo Vašej vlastnej "
276
+ "šablóne"
277
+
278
+ #: includes/class-wcpdf-writepanels.php:92
279
+ msgid "Create PDF"
280
+ msgstr "Vytvoriť PDF"
281
+
282
+ #: includes/class-wcpdf-writepanels.php:101
283
+ msgid "Download invoice (PDF)"
284
+ msgstr "Stiahnuť faktúru (PDF)"
285
+
286
+ #: includes/class-wcpdf-writepanels.php:115
287
+ msgid "PDF invoice"
288
+ msgstr "PDF faktúra"
289
+
290
+ #: includes/class-wcpdf-writepanels.php:116
291
+ msgid "PDF Packing Slip"
292
+ msgstr "PDF Dodací list"
293
+
294
+ #: includes/class-wcpdf-writepanels.php:133
295
+ #: includes/class-wcpdf-writepanels.php:134
296
+ msgid "PDF Packing Slips"
297
+ msgstr "PDF Dodacie listy"
298
+
299
+ #: includes/class-wcpdf-writepanels.php:145
300
+ msgid "PDF Invoice Number"
301
+ msgstr "PDF Číslo faktúry"
302
+
303
+ #: templates/pdf/Simple/html-document-wrapper.php:6
304
+ #: templates/pdf/Simple/invoice.php:9 templates/pdf/Simple/invoice.php:21
305
+ msgid "Invoice"
306
+ msgstr "Faktúra"
307
+
308
+ #: templates/pdf/Simple/html-document-wrapper.php:6
309
+ #: templates/pdf/Simple/packing-slip.php:9
310
+ #: templates/pdf/Simple/packing-slip.php:21
311
+ msgid "Packing Slip"
312
+ msgstr "Dodací list"
313
+
314
+ #: templates/pdf/Simple/invoice.php:37
315
+ msgid "Invoice Date:"
316
+ msgstr "Dátum fakturácie:"
317
+
318
+ #: templates/pdf/Simple/invoice.php:40
319
+ #: templates/pdf/Simple/packing-slip.php:30
320
+ msgid "Order Date:"
321
+ msgstr "Dátum objednávky:"
322
+
323
+ #: templates/pdf/Simple/invoice.php:46
324
+ msgid "Invoice Number:"
325
+ msgstr "Číslo faktúry:"
326
+
327
+ #: templates/pdf/Simple/invoice.php:49
328
+ #: templates/pdf/Simple/packing-slip.php:32
329
+ msgid "Order Number:"
330
+ msgstr "Číslo objednávky:"
331
+
332
+ #: templates/pdf/Simple/invoice.php:56
333
+ msgid "Payment Method:"
334
+ msgstr "Spôsob platby:"
335
+
336
+ #: templates/pdf/Simple/invoice.php:69
337
+ #: templates/pdf/Simple/packing-slip.php:45
338
+ msgid "Product"
339
+ msgstr "Tovar"
340
+
341
+ #: templates/pdf/Simple/invoice.php:70
342
+ #: templates/pdf/Simple/packing-slip.php:46
343
+ msgid "Quantity"
344
+ msgstr "Množstvo"
345
+
346
+ #: templates/pdf/Simple/invoice.php:71
347
+ msgid "Price"
348
+ msgstr "Cena"
349
+
350
+ #: templates/pdf/Simple/invoice.php:79
351
+ #: templates/pdf/Simple/packing-slip.php:54
352
+ msgid "SKU:"
353
+ msgstr "EAN:"
354
+
355
+ #: templates/pdf/Simple/invoice.php:80
356
+ #: templates/pdf/Simple/packing-slip.php:55
357
+ msgid "Weight:"
358
+ msgstr "Hmotnosť:"
359
+
360
+ #: templates/pdf/Simple/invoice.php:113
361
+ #: templates/pdf/Simple/packing-slip.php:69
362
+ msgid "Customer Notes"
363
+ msgstr "Poznámka zákazníka"
364
+
365
+ #: woocommerce-pdf-invoices-packingslips.php:96
366
+ #, php-format
367
+ msgid ""
368
+ "WooCommerce PDF Invoices & Packing Slips requires %sWooCommerce%s to be "
369
+ "installed & activated!"
370
+ msgstr ""
371
+ "WooCommerce PDF Invoices & Packing Slips vyžaduje nainštalovaný a povolený "
372
+ "%sWooCommerce%s!"
373
+
374
+ #: woocommerce-pdf-invoices-packingslips.php:191
375
+ #: woocommerce-pdf-invoices-packingslips.php:227
376
+ msgid "N/A"
377
+ msgstr "Áno/Nie"
378
+
379
+ #: woocommerce-pdf-invoices-packingslips.php:359
380
+ msgid "Subtotal"
381
+ msgstr "Medzisúčet"
382
+
383
+ #: woocommerce-pdf-invoices-packingslips.php:381
384
+ msgid "Shipping"
385
+ msgstr "Doprava"
386
+
387
+ #: woocommerce-pdf-invoices-packingslips.php:400
388
+ msgid "Discount"
389
+ msgstr "Zľava"
390
+
391
+ #: woocommerce-pdf-invoices-packingslips.php:469
392
+ msgid "Total ex. VAT"
393
+ msgstr "Spolu bez DPH"
394
+
395
+ #: woocommerce-pdf-invoices-packingslips.php:472
396
+ msgid "Total"
397
+ msgstr "Spolu"
398
+
399
+ #~ msgid "..."
400
+ #~ msgstr "..."
401
+
402
+ #~ msgid "Email invoice (attach to order confirmation or invoice email)"
403
+ #~ msgstr ""
404
+ #~ "Отослать накладную по Email (прикрепить к заказу или к Email-у накладной)"
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: pomegranate
3
  Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
4
  Requires at least: 3.5 and WooCommerce 2.0
5
  Tested up to: 3.8.1 and WooCommerce 2.1
6
- Stable tag: 1.2.13
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -18,7 +18,7 @@ This WooCommerce extension automatically adds a PDF invoice to the order confirm
18
  * Automatically attach invoice PDF to order confirmation email
19
  * Users can download their invoices from the My Account page
20
  * Sequential invoice numbers (fully customizable with filters, see the [FAQ](http://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/faq/))
21
- * **Available in: Dutch, English, French, German, Hungarian, Italian, Russian, Spanish & Ukrainian**
22
 
23
  = Fully customizable =
24
  In addition to a number of default settings (including a custom header/logo) and several layout fields that you can use out of the box, the plugin contains HTML/CSS based templates that allow for customization & full control over the PDF output.
@@ -168,6 +168,13 @@ This usually only happens on batch actions. PDF creation is a memory intensive j
168
 
169
  == Changelog ==
170
 
 
 
 
 
 
 
 
171
  = 1.2.13 =
172
  * Feature: added filter for custom email attachment condition (wpo_wcpdf_custom_email_condition)
173
  * Fix: warning for tax implode
3
  Tags: woocommerce, print, pdf, bulk, packing slips, invoices, delivery notes, invoice, packing slip, export, email
4
  Requires at least: 3.5 and WooCommerce 2.0
5
  Tested up to: 3.8.1 and WooCommerce 2.1
6
+ Stable tag: 1.3.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
18
  * Automatically attach invoice PDF to order confirmation email
19
  * Users can download their invoices from the My Account page
20
  * Sequential invoice numbers (fully customizable with filters, see the [FAQ](http://wordpress.org/plugins/woocommerce-pdf-invoices-packing-slips/faq/))
21
+ * **Available in: Dutch, English, French, German, Hungarian, Italian, Romanian, Russian, Slovak, Spanish, Swedish & Ukrainian**
22
 
23
  = Fully customizable =
24
  In addition to a number of default settings (including a custom header/logo) and several layout fields that you can use out of the box, the plugin contains HTML/CSS based templates that allow for customization & full control over the PDF output.
168
 
169
  == Changelog ==
170
 
171
+ = 1.3.0 =
172
+ * Feature: Added 'status' panel for better problem diagnosis
173
+ * Feature: Order & Cart, & total discounts can now be called separately with order_discount()
174
+ * Tweak: split create & get invoice number calls to prevent slow database calls from causing number skipping
175
+ * Translations: Added Romanian (Thanks Leonardo!)
176
+ * Translations: Added Slovak (Thanks Oleg!)
177
+
178
  = 1.2.13 =
179
  * Feature: added filter for custom email attachment condition (wpo_wcpdf_custom_email_condition)
180
  * Fix: warning for tax implode
templates/pdf/Simple/invoice.php CHANGED
@@ -103,8 +103,7 @@
103
 
104
  </tr>
105
  </tfoot>
106
- </table><!-- order-details -->
107
-
108
 
109
  <table class="notes container">
110
  <tr>
103
 
104
  </tr>
105
  </tfoot>
106
+ </table><!-- order-details -->
 
107
 
108
  <table class="notes container">
109
  <tr>
woocommerce-pdf-invoices-packingslips.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
- * Version: 1.2.13
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
@@ -392,21 +392,37 @@ if ( !class_exists( 'WooCommerce_PDF_Invoices' ) ) {
392
  /**
393
  * Return/show the total discount
394
  */
395
- public function get_order_discount() {
396
- $cart_discount = $this->export->order->get_cart_discount_to_display(); //before tax
397
- $order_discount = $this->export->order->get_order_discount_to_display(); //after tax
398
- $total_discount = $this->export->order->get_total_discount(); //combined
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
 
400
  $discount = array (
401
  'label' => __('Discount', 'wpo_wcpdf'),
402
- 'value' => woocommerce_price($total_discount),
403
  );
404
 
405
- if ( $total_discount > 0 )
406
  return apply_filters( 'wpo_wcpdf_order_discount', $discount );
 
407
  }
408
- public function order_discount() {
409
- $discount = $this->get_order_discount();
410
  echo $discount['value'];
411
  }
412
 
3
  * Plugin Name: WooCommerce PDF Invoices & Packing Slips
4
  * Plugin URI: http://www.wpovernight.com
5
  * Description: Create, print & email PDF invoices & packing slips for WooCommerce orders.
6
+ * Version: 1.3.0
7
  * Author: Ewout Fernhout
8
  * Author URI: http://www.wpovernight.com
9
  * License: GPLv2 or later
392
  /**
393
  * Return/show the total discount
394
  */
395
+ public function get_order_discount( $type = 'total' ) {
396
+ switch ($type) {
397
+ case 'cart':
398
+ // Cart Discount - pre-tax discounts.
399
+ $discount_value = $this->export->order->get_cart_discount();
400
+ break;
401
+ case 'order':
402
+ // Order Discount - post-tax discounts.
403
+ $discount_value = $this->export->order->get_order_discount();
404
+ break;
405
+ case 'total':
406
+ // Total Discount - Cart & Order Discounts combined
407
+ $discount_value = $this->export->order->get_total_discount();
408
+ break;
409
+ default:
410
+ // Total Discount - Cart & Order Discounts combined
411
+ $discount_value = $this->export->order->get_total_discount();
412
+ break;
413
+ }
414
 
415
  $discount = array (
416
  'label' => __('Discount', 'wpo_wcpdf'),
417
+ 'value' => $this->export->wc_price($discount_value),
418
  );
419
 
420
+ if ( $discount_value > 0 ) {
421
  return apply_filters( 'wpo_wcpdf_order_discount', $discount );
422
+ }
423
  }
424
+ public function order_discount( $type = 'total' ) {
425
+ $discount = $this->get_order_discount( $type );
426
  echo $discount['value'];
427
  }
428