ng-easycommerce 0.0.546 → 0.0.548

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,3 +1,5 @@
1
+ # version 0.0.547 y 0.0.548
2
+ - se castea el codigo postal en checkout para que se mande como string
1
3
  # version 0.0.545 y 0.0.546
2
4
  - se pone codigo postal en checkout tipo numerico
3
5
  # version 0.0.544
@@ -3686,6 +3686,8 @@
3686
3686
  };
3687
3687
  _this.setAddress = function (user_data) {
3688
3688
  user_data.locale = _this.consts.getLocale();
3689
+ // se modifica el código postal para castearlo a String antes de enviarlo
3690
+ user_data.shippingAddress.postcode = user_data.shippingAddress.postcode.toString();
3689
3691
  return _this.connection.put(_this.putAddressApi(), user_data).pipe(operators.map(function (order) {
3690
3692
  if (order && order.error) {
3691
3693
  _this.cartService.changeHaveToUpdate(false);