diff --git a/LabelStoreMax/CHANGELOG.md b/LabelStoreMax/CHANGELOG.md index 16658ba..b876119 100644 --- a/LabelStoreMax/CHANGELOG.md +++ b/LabelStoreMax/CHANGELOG.md @@ -1,3 +1,8 @@ +## [2.4.1] - 2020-12-20 + +* Fix subtotal bug order creation +* Pubspec.yaml dependency updates + ## [2.4.0] - 2020-11-19 * Option to disable shipping in config diff --git a/LabelStoreMax/lib/helpers/data/order_wc.dart b/LabelStoreMax/lib/helpers/data/order_wc.dart index 647c072..90b83f1 100644 --- a/LabelStoreMax/lib/helpers/data/order_wc.dart +++ b/LabelStoreMax/lib/helpers/data/order_wc.dart @@ -11,6 +11,7 @@ import 'dart:io'; import 'package:label_storemax/helpers/shared_pref/sp_user_id.dart'; +import 'package:label_storemax/helpers/tools.dart'; import 'package:label_storemax/labelconfig.dart'; import 'package:label_storemax/models/billing_details.dart'; import 'package:label_storemax/models/cart.dart'; @@ -49,7 +50,7 @@ Future buildOrderWC({TaxRate taxRate, bool markPaid = true}) async { tmpLineItem.total = (cartItem.quantity > 1 ? cartItem.getCartTotal() : cartItem.subtotal); - tmpLineItem.subtotal = cartItem.subtotal; + tmpLineItem.subtotal = (parseWcPrice(cartItem.subtotal) * cartItem.quantity).toString(); lineItems.add(tmpLineItem); }); diff --git a/LabelStoreMax/lib/labelconfig.dart b/LabelStoreMax/lib/labelconfig.dart index 22200ea..a5f564f 100644 --- a/LabelStoreMax/lib/labelconfig.dart +++ b/LabelStoreMax/lib/labelconfig.dart @@ -16,7 +16,7 @@ import 'dart:ui'; Developer Notes SUPPORT EMAIL - support@woosignal.com - VERSION - 2.4.0 + VERSION - 2.4.1 https://woosignal.com */ diff --git a/LabelStoreMax/pubspec.lock b/LabelStoreMax/pubspec.lock index c9d7874..0868015 100644 --- a/LabelStoreMax/pubspec.lock +++ b/LabelStoreMax/pubspec.lock @@ -49,7 +49,7 @@ packages: name: cached_network_image url: "https://pub.dartlang.org" source: hosted - version: "2.3.3" + version: "2.4.1" characters: dependency: transitive description: @@ -112,7 +112,7 @@ packages: name: device_info url: "https://pub.dartlang.org" source: hosted - version: "0.4.2+9" + version: "1.0.0" device_info_platform_interface: dependency: transitive description: @@ -208,7 +208,7 @@ packages: name: flutter_cache_manager url: "https://pub.dartlang.org" source: hosted - version: "1.4.1" + version: "2.0.0" flutter_launcher_icons: dependency: "direct main" description: @@ -370,7 +370,7 @@ packages: name: path_provider url: "https://pub.dartlang.org" source: hosted - version: "1.6.11" + version: "1.6.24" path_provider_linux: dependency: transitive description: @@ -662,7 +662,7 @@ packages: name: woosignal url: "https://pub.dartlang.org" source: hosted - version: "1.2.1" + version: "1.3.0" woosignal_stripe: dependency: "direct main" description: diff --git a/LabelStoreMax/pubspec.yaml b/LabelStoreMax/pubspec.yaml index 197623e..b5378b6 100644 --- a/LabelStoreMax/pubspec.yaml +++ b/LabelStoreMax/pubspec.yaml @@ -1,7 +1,7 @@ # Official WooSignal App Template for WooCommerce # Label StoreMax -# Version 2.4.0 +# Version 2.4.1 # Homepage: https://woosignal.com # Author: Anthony Gordon # Documentation: https://woosignal.com/docs/app/ios/label-storemax @@ -23,12 +23,12 @@ environment: sdk: ">=2.1.0 <3.0.0" dependencies: - woosignal: ^1.2.1 + woosignal: ^1.3.1 woosignal_stripe: ^0.0.6 razorpay_flutter: ^1.2.2 wp_json_api: ^2.0.0 shared_preferences: ^0.5.12 - cached_network_image: ^2.3.3 + cached_network_image: ^2.4.1 page_transition: ^1.1.7+2 package_info: ^0.4.3 url_launcher: ^5.7.5 diff --git a/README.md b/README.md index 143cba0..7eaede2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ # WooCommerce App: Label StoreMax -### Label StoreMax - v2.4.0 +### Label StoreMax - v2.4.1 [Official WooSignal WooCommerce App](https://woosignal.com)