Changeset 1899812
- Timestamp:
- 06/27/2018 10:01:36 AM (8 years ago)
- Location:
- smartaccounts/trunk
- Files:
-
- 5 edited
-
SmartAccountsApi.php (modified) (1 diff)
-
SmartAccountsClass.php (modified) (1 diff)
-
SmartAccountsSalesInvoice.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
-
smartaccounts.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
smartaccounts/trunk/SmartAccountsApi.php
r1861538 r1899812 28 28 $args = array( 29 29 'body' => $bodyJson, 30 'headers' => ['Content-Type' => 'application/json'] 30 'headers' => ['Content-Type' => 'application/json'], 31 'timeout' => 60 31 32 ); 32 33 -
smartaccounts/trunk/SmartAccountsClass.php
r1857095 r1899812 26 26 $saPayment->createPayment(); 27 27 update_post_meta($order_id, 'smartaccounts_invoice_id', $invoice['invoice']['invoiceNumber']); 28 error_log("SmartAccounts sales invoice created for order $order_id - " . $invoice['invoice']['invoiceNumber']); 28 29 } catch (Exception $exception) { 29 $handle = fopen(dirname(__FILE__) . "/error.log", 'a'); 30 31 if ($handle) { 32 fwrite($handle, new DateTime()); 33 fwrite($handle, "Error reason: " . $exception->getMessage()); 34 fwrite($handle, $exception->getTraceAsString()); 35 fclose($handle); 36 } 30 error_log("SmartAccounts error: " . $exception->getMessage() . " " . $exception->getTraceAsString()); 37 31 } 38 32 } -
smartaccounts/trunk/SmartAccountsSalesInvoice.php
r1864957 r1899812 57 57 public function getOrderTotal() 58 58 { 59 return $this->order->get_subtotal() + $this->order->get_shipping_total() ;59 return $this->order->get_subtotal() + $this->order->get_shipping_total() - $this->order->get_discount_total(); 60 60 } 61 61 -
smartaccounts/trunk/readme.txt
r1796659 r1899812 2 2 Tags: SmartAccounts, smartaccounts, WooCommerce 3 3 Requires at least: 4.8 4 Tested up to: 4.9 4 Tested up to: 4.9.6 5 5 License: GPLv2 or later 6 6 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 10 10 == Description == 11 11 12 After woocommerce order goes to status "Processing" or "Completed"then this plugin:12 After woocommerce order goes to status “Processing” or “Completed” then this plugin: 13 13 * Creates Customer to SmartAccounts if no existing customer with same name and e-mail found 14 14 * Creates Articles in Smartaccounts of Woocommerce product on the order if existing products are not found. 15 Woocommerce product SKU is compared with SmartAccounts article code.15 Woocommerce product SKU is compared with SmartAccounts article code. 16 16 * Creates sales in invoice and connects it with the right customer and adds all the Articles on the invoice. 17 17 * Marks the sales invoice as paid. … … 44 44 == Changelog == 45 45 46 = 1.1 = 47 Woo order number reference is added to SmartAccounts invoice note 48 If company name is filled then invoice is connected to the Billing company 49 Discounted prices are used on invoices 50 Rounding calculation is added 51 Shipping item code is configurable 52 error.log is created in case of SmartAccounts communication issues 46 =1.3= 53 47 54 = 1.0 = 55 * Plugin is ready for production testing 48 Cart based discounts are handled better. -
smartaccounts/trunk/smartaccounts.php
r1864957 r1899812 4 4 * Plugin URI: https://github.com/smartman/woocommerce_smartaccounts 5 5 * Description: This plugin creates sales invoices in the smartaccounts.ee Online Accounting Software after Woocommerce order creation 6 * Version: 1. 2.36 * Version: 1.3 7 7 * Author: Margus Pala 8 8 * Author URI: https://marguspala.com
Note: See TracChangeset
for help on using the changeset viewer.