@seniorsistemas/yms-integration 1.38.0-0be270cf-7979-4065-88af-d4097b6f6e51 → 1.38.0-84525130-8955-4de4-9dbd-cbae08fb1cda
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.
- package/bundles/seniorsistemas-yms-integration.umd.js +13 -19
- package/bundles/seniorsistemas-yms-integration.umd.js.map +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js +1 -1
- package/bundles/seniorsistemas-yms-integration.umd.min.js.map +1 -1
- package/esm2015/src/wms/components/document-grid/insert-key/insert-key.component.js +11 -14
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +4 -7
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +11 -14
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +4 -7
- package/fesm2015/seniorsistemas-yms-integration.js +13 -19
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +13 -19
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
- package/seniorsistemas-yms-integration.metadata.json +1 -1
- package/src/wms/components/document-grid/insert-key/insert-key.component.d.ts +0 -1
- package/src/wms/components/document-grid/register-document/register-document.component.d.ts +0 -1
|
@@ -3782,22 +3782,19 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3782
3782
|
});
|
|
3783
3783
|
};
|
|
3784
3784
|
RegisterDocumentComponent.prototype.save = function () {
|
|
3785
|
-
var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
|
|
3786
|
-
this.validateYardDocument(logistcUnitDocument);
|
|
3787
|
-
this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
|
|
3788
|
-
this.formGroup.reset();
|
|
3789
|
-
};
|
|
3790
|
-
RegisterDocumentComponent.prototype.validateYardDocument = function (logistcUnitDocument) {
|
|
3791
3785
|
if (this.isWmsSeniorConnect()) {
|
|
3792
3786
|
if (!this.planta.codigo) {
|
|
3793
3787
|
this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
|
|
3794
3788
|
return;
|
|
3795
3789
|
}
|
|
3790
|
+
var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
|
|
3796
3791
|
if (logistcUnitDocument !== this.planta.codigo) {
|
|
3797
3792
|
this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
|
|
3798
3793
|
return;
|
|
3799
3794
|
}
|
|
3800
3795
|
}
|
|
3796
|
+
this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
|
|
3797
|
+
this.formGroup.reset();
|
|
3801
3798
|
};
|
|
3802
3799
|
RegisterDocumentComponent.prototype.isWmsWis = function () {
|
|
3803
3800
|
return this.wmsSystem === WmsSystem.WIS;
|
|
@@ -3983,25 +3980,22 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3983
3980
|
return;
|
|
3984
3981
|
}
|
|
3985
3982
|
var document = content.contents[0];
|
|
3986
|
-
_this.
|
|
3983
|
+
if (_this.isWmsSeniorConnect()) {
|
|
3984
|
+
if (!_this.planta.codigo) {
|
|
3985
|
+
_this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
|
|
3986
|
+
return;
|
|
3987
|
+
}
|
|
3988
|
+
if (document.logistcUnitDocument !== _this.planta.codigo) {
|
|
3989
|
+
_this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
|
|
3990
|
+
return;
|
|
3991
|
+
}
|
|
3992
|
+
}
|
|
3987
3993
|
document.invoiceKey = _this.formGroup.get('key').value;
|
|
3988
3994
|
document.invoiceCondition = InvoiceCondition.AUTHORIZED;
|
|
3989
3995
|
_this.document.emit(document);
|
|
3990
3996
|
_this.formGroup.reset();
|
|
3991
3997
|
});
|
|
3992
3998
|
};
|
|
3993
|
-
InsertKeyComponent.prototype.validateYardDocument = function (logistcUnitDocument) {
|
|
3994
|
-
if (this.isWmsSeniorConnect()) {
|
|
3995
|
-
if (!this.planta.codigo) {
|
|
3996
|
-
this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
|
|
3997
|
-
return;
|
|
3998
|
-
}
|
|
3999
|
-
if (logistcUnitDocument !== this.planta.codigo) {
|
|
4000
|
-
this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
|
|
4001
|
-
return;
|
|
4002
|
-
}
|
|
4003
|
-
}
|
|
4004
|
-
};
|
|
4005
3999
|
InsertKeyComponent.prototype.confirmInvoiceDialog = function () {
|
|
4006
4000
|
var _this = this;
|
|
4007
4001
|
if (this.isWmsWis()) {
|