@seniorsistemas/yms-integration 1.38.0-591f5730-03b4-4f60-9cea-dcdc8ef07f02 → 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 +19 -15
- 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 +10 -8
- package/esm2015/src/wms/components/document-grid/register-document/register-document.component.js +11 -9
- package/esm5/src/wms/components/document-grid/insert-key/insert-key.component.js +10 -8
- package/esm5/src/wms/components/document-grid/register-document/register-document.component.js +11 -9
- package/fesm2015/seniorsistemas-yms-integration.js +19 -15
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +19 -15
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
|
@@ -3782,14 +3782,16 @@ var RegisterDocumentComponent = /** @class */ (function () {
|
|
|
3782
3782
|
});
|
|
3783
3783
|
};
|
|
3784
3784
|
RegisterDocumentComponent.prototype.save = function () {
|
|
3785
|
-
if (
|
|
3786
|
-
this.
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3785
|
+
if (this.isWmsSeniorConnect()) {
|
|
3786
|
+
if (!this.planta.codigo) {
|
|
3787
|
+
this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
|
|
3788
|
+
return;
|
|
3789
|
+
}
|
|
3790
|
+
var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
|
|
3791
|
+
if (logistcUnitDocument !== this.planta.codigo) {
|
|
3792
|
+
this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
|
|
3793
|
+
return;
|
|
3794
|
+
}
|
|
3793
3795
|
}
|
|
3794
3796
|
this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
|
|
3795
3797
|
this.formGroup.reset();
|
|
@@ -3978,13 +3980,15 @@ var InsertKeyComponent = /** @class */ (function () {
|
|
|
3978
3980
|
return;
|
|
3979
3981
|
}
|
|
3980
3982
|
var document = content.contents[0];
|
|
3981
|
-
if (
|
|
3982
|
-
_this.
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
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
|
+
}
|
|
3988
3992
|
}
|
|
3989
3993
|
document.invoiceKey = _this.formGroup.get('key').value;
|
|
3990
3994
|
document.invoiceCondition = InvoiceCondition.AUTHORIZED;
|