@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.
@@ -3660,16 +3660,17 @@
3660
3660
  };
3661
3661
  InsertKeyComponent.prototype.add = function () {
3662
3662
  this.visibleChange.emit(false);
3663
- if (!this.formGroup.get('key').value) {
3664
- return;
3665
- }
3666
3663
  this.searchKey();
3667
3664
  };
3668
3665
  InsertKeyComponent.prototype.searchKey = function () {
3669
3666
  var _this = this;
3670
3667
  var key = {
3671
3668
  documentKeys: [this.formGroup.get('key').value],
3672
- invoices: undefined,
3669
+ invoices: [{
3670
+ number: this.formGroup.get('invoiceNumber').value,
3671
+ serialNumber: this.formGroup.get('invoiceSerie').value,
3672
+ partnerDocument: this.formGroup.get('partnerDocument').value
3673
+ }],
3673
3674
  logistcUnitName: undefined,
3674
3675
  size: 0,
3675
3676
  offset: 0