@seniorsistemas/yms-integration 1.29.0 → 1.29.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.
@@ -3601,16 +3601,17 @@ var InsertKeyComponent = /** @class */ (function () {
3601
3601
  };
3602
3602
  InsertKeyComponent.prototype.add = function () {
3603
3603
  this.visibleChange.emit(false);
3604
- if (!this.formGroup.get('key').value) {
3605
- return;
3606
- }
3607
3604
  this.searchKey();
3608
3605
  };
3609
3606
  InsertKeyComponent.prototype.searchKey = function () {
3610
3607
  var _this = this;
3611
3608
  var key = {
3612
3609
  documentKeys: [this.formGroup.get('key').value],
3613
- invoices: undefined,
3610
+ invoices: [{
3611
+ number: this.formGroup.get('invoiceNumber').value,
3612
+ serialNumber: this.formGroup.get('invoiceSerie').value,
3613
+ partnerDocument: this.formGroup.get('partnerDocument').value
3614
+ }],
3614
3615
  logistcUnitName: undefined,
3615
3616
  size: 0,
3616
3617
  offset: 0