Changeset 2313911
- Timestamp:
- 05/28/2020 05:13:12 PM (6 years ago)
- Location:
- apollo/trunk
- Files:
-
- 4 edited
-
apollo.php (modified) (3 diffs)
-
includes/admin/invoice.php (modified) (2 diffs)
-
readme.txt (modified) (3 diffs)
-
vendor/spaceinvoices/vendor/space-invoices/space-invoices-php/lib/ApiResource.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
apollo/trunk/apollo.php
r2275758 r2313911 4 4 * Plugin URI: https://wordpress.org/plugins/apollo 5 5 * Description: Manually or automatically generate invoices and send PDFs as attachments for WooCommerce orders. 6 * Version: 1.1. 56 * Version: 1.1.6 7 7 * Author: Studio404 8 8 * Text Domain: apollo 9 9 * Domain Path: /languages 10 * WC tested up to: 4. 0.110 * WC tested up to: 4.1.1 11 11 * WC requires at least: 3.0 12 12 */ … … 14 14 defined( 'ABSPATH' ) or exit; 15 15 16 define( 'APOLLO_VERSION', '1.1. 5' );16 define( 'APOLLO_VERSION', '1.1.6' ); 17 17 18 18 function apollo_load_plugin() { … … 70 70 71 71 // Only add attachment if new order, completed order or invoice mail 72 if($status != 'customer_invoice' && $status != 'new_order' && $status != 'customer_completed_order' ) {72 if($status != 'customer_invoice' && $status != 'new_order' && $status != 'customer_completed_order' && $status != 'customer_on_hold_order') { 73 73 return; 74 74 } -
apollo/trunk/includes/admin/invoice.php
r2249467 r2313911 176 176 } 177 177 } 178 179 $paymentType = "online"; 180 181 if($order->get_payment_method() === 'paypal') 182 { 183 $paymentType = 'paypal'; 184 } else if($order->get_payment_method() === 'bacs') { 185 $paymentType = 'bank'; 186 } 178 187 179 188 // if this is invoice and payment type IS NOT 'Cash on delivery', mark invoice as paid 180 189 if ($type === 'invoice' && $order->get_payment_method() !== 'cod') { 181 190 $order_data['payments'] = array(array( 182 "type" => "other",191 "type" => $paymentType, 183 192 "note" => $order->get_payment_method_title() 184 193 )); … … 188 197 189 198 if(isset($create->error)) { 190 return array("error" => "Apollo error (".$create->error->statusCode."): ".$create->error-> text);199 return array("error" => "Apollo error (".$create->error->statusCode."): ".$create->error->message); 191 200 } 192 201 -
apollo/trunk/readme.txt
r2275758 r2313911 5 5 Requires PHP: 5.6.3 6 6 Stable tag: trunk 7 Tested up to: 5. 3.27 Tested up to: 5.4.1 8 8 9 9 == Description == … … 85 85 86 86 == Changelog == 87 = 1.1.6 - May 28, 2020 = 88 89 - Fixed: Estimate sending to user when new order is craeted 90 - Updated: Some payment types now match Apollo payment types 91 - Updated: Error logging 92 87 93 = 1.1.5 - April 4, 2020 = 88 94 … … 90 96 - Updated: Invoices are now created when order is completed, only exceptin is Cash On Delivery payment, where invoice is created with new order (invoice is not marked as paid in this case) 91 97 92 == Changelog ==93 98 = 1.1.4 - February 24, 2020 = 94 99 -
apollo/trunk/vendor/spaceinvoices/vendor/space-invoices/space-invoices-php/lib/ApiResource.php
r2068795 r2313911 87 87 $response->body->error->name = ApiResource::responseCodeName($code); 88 88 $response->body->error->text = ApiResource::responseCodeText($code); 89 $response->body->error->message = $response->body->error->message; 89 90 } 90 91
Note: See TracChangeset
for help on using the changeset viewer.