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.
@@ -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, ref) {
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(ref || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
51
- this.measureUnit = this.getGtinFromGtins(ref || 0, bluesoft.gtins)?.commercialUnit?.typePackaging || 'Unidade';
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvZHVjdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcHJvZHVjdC1nbG9iYWwvZW50aXRpZXMvcHJvZHVjdC5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUN4QyxPQUFPLEVBQUUsU0FBUyxFQUFF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hdGVkQXQgPSBuZXcgRGF0ZSgpO1xyXG4gICAgICB0aGlzLndpZHRoID0gYmx1ZXNvZnQud2lkdGggfHwgMDtcclxuICAgIH1cclxuICAgIGlmIChkYXRhKSB7XHJcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XHJcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xyXG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXHJcblxyXG4gIC8vICNyZWdpb24gUHJpdmF0ZSBNZXRob2RzICgxKVxyXG5cclxuICBwcml2YXRlIGdldEd0aW5Gcm9tR3RpbnMocmVmOiBudW1iZXIsIGd0aW5zOiBJQmx1ZVNvZnRHdGluW10pOiBJQmx1ZVNvZnRHdGluIHwgbnVsbCB7XHJcbiAgICBmb3IgKGxldCBpID0gMDsgaSA8IGd0aW5zLmxlbmd0aDsgaSsrKSB7XHJcbiAgICAgIGlmIChndGluc1tpXS5ndGluID09PSByZWYpIHtcclxuICAgICAgICByZXR1cm4gZ3RpbnNbaV07XHJcbiAgICAgIH1cclxuICAgIH1cclxuICAgIHJldHVybiBudWxsO1xyXG4gIH1cclxuICBwcml2YXRlIGN1cnJlbmN5U3RyaW5nVG9OdW1iZXIodmFsdWU6IHN0cmluZyk6IG51bWJlciB7XHJcbiAgICByZXR1cm4gTnVtYmVyKHZhbHVlLnJlcGxhY2UoL1teMC05Li1dKy9nLCAnJykpO1xyXG4gIH1cclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBQcml2YXRlIE1ldGhvZHMgKDEpXHJcbn1cclxuIl19
@@ -3137,7 +3137,7 @@ class ProductGlobalEntity {
3137
3137
  width = 0;
3138
3138
  // #endregion Properties (26)
3139
3139
  // #region Constructors (1)
3140
- constructor(data, bluesoft, ref) {
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(ref || 0, bluesoft.gtins)?.commercialUnit?.quantityPackaging || 1;
3157
- this.measureUnit = this.getGtinFromGtins(ref || 0, bluesoft.gtins)?.commercialUnit?.typePackaging || 'Unidade';
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);