Changeset 3179273
- Timestamp:
- 10/31/2024 08:11:03 AM (16 months ago)
- Location:
- easy-invoice
- Files:
-
- 12 added
- 24 edited
- 1 copied
-
tags/1.1.3 (copied) (copied from easy-invoice/trunk)
-
tags/1.1.3/changelog.txt (modified) (1 diff)
-
tags/1.1.3/easy-invoice.php (modified) (1 diff)
-
tags/1.1.3/includes/Admin/FieldItems/Editor.php (modified) (1 diff)
-
tags/1.1.3/includes/Admin/Settings/InvoiceSettings.php (modified) (1 diff)
-
tags/1.1.3/includes/Admin/Settings/QuoteSettings.php (modified) (1 diff)
-
tags/1.1.3/includes/Background.php (added)
-
tags/1.1.3/includes/BatchProcessing (added)
-
tags/1.1.3/includes/BatchProcessing/EasyInvoiceAsyncRequest.php (added)
-
tags/1.1.3/includes/BatchProcessing/EasyInvoiceBackgroundProcess.php (added)
-
tags/1.1.3/includes/Cron.php (added)
-
tags/1.1.3/includes/Helpers/background.php (added)
-
tags/1.1.3/includes/Helpers/invoice.php (modified) (1 diff)
-
tags/1.1.3/includes/Helpers/quote.php (modified) (1 diff)
-
tags/1.1.3/includes/Helpers/template.php (modified) (1 diff)
-
tags/1.1.3/includes/Main.php (modified) (1 diff)
-
tags/1.1.3/includes/Meta/Invoice.php (modified) (2 diffs)
-
tags/1.1.3/includes/Meta/Quote.php (modified) (2 diffs)
-
tags/1.1.3/readme.txt (modified) (2 diffs)
-
trunk/changelog.txt (modified) (1 diff)
-
trunk/easy-invoice.php (modified) (1 diff)
-
trunk/includes/Admin/FieldItems/Editor.php (modified) (1 diff)
-
trunk/includes/Admin/Settings/InvoiceSettings.php (modified) (1 diff)
-
trunk/includes/Admin/Settings/QuoteSettings.php (modified) (1 diff)
-
trunk/includes/Background.php (added)
-
trunk/includes/BatchProcessing (added)
-
trunk/includes/BatchProcessing/EasyInvoiceAsyncRequest.php (added)
-
trunk/includes/BatchProcessing/EasyInvoiceBackgroundProcess.php (added)
-
trunk/includes/Cron.php (added)
-
trunk/includes/Helpers/background.php (added)
-
trunk/includes/Helpers/invoice.php (modified) (1 diff)
-
trunk/includes/Helpers/quote.php (modified) (1 diff)
-
trunk/includes/Helpers/template.php (modified) (1 diff)
-
trunk/includes/Main.php (modified) (1 diff)
-
trunk/includes/Meta/Invoice.php (modified) (2 diffs)
-
trunk/includes/Meta/Quote.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easy-invoice/tags/1.1.3/changelog.txt
r3038017 r3179273 1 = 1.1.2 - 2024-02-19 = 2 * Fixed - Readme update 3 1 4 = 1.1.1 - 2024-02-17 = 2 5 * Fixed - Astra Compatibility fixed -
easy-invoice/tags/1.1.3/easy-invoice.php
r3038017 r3179273 6 6 * Author: MatrixAddons 7 7 * Author URI: https://profiles.wordpress.org/matrixaddons 8 * Version: 1.1. 28 * Version: 1.1.3 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt -
easy-invoice/tags/1.1.3/includes/Admin/FieldItems/Editor.php
r2801615 r3179273 24 24 ); 25 25 $editor_id = $field_name . '_id'; 26 27 $value = $value == null ? "" : $value; 26 28 27 29 wp_editor($value, $editor_id, $settings); -
easy-invoice/tags/1.1.3/includes/Admin/Settings/InvoiceSettings.php
r3024036 r3179273 89 89 ), 90 90 91 91 array( 92 'title' => __('Last Invoice Number', 'easy-invoice'), 93 'id' => 'easy_invoice_invoice_number', 94 'type' => 'number', 95 'default' => 0 96 ), 92 97 array( 93 98 'title' => __('Show/Hide Adjust Field', 'easy-invoice'), -
easy-invoice/tags/1.1.3/includes/Admin/Settings/QuoteSettings.php
r3024036 r3179273 88 88 'default' => 'EIQN_' 89 89 ), 90 90 array( 91 'title' => __('Last Quote Number', 'easy-invoice'), 92 'id' => 'easy_invoice_quote_number', 93 'type' => 'number', 94 'default' => 0 95 ), 91 96 92 97 array( -
easy-invoice/tags/1.1.3/includes/Helpers/invoice.php
r3024036 r3179273 89 89 $prefix = get_option('easy_invoice_number_prefix', 'EIN_'); 90 90 91 update_option('easy_invoice_invoice_number', absint($invoice_number));91 //update_option('easy_invoice_invoice_number', absint($invoice_number)); 92 92 93 93 if (is_string($prefix)) { -
easy-invoice/tags/1.1.3/includes/Helpers/quote.php
r3024036 r3179273 47 47 $prefix = get_option('easy_invoice_quote_number_prefix', 'EIQN_'); 48 48 49 update_option('easy_invoice_quote_number', absint($quote_number));49 //update_option('easy_invoice_quote_number', absint($quote_number)); 50 50 51 51 if (is_string($prefix)) { -
easy-invoice/tags/1.1.3/includes/Helpers/template.php
r3037063 r3179273 117 117 $today = current_time('timestamp'); 118 118 119 $due_and_valid_date = get_post_type($object_id) == Constant::QUOTE_POST_TYPE ? $invoice->get_due_date() : $quote->get_valid_until();120 121 $due_amount = get_post_type($object_id) == Constant::QUOTE_POST_TYPE ? $invoice->get_due_amount() : $quote->get_due_amount();122 123 $client_name = get_post_type($object_id) == Constant::QUOTE_POST_TYPE ? $invoice->get_client_name() : $quote->get_client_name();119 $due_and_valid_date = get_post_type($object_id) != Constant::QUOTE_POST_TYPE ? $invoice->get_due_date() : $quote->get_valid_until(); 120 121 $due_amount = get_post_type($object_id) != Constant::QUOTE_POST_TYPE ? $invoice->get_due_amount() : $quote->get_due_amount(); 122 123 $client_name = get_post_type($object_id) != Constant::QUOTE_POST_TYPE ? $invoice->get_client_name() : $quote->get_client_name(); 124 124 125 125 $due_date = $due_and_valid_date !== '' ? strtotime($due_and_valid_date) : 0; -
easy-invoice/tags/1.1.3/includes/Main.php
r3024036 r3179273 74 74 Hooker::init(); 75 75 Email::init(); 76 Cron::init(); 77 Background::init(); 76 78 PaymentGatewayLoader::instance()->init(); 77 79 -
easy-invoice/tags/1.1.3/includes/Meta/Invoice.php
r3037063 r3179273 234 234 } 235 235 236 public function first_publish($new, $old, $post) 237 { 238 if ($post->post_type != Constant::INVOICE_POST_TYPE) { 239 return; 240 } 241 if ($new == 'publish' && $old != 'publish' && isset($post->post_type)) { 242 243 $invoice_number = absint(get_option('easy_invoice_invoice_number', 0)); 244 245 $invoice_number = $invoice_number + 1; 246 247 $invoice_number = $invoice_number < 1 ? 1 : $invoice_number; 248 249 update_option('easy_invoice_invoice_number', absint($invoice_number)); 250 251 } 252 253 } 254 236 255 public static function init() 237 256 { … … 242 261 add_action('admin_enqueue_scripts', array($self, 'scripts'), 10); 243 262 add_action('do_meta_boxes', array($self, 'remove_metabox'), 1, 3); 263 add_action('transition_post_status', array($self, 'first_publish'), 10, 3); 264 244 265 } 245 266 -
easy-invoice/tags/1.1.3/includes/Meta/Quote.php
r3037063 r3179273 260 260 } 261 261 262 public function first_publish($new, $old, $post) 263 { 264 if ($post->post_type != Constant::QUOTE_POST_TYPE) { 265 return; 266 } 267 if ($new == 'publish' && $old != 'publish' && isset($post->post_type)) { 268 269 $quote_number = absint(get_option('easy_invoice_quote_number', 0)); 270 271 $quote_number = $quote_number + 1; 272 273 $quote_number = $quote_number < 1 ? 1 : $quote_number; 274 275 update_option('easy_invoice_quote_number', absint($quote_number)); 276 277 } 278 279 } 280 262 281 public static function init() 263 282 { … … 268 287 add_action('admin_enqueue_scripts', array($self, 'scripts'), 10); 269 288 add_action('do_meta_boxes', array($self, 'remove_metabox'), 1, 3); 289 add_action('transition_post_status', array($self, 'first_publish'), 10, 3); 290 270 291 } 271 292 -
easy-invoice/tags/1.1.3/readme.txt
r3038017 r3179273 3 3 Tags: invoice, pdf invoice, quotes, WordPress invoice 4 4 Requires at least: 5.4 5 Tested up to: 6. 45 Tested up to: 6.7 6 6 Requires PHP: 5.6 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv3 9 9 License URI: https://opensource.org/licenses/GPL-3.0 … … 102 102 == Changelog == 103 103 104 = 1.1.2 - 2024-02-19 = 105 * Fixed - Readme update 104 = 1.1.3 - 2024-10-31 = 105 * Fixed - Email issue fixed 106 * fixed - version compatibility -
easy-invoice/trunk/changelog.txt
r3038017 r3179273 1 = 1.1.2 - 2024-02-19 = 2 * Fixed - Readme update 3 1 4 = 1.1.1 - 2024-02-17 = 2 5 * Fixed - Astra Compatibility fixed -
easy-invoice/trunk/easy-invoice.php
r3038017 r3179273 6 6 * Author: MatrixAddons 7 7 * Author URI: https://profiles.wordpress.org/matrixaddons 8 * Version: 1.1. 28 * Version: 1.1.3 9 9 * License: GPL2+ 10 10 * License URI: https://www.gnu.org/licenses/gpl-2.0.txt -
easy-invoice/trunk/includes/Admin/FieldItems/Editor.php
r2801615 r3179273 24 24 ); 25 25 $editor_id = $field_name . '_id'; 26 27 $value = $value == null ? "" : $value; 26 28 27 29 wp_editor($value, $editor_id, $settings); -
easy-invoice/trunk/includes/Admin/Settings/InvoiceSettings.php
r3024036 r3179273 89 89 ), 90 90 91 91 array( 92 'title' => __('Last Invoice Number', 'easy-invoice'), 93 'id' => 'easy_invoice_invoice_number', 94 'type' => 'number', 95 'default' => 0 96 ), 92 97 array( 93 98 'title' => __('Show/Hide Adjust Field', 'easy-invoice'), -
easy-invoice/trunk/includes/Admin/Settings/QuoteSettings.php
r3024036 r3179273 88 88 'default' => 'EIQN_' 89 89 ), 90 90 array( 91 'title' => __('Last Quote Number', 'easy-invoice'), 92 'id' => 'easy_invoice_quote_number', 93 'type' => 'number', 94 'default' => 0 95 ), 91 96 92 97 array( -
easy-invoice/trunk/includes/Helpers/invoice.php
r3024036 r3179273 89 89 $prefix = get_option('easy_invoice_number_prefix', 'EIN_'); 90 90 91 update_option('easy_invoice_invoice_number', absint($invoice_number));91 //update_option('easy_invoice_invoice_number', absint($invoice_number)); 92 92 93 93 if (is_string($prefix)) { -
easy-invoice/trunk/includes/Helpers/quote.php
r3024036 r3179273 47 47 $prefix = get_option('easy_invoice_quote_number_prefix', 'EIQN_'); 48 48 49 update_option('easy_invoice_quote_number', absint($quote_number));49 //update_option('easy_invoice_quote_number', absint($quote_number)); 50 50 51 51 if (is_string($prefix)) { -
easy-invoice/trunk/includes/Helpers/template.php
r3037063 r3179273 117 117 $today = current_time('timestamp'); 118 118 119 $due_and_valid_date = get_post_type($object_id) == Constant::QUOTE_POST_TYPE ? $invoice->get_due_date() : $quote->get_valid_until();120 121 $due_amount = get_post_type($object_id) == Constant::QUOTE_POST_TYPE ? $invoice->get_due_amount() : $quote->get_due_amount();122 123 $client_name = get_post_type($object_id) == Constant::QUOTE_POST_TYPE ? $invoice->get_client_name() : $quote->get_client_name();119 $due_and_valid_date = get_post_type($object_id) != Constant::QUOTE_POST_TYPE ? $invoice->get_due_date() : $quote->get_valid_until(); 120 121 $due_amount = get_post_type($object_id) != Constant::QUOTE_POST_TYPE ? $invoice->get_due_amount() : $quote->get_due_amount(); 122 123 $client_name = get_post_type($object_id) != Constant::QUOTE_POST_TYPE ? $invoice->get_client_name() : $quote->get_client_name(); 124 124 125 125 $due_date = $due_and_valid_date !== '' ? strtotime($due_and_valid_date) : 0; -
easy-invoice/trunk/includes/Main.php
r3024036 r3179273 74 74 Hooker::init(); 75 75 Email::init(); 76 Cron::init(); 77 Background::init(); 76 78 PaymentGatewayLoader::instance()->init(); 77 79 -
easy-invoice/trunk/includes/Meta/Invoice.php
r3037063 r3179273 234 234 } 235 235 236 public function first_publish($new, $old, $post) 237 { 238 if ($post->post_type != Constant::INVOICE_POST_TYPE) { 239 return; 240 } 241 if ($new == 'publish' && $old != 'publish' && isset($post->post_type)) { 242 243 $invoice_number = absint(get_option('easy_invoice_invoice_number', 0)); 244 245 $invoice_number = $invoice_number + 1; 246 247 $invoice_number = $invoice_number < 1 ? 1 : $invoice_number; 248 249 update_option('easy_invoice_invoice_number', absint($invoice_number)); 250 251 } 252 253 } 254 236 255 public static function init() 237 256 { … … 242 261 add_action('admin_enqueue_scripts', array($self, 'scripts'), 10); 243 262 add_action('do_meta_boxes', array($self, 'remove_metabox'), 1, 3); 263 add_action('transition_post_status', array($self, 'first_publish'), 10, 3); 264 244 265 } 245 266 -
easy-invoice/trunk/includes/Meta/Quote.php
r3037063 r3179273 260 260 } 261 261 262 public function first_publish($new, $old, $post) 263 { 264 if ($post->post_type != Constant::QUOTE_POST_TYPE) { 265 return; 266 } 267 if ($new == 'publish' && $old != 'publish' && isset($post->post_type)) { 268 269 $quote_number = absint(get_option('easy_invoice_quote_number', 0)); 270 271 $quote_number = $quote_number + 1; 272 273 $quote_number = $quote_number < 1 ? 1 : $quote_number; 274 275 update_option('easy_invoice_quote_number', absint($quote_number)); 276 277 } 278 279 } 280 262 281 public static function init() 263 282 { … … 268 287 add_action('admin_enqueue_scripts', array($self, 'scripts'), 10); 269 288 add_action('do_meta_boxes', array($self, 'remove_metabox'), 1, 3); 289 add_action('transition_post_status', array($self, 'first_publish'), 10, 3); 290 270 291 } 271 292 -
easy-invoice/trunk/readme.txt
r3038017 r3179273 3 3 Tags: invoice, pdf invoice, quotes, WordPress invoice 4 4 Requires at least: 5.4 5 Tested up to: 6. 45 Tested up to: 6.7 6 6 Requires PHP: 5.6 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 License: GPLv3 9 9 License URI: https://opensource.org/licenses/GPL-3.0 … … 102 102 == Changelog == 103 103 104 = 1.1.2 - 2024-02-19 = 105 * Fixed - Readme update 104 = 1.1.3 - 2024-10-31 = 105 * Fixed - Email issue fixed 106 * fixed - version compatibility
Note: See TracChangeset
for help on using the changeset viewer.