Skip to content

Commit

Permalink
v7.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Jul 31, 2024
1 parent 0d65224 commit 7185a3d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
5 changes: 5 additions & 0 deletions LabelStoreMax/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [7.5.7] - 2024-07-31

* Update order_wc.dart class
* Pubspec.yaml dependency updates

## [7.5.6] - 2024-07-18

* Pubspec.yaml dependency updates
Expand Down
18 changes: 9 additions & 9 deletions LabelStoreMax/lib/bootstrap/data/order_wc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ Future<OrderWC> buildOrderWC({TaxRate? taxRate, bool markPaid = true}) async {

Shipping shipping = Shipping();

shipping.firstName = billingDetails.shippingAddress!.firstName;
shipping.lastName = billingDetails.shippingAddress!.lastName;
shipping.address1 = billingDetails.shippingAddress!.addressLine;
shipping.city = billingDetails.shippingAddress!.city;
shipping.postcode = billingDetails.shippingAddress!.postalCode;
if (billingDetails.shippingAddress!.customerCountry!.hasState()) {
billing.state =
billingDetails.shippingAddress!.customerCountry!.state!.name;
shipping.firstName = billingDetails.shippingAddress?.firstName;
shipping.lastName = billingDetails.shippingAddress?.lastName;
shipping.address1 = billingDetails.shippingAddress?.addressLine;
shipping.city = billingDetails.shippingAddress?.city;
shipping.postcode = billingDetails.shippingAddress?.postalCode;
if (billingDetails.shippingAddress?.customerCountry?.hasState() ?? false) {
shipping.state =
billingDetails.shippingAddress?.customerCountry?.state?.name;
}
billing.country = billingDetails.shippingAddress!.customerCountry!.name;
shipping.country = billingDetails.shippingAddress?.customerCountry?.name;

orderWC.shipping = shipping;

Expand Down
2 changes: 1 addition & 1 deletion LabelStoreMax/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Official WooSignal App Template for WooCommerce

# Label StoreMax
# Version: 7.5.6
# Version: 7.5.7
# Author: Anthony Gordon
# Homepage: https://woosignal.com
# Documentation: https://woosignal.com/docs/app/label-storemax
Expand Down

0 comments on commit 7185a3d

Please sign in to comment.