cecon-interfaces 1.1.82 → 1.1.83
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/product-global/entities/product.entity.mjs +4 -4
- package/dist/fesm2022/cecon-interfaces.mjs +3 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/product-global/entities/product.entity.d.ts +1 -1
- package/dist/product-global/entities/product.entity.js +3 -3
- package/package.json +1 -1
@@ -31,7 +31,7 @@ export class ProductGlobalEntity {
|
|
31
31
|
width = 0;
|
32
32
|
// #endregion Properties (26)
|
33
33
|
// #region Constructors (1)
|
34
|
-
constructor(data, bluesoft
|
34
|
+
constructor(data, bluesoft) {
|
35
35
|
if (bluesoft) {
|
36
36
|
this.active = true;
|
37
37
|
this.avgPrice = bluesoft.avgPrice;
|
@@ -47,8 +47,8 @@ export class ProductGlobalEntity {
|
|
47
47
|
this.id = '';
|
48
48
|
this.length = bluesoft.length || 0;
|
49
49
|
this.maxPrice = bluesoft.maxPrice || 0;
|
50
|
-
this.measureQuantity = this.getGtinFromGtins(
|
51
|
-
this.measureUnit = this.getGtinFromGtins(
|
50
|
+
this.measureQuantity = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
|
51
|
+
this.measureUnit = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)?.commercialUnit?.typePackaging || 'Unidade';
|
52
52
|
this.minPrice = bluesoft.minPrice || 0;
|
53
53
|
this.name = bluesoft.description || '';
|
54
54
|
this.ncm = new ProductNcmEntity(bluesoft.ncm);
|
@@ -81,4 +81,4 @@ export class ProductGlobalEntity {
|
|
81
81
|
return Number(value.replace(/[^0-9.-]+/g, ''));
|
82
82
|
}
|
83
83
|
}
|
84
|
-
//# sourceMappingURL=data:application/json;base64,
|
84
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5lbnRpdHkuanMiLCJzb3VyY2VSb290Ijo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4gIC8vICNyZWdpb24gUHJpdmF0ZSBNZXRob2RzICgxKVxyXG5cclxuICBwcml2YXRlIGdldEd0aW5Gcm9tR3RpbnMocmVmOiBudW1iZXIsIGd0aW5zOiBJQmx1ZVNvZnRHdGluW10pOiBJQmx1ZVNvZnRHdGluIHwgbnVsbCB7XHJcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGd0aW5zLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgIGlmIChndGluc1tpXS5ndGluID09PSByZWYpIHtcclxuICAgICAgICByZXR1cm4gZ3RpbnNbaV07XHJcbiAgICAgIH1cclxuICAgIH1cclxuICAgIHJldHVybiBudWxsO1xyXG4gIH1cclxuICBwcml2YXRlIGN1cnJlbmN5U3RyaW5nVG9OdW1iZXIodmFsdWU6IHN0cmluZyk6IG51bWJlciB7XHJcbiAgICByZXR1cm4gTnVtYmVyKHZhbHVlLnJlcGxhY2UoL1teMC05Li1dKy9nLCAnJykpO1xyXG4gIH1cclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcml2YXRlIE1ldGhvZHMgKDEpXHJcbn1cclxuIl19
|
@@ -3137,7 +3137,7 @@ class ProductGlobalEntity {
|
|
3137
3137
|
width = 0;
|
3138
3138
|
// #endregion Properties (26)
|
3139
3139
|
// #region Constructors (1)
|
3140
|
-
constructor(data, bluesoft
|
3140
|
+
constructor(data, bluesoft) {
|
3141
3141
|
if (bluesoft) {
|
3142
3142
|
this.active = true;
|
3143
3143
|
this.avgPrice = bluesoft.avgPrice;
|
@@ -3153,8 +3153,8 @@ class ProductGlobalEntity {
|
|
3153
3153
|
this.id = '';
|
3154
3154
|
this.length = bluesoft.length || 0;
|
3155
3155
|
this.maxPrice = bluesoft.maxPrice || 0;
|
3156
|
-
this.measureQuantity = this.getGtinFromGtins(
|
3157
|
-
this.measureUnit = this.getGtinFromGtins(
|
3156
|
+
this.measureQuantity = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
|
3157
|
+
this.measureUnit = this.getGtinFromGtins(bluesoft.gtin || 0, bluesoft.gtins)?.commercialUnit?.typePackaging || 'Unidade';
|
3158
3158
|
this.minPrice = bluesoft.minPrice || 0;
|
3159
3159
|
this.name = bluesoft.description || '';
|
3160
3160
|
this.ncm = new ProductNcmEntity(bluesoft.ncm);
|