ng-easycommerce 0.0.610 → 0.0.611
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 +2 -0
- package/bundles/ng-easycommerce.umd.js +8 -1
- package/bundles/ng-easycommerce.umd.js.map +1 -1
- package/bundles/ng-easycommerce.umd.min.js +1 -1
- package/bundles/ng-easycommerce.umd.min.js.map +1 -1
- package/esm2015/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +9 -2
- package/esm5/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.js +9 -2
- package/fesm2015/ng-easycommerce.js +8 -1
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +8 -1
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/checkout-ec/detail-checkout-block-ec/detail-checkout-block-ec.component.d.ts +1 -0
- package/ng-easycommerce.metadata.json +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# version 0.0.611
|
|
2
|
+
- Se muestra u oculta los impuestos en `detalle-checkout` segun la configuración del canal
|
|
1
3
|
# version 0.0.610
|
|
2
4
|
- Corrige errores al mostrar u ocultar precios según la configuración de cuenta corriente (creditAccountShowPrices)
|
|
3
5
|
- Reemplaza el uso de creditAmountConfigured y showPrice por creditAccountShowPrices
|
|
@@ -14365,6 +14365,13 @@
|
|
|
14365
14365
|
}
|
|
14366
14366
|
return type;
|
|
14367
14367
|
};
|
|
14368
|
+
DetailCheckoutBlockEcComponent.prototype.shouldShowItem = function (type) {
|
|
14369
|
+
if (type === 'discount' || type === 'coupon')
|
|
14370
|
+
return false;
|
|
14371
|
+
if (type === 'taxes')
|
|
14372
|
+
return !this.hideTaxes;
|
|
14373
|
+
return true;
|
|
14374
|
+
};
|
|
14368
14375
|
DetailCheckoutBlockEcComponent.ctorParameters = function () { return [
|
|
14369
14376
|
{ type: CheckoutService },
|
|
14370
14377
|
{ type: CartService },
|
|
@@ -14376,7 +14383,7 @@
|
|
|
14376
14383
|
DetailCheckoutBlockEcComponent = __decorate$1u([
|
|
14377
14384
|
core.Component({
|
|
14378
14385
|
selector: 'app-detail-checkout-block-ec',
|
|
14379
|
-
template: "<div id=\"appDetailCheckoutBlockEc\" class=\"d-flex flex-row w-100 justify-content-center flex-wrap\"\n *ngIf=\"data && (creditAccountShowPrices !== null ? creditAccountShowPrices : true)\">\n <ng-container *ngFor=\"let item of data; let i = index\">\n <ng-container *ngIf=\"item.type
|
|
14386
|
+
template: "<div id=\"appDetailCheckoutBlockEc\" class=\"d-flex flex-row w-100 justify-content-center flex-wrap\"\n *ngIf=\"data && (creditAccountShowPrices !== null ? creditAccountShowPrices : true)\">\n <ng-container *ngFor=\"let item of data; let i = index\">\n <ng-container *ngIf=\"shouldShowItem(item.type)\">\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon(item)\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">\n {{ getTypeLabel(item.type) | translate }}\n </strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{ (item.amount != 0 ) ? (item.amount |\n ecCurrencySymbol) : ('free' | translate) }}</span>\n </div>\n </ng-container>\n\n\n <!-- Mostrar total de descuentos -->\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\"\n *ngIf=\"!hideDiscounts && this.discountTotal != 0 && i === 1\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon2('discount')\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">Descuento</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{ (this.discountTotal | ecCurrencySymbol)\n }}</span>\n </div>\n\n <!-- Mostrar total de cupones -->\n <div class=\"d-flex flex-column justify-content-center mx-sm-3 mx-2 text-center mb-4 resumen\"\n *ngIf=\"!hideDiscounts && this.couponTotal != 0 && i === 1\">\n <i ngClass=\"mb-2 colorIconoCheckout\" [class]=\"getIcon2('coupon')\"></i>\n <strong class=\"text-center w-100 font-brandon font-md mb-1\">Cupon</strong>\n <span class=\"text-center w-100 font-brandon font-md text-gray\">{{(this.couponTotal| ecCurrencySymbol)\n }}</span>\n </div>\n </ng-container>\n</div>",
|
|
14380
14387
|
styles: [""]
|
|
14381
14388
|
})
|
|
14382
14389
|
], DetailCheckoutBlockEcComponent);
|