@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
|
@@ -3841,14 +3841,16 @@
|
|
|
3841
3841
|
});
|
|
3842
3842
|
};
|
|
3843
3843
|
RegisterDocumentComponent.prototype.save = function () {
|
|
3844
|
-
if (
|
|
3845
|
-
this.
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3844
|
+
if (this.isWmsSeniorConnect()) {
|
|
3845
|
+
if (!this.planta.codigo) {
|
|
3846
|
+
this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
|
|
3847
|
+
return;
|
|
3848
|
+
}
|
|
3849
|
+
var logistcUnitDocument = this.formGroup.get("logistcUnitDocument").value;
|
|
3850
|
+
if (logistcUnitDocument !== this.planta.codigo) {
|
|
3851
|
+
this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
|
|
3852
|
+
return;
|
|
3853
|
+
}
|
|
3852
3854
|
}
|
|
3853
3855
|
this.document.emit(Document.fromDto(this.formGroup.getRawValue()));
|
|
3854
3856
|
this.formGroup.reset();
|
|
@@ -4037,13 +4039,15 @@
|
|
|
4037
4039
|
return;
|
|
4038
4040
|
}
|
|
4039
4041
|
var document = content.contents[0];
|
|
4040
|
-
if (
|
|
4041
|
-
_this.
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4042
|
+
if (_this.isWmsSeniorConnect()) {
|
|
4043
|
+
if (!_this.planta.codigo) {
|
|
4044
|
+
_this.utils.message("warn", "yms.int.yard_code_not_found_warning_header", "yms.int.yard_code_not_found_warning_description");
|
|
4045
|
+
return;
|
|
4046
|
+
}
|
|
4047
|
+
if (document.logistcUnitDocument !== _this.planta.codigo) {
|
|
4048
|
+
_this.utils.message("warn", "yms.int.document_yard_mismatch_agenda_warning_header", "yms.int.document_yard_mismatch_agenda_warning_description");
|
|
4049
|
+
return;
|
|
4050
|
+
}
|
|
4047
4051
|
}
|
|
4048
4052
|
document.invoiceKey = _this.formGroup.get('key').value;
|
|
4049
4053
|
document.invoiceCondition = InvoiceCondition.AUTHORIZED;
|