ng-easycommerce 0.0.617 → 0.0.619

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,7 @@
1
+ # version 0.0.618
2
+ - Se añade if para comprobar si existe priceWithouTaxes
3
+ # version 0.0.618
4
+ - Se añade priceWithoutTaxes para mostrarlo en el componente de app-price.
1
5
  # version 0.0.617
2
6
  - Ajustes para varias tareas:
3
7
  https://app.asana.com/1/1157950587683824/project/1184273518600913/task/1209279811275682?focus=true
@@ -10612,7 +10612,12 @@
10612
10612
  var asociated = {};
10613
10613
  if (_this.isReady()) {
10614
10614
  asociated.stock = _this.variants[0].stock;
10615
- asociated.price = _this.variants[0].price.toString();
10615
+ if (_this.variants[0].priceWithoutTaxes) {
10616
+ asociated.price = _this.variants[0].priceWithoutTaxes.toString();
10617
+ }
10618
+ else {
10619
+ asociated.price = _this.variants[0].price.toString();
10620
+ }
10616
10621
  asociated.saleprice = _this.variants[0].saleprice && _this.variants[0].saleprice.toString() || undefined;
10617
10622
  asociated.discount = ((_a = _this.variants[0]) === null || _a === void 0 ? void 0 : _a.discount) || undefined;
10618
10623
  asociated.properties = _this.variants[0].properties ? _this.beautifyProperties(_this.variants[0].properties) : undefined;
@@ -12378,6 +12383,9 @@
12378
12383
  __decorate$1f([
12379
12384
  core.Input()
12380
12385
  ], PriceEcComponent.prototype, "saleprice", void 0);
12386
+ __decorate$1f([
12387
+ core.Input()
12388
+ ], PriceEcComponent.prototype, "priceWithoutTaxes", void 0);
12381
12389
  __decorate$1f([
12382
12390
  core.Input()
12383
12391
  ], PriceEcComponent.prototype, "priceSize", void 0);