Finish Integry_DP&OrdiniA_Fixes
This commit is contained in:
@@ -937,14 +937,14 @@
|
||||
"title": "Tipi Attività",
|
||||
"url": "rilevazioni_steup.php?attivita",
|
||||
"usergroups": [
|
||||
21
|
||||
"21"
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": "Assegnazione punteggi",
|
||||
"url": "rilevazioni_steup.php?punteggi",
|
||||
"usergroups": [
|
||||
21
|
||||
"21"
|
||||
]
|
||||
}
|
||||
],
|
||||
|
||||
@@ -326,13 +326,15 @@ if ($ret->is_OK()) {
|
||||
<span class="input-group-addon">Lingua</span>
|
||||
<select style="width: 100%" name="lingua" class="form-control" autocomplete="off">
|
||||
<?php
|
||||
$lingua = Azienda::getLingua();
|
||||
$linguaSelezionata = Azienda::getLingua();
|
||||
|
||||
if (!$isNuovoOrdine) {
|
||||
$arrayLingue = array();
|
||||
|
||||
foreach ($lingue as $label => $lingua) {
|
||||
$arrayLingue[] = $lingua['cod_lingua'];
|
||||
}
|
||||
|
||||
$linguaOrdine = array_get($ordine, "cod_lingua");
|
||||
$linguaCliente = array_get($clieData, "cod_lingua");
|
||||
|
||||
|
||||
@@ -1133,8 +1133,8 @@ PopupOrdine.prototype._refreshArticoliSelezionati = function () {
|
||||
};
|
||||
|
||||
PopupOrdine.prototype._compileClieData = function () {
|
||||
var self = this;
|
||||
var $div = self._modalBox.$div;
|
||||
const self = this;
|
||||
const $div = self._modalBox.$div;
|
||||
|
||||
if (!is_null(self._clieData)) {
|
||||
if (is_null(self._clieData.cod_vlis)) {
|
||||
@@ -1146,9 +1146,9 @@ PopupOrdine.prototype._compileClieData = function () {
|
||||
if (!_.isNil(self._clieData.note) && _.isEmpty($div.find("[name=note]").val())) {
|
||||
$div.find("[name=note]").val(self._clieData.note);
|
||||
}
|
||||
var $noteContainer = $div.find("#note_clie_container");
|
||||
$noteContainer.find("input.note_clie").remove();
|
||||
|
||||
const $noteContainer = $div.find("#note_clie_container");
|
||||
$noteContainer.find("input.note_clie").remove();
|
||||
|
||||
if (!_.isNil(self._clieData.gtb_anag_note)) {
|
||||
$noteContainer.append($("<input>", {
|
||||
@@ -1200,21 +1200,25 @@ PopupOrdine.prototype._compileClieData = function () {
|
||||
if (!is_null(self._clieData.gtb_anag_telefono)) {
|
||||
$div.find("#telefono_clie").val(self._clieData.gtb_anag_telefono);
|
||||
}
|
||||
|
||||
if (!is_null(self._clieData.term_cons)) {
|
||||
$div.find("[name=term_cons]").val(self._clieData.term_cons);
|
||||
} else {
|
||||
$div.find("[name=term_cons]").val("");
|
||||
}
|
||||
|
||||
if (!is_null(self._clieData.cig)) {
|
||||
$div.find("[name=cig]").val(self._clieData.cig);
|
||||
} else {
|
||||
$div.find("[name=cig]").val("");
|
||||
}
|
||||
|
||||
if (!is_null(self._clieData.cup)) {
|
||||
$div.find("[name=cup]").val(self._clieData.cup);
|
||||
} else {
|
||||
$div.find("[name=cup]").val("");
|
||||
}
|
||||
|
||||
if (!is_null(self._clieData.codice_commessa)) {
|
||||
$div.find("[name=codice_commessa]").val(self._clieData.codice_commessa);
|
||||
} else {
|
||||
@@ -1255,12 +1259,7 @@ PopupOrdine.prototype._compileClieData = function () {
|
||||
var codBancAzi = new Option(self._clieData.descr_banc_azi, self._clieData.cod_banc_azi, true, true);
|
||||
$div.find("[name=cod_banc_azi]").append(codBancAzi).trigger("change");
|
||||
}
|
||||
/*
|
||||
if (!_.isNil(self._clieData.cod_banc)) {
|
||||
var codBAnc = new Option(self._clieData.descr_banc, self._clieData.cod_banc, true, true);
|
||||
$div.find("[name=cod_banc]").append(codBAnc).trigger('change');
|
||||
}
|
||||
*/
|
||||
|
||||
if (!_.isNil(self._clieData.cod_paga)) {
|
||||
const codPaga = new Option(self._clieData.descr_paga, self._clieData.cod_paga, true, true);
|
||||
$div.find("[name=cod_paga]").append(codPaga).trigger("change");
|
||||
@@ -1302,6 +1301,10 @@ PopupOrdine.prototype._compileClieData = function () {
|
||||
$codVdes.readonly();
|
||||
}
|
||||
|
||||
if (self._clieData.cod_lingua) {
|
||||
$("[name='lingua']").val(self._clieData.cod_lingua);
|
||||
}
|
||||
|
||||
$codVdes.enabled().selectpicker("refresh").change();
|
||||
$codVvet.selectpicker("refresh");
|
||||
$porto.selectpicker("refresh");
|
||||
@@ -2117,7 +2120,7 @@ PopupOrdine.prototype._buildRigaArticolo = function (articolo, rigaOrdine) {
|
||||
// });
|
||||
|
||||
self._buildRowEvents($tr, articolo);
|
||||
// ._checkRigaImportoZero($tr);
|
||||
// ._checkRigaImportoZero($tr);
|
||||
|
||||
$tbody.append($tr);
|
||||
self._recalcTotali();
|
||||
|
||||
@@ -179,8 +179,10 @@ if ($Ret->is_OK()) {
|
||||
<span class="<?= !$flagEsportato ? "dataExport_timePart" : "" ?> small"><?= Utility\Date::format($dataEsportazione, Format::strftimeHM) ?></span>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<?= Utility\Date::format($dataRicezione, Format::strftimeDMy) ?><br/>
|
||||
<span class="small"><?= Utility\Date::format($dataRicezione, Format::strftimeHM) ?></span>
|
||||
<?php if ($dataRicezione) { ?>
|
||||
<?= Utility\Date::format($dataRicezione, Format::strftimeDMy) ?><br/>
|
||||
<span class="small"><?= Utility\Date::format($dataRicezione, Format::strftimeHM) ?></span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td class="text-center">
|
||||
<div class="btn-group">
|
||||
|
||||
Reference in New Issue
Block a user