@seniorsistemas/yms-integration 1.11.3 → 1.11.4
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 +10 -2
- 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/erp-senior/recebimento/form/recebimento-form.component.js +11 -3
- package/esm5/src/erp-senior/recebimento/form/recebimento-form.component.js +11 -3
- package/fesm2015/seniorsistemas-yms-integration.js +10 -2
- package/fesm2015/seniorsistemas-yms-integration.js.map +1 -1
- package/fesm5/seniorsistemas-yms-integration.js +10 -2
- package/fesm5/seniorsistemas-yms-integration.js.map +1 -1
- package/package.json +1 -1
|
@@ -9931,6 +9931,14 @@
|
|
|
9931
9931
|
};
|
|
9932
9932
|
RecebimentoFormComponent.prototype.createdByErpDisableForm = function () {
|
|
9933
9933
|
this.disableOrdersButtons = this.agenda.createdByErp;
|
|
9934
|
+
if (this.isNew()) {
|
|
9935
|
+
this.createdByErp = false;
|
|
9936
|
+
this.formGroup.get('filial').enable();
|
|
9937
|
+
this.formGroup.get('produto').enable();
|
|
9938
|
+
this.formGroup.get('derivacao').enable();
|
|
9939
|
+
this.formGroup.get('transportadora').enable();
|
|
9940
|
+
this.formGroup.get("fornecedores").controls.forEach(function (form) { return form.get("fornecedor").enable(); });
|
|
9941
|
+
}
|
|
9934
9942
|
if (this.agenda && this.agenda.createdByErp) {
|
|
9935
9943
|
this.createdByErp = true;
|
|
9936
9944
|
this.formGroup.get('filial').disable();
|
|
@@ -10808,7 +10816,7 @@
|
|
|
10808
10816
|
RecebimentoFormComponent.prototype.showButtons = function () {
|
|
10809
10817
|
if (!this.agenda)
|
|
10810
10818
|
return false;
|
|
10811
|
-
return [
|
|
10819
|
+
return this.isNew() || [
|
|
10812
10820
|
StatusAgenda.AGENDADO,
|
|
10813
10821
|
StatusAgenda.AGUARDANDO_CONFIRMACAO,
|
|
10814
10822
|
StatusAgenda.AGUARDANDO_CONFIRMACAO_SOLICITANTE,
|
|
@@ -10901,7 +10909,7 @@
|
|
|
10901
10909
|
RecebimentoFormComponent.prototype.getFormGroup = function () {
|
|
10902
10910
|
return this.formBuilder.group({
|
|
10903
10911
|
id: [{ value: undefined, disabled: true }, forms.Validators.compose([])],
|
|
10904
|
-
filial: [undefined, forms.Validators.required],
|
|
10912
|
+
filial: [{ value: undefined, disabled: false }, forms.Validators.required],
|
|
10905
10913
|
produto: [{ value: undefined, disabled: true }, forms.Validators.compose([forms.Validators.required])],
|
|
10906
10914
|
derivacao: [{ value: undefined, disabled: true }, forms.Validators.compose([])],
|
|
10907
10915
|
transportadora: [{ value: undefined, disabled: false }, forms.Validators.compose([])],
|