ng-easycommerce 0.0.664 → 0.0.665-beta.2
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 +4 -0
- package/assets/ec-i18n/es.json +1 -0
- package/bundles/ng-easycommerce.umd.js +16 -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/cart-ec/cart-ec.component.js +17 -2
- package/esm5/lib/ec-component/cart-ec/cart-ec.component.js +17 -2
- package/fesm2015/ng-easycommerce.js +16 -1
- package/fesm2015/ng-easycommerce.js.map +1 -1
- package/fesm5/ng-easycommerce.js +16 -1
- package/fesm5/ng-easycommerce.js.map +1 -1
- package/lib/ec-component/cart-ec/cart-ec.component.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# Version 0.0.665-beta.2
|
|
2
|
+
- Se agrega traduccion en ingles.
|
|
3
|
+
# Version 0.0.665-beta.1
|
|
4
|
+
- Se modifica el mensaje de alerta de precio minimo de compra para que si tiene cuenta corriente no muestre la cantidad.
|
|
1
5
|
# Version 0.0.664
|
|
2
6
|
- Se corrige campo notas del proceso de facturacion para que tome correctamente el valor del parámetro
|
|
3
7
|
# Version 0.0.663
|
package/assets/ec-i18n/es.json
CHANGED
|
@@ -412,6 +412,7 @@
|
|
|
412
412
|
"clientTaxes": "Impuesto por cliente",
|
|
413
413
|
"email_already_registered": "El email ingresado ya se encuentra registrado.",
|
|
414
414
|
"quantity-not-exceeded": "Debe realizar un pedido con un monto mínimo de {{ amount }} para finalizar su compra.",
|
|
415
|
+
"quantity-not-exceeded-whitout-amount": "No llega a la cantidad mínima para finalizar su compra.",
|
|
415
416
|
"mail-enter": "Correo electronico",
|
|
416
417
|
"this-payment-method-cannot-be-used": "Este método de pago no puede ser utilizado",
|
|
417
418
|
"payment-date": "Fecha de pago",
|
|
@@ -7560,7 +7560,22 @@
|
|
|
7560
7560
|
_this.getMinimumPurchaseAmount = function () {
|
|
7561
7561
|
return _this.channel.type == 'b2b' ? _this.channel.wholesalerMinimumPurchaseAmount : _this.channel.retailerMinimumPurchaseAmount;
|
|
7562
7562
|
};
|
|
7563
|
-
_this.exceedsMinimumAmount = function (value) {
|
|
7563
|
+
_this.exceedsMinimumAmount = function (value) {
|
|
7564
|
+
if (value >= _this.getMinimumPurchaseAmount()) {
|
|
7565
|
+
return _this.redirectCheckout();
|
|
7566
|
+
}
|
|
7567
|
+
else {
|
|
7568
|
+
// Verificar si hay un balance de cliente activo
|
|
7569
|
+
_this.cartService.balanceCustomer$.subscribe(function (balanceCustomer) {
|
|
7570
|
+
if (balanceCustomer && balanceCustomer.creditAmount !== null && balanceCustomer.creditAmount !== undefined) {
|
|
7571
|
+
_this.toastrService.show('quantity-not-exceeded-whitout-amount');
|
|
7572
|
+
}
|
|
7573
|
+
else {
|
|
7574
|
+
_this.toastrService.show('quantity-not-exceeded', { amount: _this.getMinimumPurchaseAmount() });
|
|
7575
|
+
}
|
|
7576
|
+
}).unsubscribe(); // Desuscribirse inmediatamente después de obtener el valor
|
|
7577
|
+
}
|
|
7578
|
+
};
|
|
7564
7579
|
_this.ecOnConstruct();
|
|
7565
7580
|
_this.isLoggedIn = _this.authService.isAuthenticated();
|
|
7566
7581
|
_this.mediaUrl = _this.consts.mediaUrl();
|