@snabcentr/client-core 4.25.0 → 4.25.1

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.
@@ -2428,6 +2428,12 @@ class ScOrderItem {
2428
2428
  }
2429
2429
  return this.product.isHidden ? 'Товар больше не предоставляется' : '';
2430
2430
  }
2431
+ /**
2432
+ * Возвращает предупреждение к позиции, которое не мешает ей попасть в заказ, или пустую строку.
2433
+ */
2434
+ getNotice() {
2435
+ return '';
2436
+ }
2431
2437
  /**
2432
2438
  * @inheritDoc
2433
2439
  */
@@ -7413,6 +7419,7 @@ class ScProfstroyOrderItem extends ScOrderItem {
7413
7419
  this.groupName = data.groupName?.trim() ? data.groupName.trim() : undefined;
7414
7420
  this.isIgnored = data.isIgnored ?? false;
7415
7421
  this.lineError = data.lineError?.trim() ? data.lineError.trim() : undefined;
7422
+ this.lineNotice = data.lineNotice?.trim() ? data.lineNotice.trim() : undefined;
7416
7423
  if (isProductStub) {
7417
7424
  const supplierSku = data.supplierSku ?? data.product?.supplierSku ?? undefined;
7418
7425
  this.product = ScProduct.createNotFound(data.product?.name, supplierSku);
@@ -7460,6 +7467,12 @@ class ScProfstroyOrderItem extends ScOrderItem {
7460
7467
  }
7461
7468
  return super.getUnavailableReason();
7462
7469
  }
7470
+ /**
7471
+ * @inheritDoc
7472
+ */
7473
+ getNotice() {
7474
+ return this.lineNotice ?? '';
7475
+ }
7463
7476
  }
7464
7477
 
7465
7478
  /**