mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-24 07:17:55 +01:00
Fix minore
This commit is contained in:
parent
af2f79f817
commit
95ca1f6488
@ -17,8 +17,6 @@
|
|||||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
use Geocoder\Provider\GoogleMaps;
|
|
||||||
use Ivory\HttpAdapter\CurlHttpAdapter;
|
|
||||||
use Modules\Anagrafiche\Anagrafica;
|
use Modules\Anagrafiche\Anagrafica;
|
||||||
use Modules\Anagrafiche\Export\CSV;
|
use Modules\Anagrafiche\Export\CSV;
|
||||||
|
|
||||||
@ -50,7 +48,7 @@ switch (post('op')) {
|
|||||||
|
|
||||||
// TODO: da riscrivere con Guzzle e spostare su hook
|
// TODO: da riscrivere con Guzzle e spostare su hook
|
||||||
$ch = curl_init();
|
$ch = curl_init();
|
||||||
$url = "https://nominatim.openstreetmap.org/search.php?q=".$indirizzo."&format=jsonv2";
|
$url = 'https://nominatim.openstreetmap.org/search.php?q='.$indirizzo.'&format=jsonv2';
|
||||||
$user_agent = 'traccar';
|
$user_agent = 'traccar';
|
||||||
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
|
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
|
||||||
curl_setopt($ch, CURLOPT_URL, $url);
|
curl_setopt($ch, CURLOPT_URL, $url);
|
||||||
|
@ -39,7 +39,7 @@ switch (filter('op')) {
|
|||||||
'help' => filter('help'),
|
'help' => filter('help'),
|
||||||
'predefined' => $predefined,
|
'predefined' => $predefined,
|
||||||
'enabled' => post('enabled'),
|
'enabled' => post('enabled'),
|
||||||
'id_segment' => post('id_segment')
|
'id_segment' => post('id_segment'),
|
||||||
], ['id' => $id_record]);
|
], ['id' => $id_record]);
|
||||||
|
|
||||||
flash()->info(tr('Salvataggio completato!'));
|
flash()->info(tr('Salvataggio completato!'));
|
||||||
|
@ -53,7 +53,7 @@ include_once __DIR__.'/../../core.php';
|
|||||||
$id_module_acquisti = database()->fetchOne('SELECT id FROM zz_modules WHERE title = "Fatture di acquisto"')['id'];
|
$id_module_acquisti = database()->fetchOne('SELECT id FROM zz_modules WHERE title = "Fatture di acquisto"')['id'];
|
||||||
$id_module_vendite = database()->fetchOne('SELECT id FROM zz_modules WHERE title = "Fatture di vendita"')['id'];
|
$id_module_vendite = database()->fetchOne('SELECT id FROM zz_modules WHERE title = "Fatture di vendita"')['id'];
|
||||||
|
|
||||||
echo'
|
echo '
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
|
||||||
{[ "type": "select", "label": "'.tr('Sezionale predefinito').'", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": '.json_encode(['id_module' => $record['dir'] == 'entrata' ? $id_module_vendite : $id_module_acquisti, 'is_sezionale' => 1]).', "value": "$id_segment$" ]}
|
{[ "type": "select", "label": "'.tr('Sezionale predefinito').'", "name": "id_segment", "required": 1, "ajax-source": "segmenti", "select-options": '.json_encode(['id_module' => $record['dir'] == 'entrata' ? $id_module_vendite : $id_module_acquisti, 'is_sezionale' => 1]).', "value": "$id_segment$" ]}
|
||||||
|
@ -815,7 +815,7 @@ class FatturaElettronica
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Riferimento Amministrazione
|
// Riferimento Amministrazione
|
||||||
if ($fattura->getCliente()->tipo == "Ente pubblico") {
|
if ($fattura->getCliente()->tipo == 'Ente pubblico') {
|
||||||
if (!empty($fattura->getCliente()->riferimento_amministrazione)) {
|
if (!empty($fattura->getCliente()->riferimento_amministrazione)) {
|
||||||
$result['RiferimentoAmministrazione'] = $fattura->getCliente()->riferimento_amministrazione;
|
$result['RiferimentoAmministrazione'] = $fattura->getCliente()->riferimento_amministrazione;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user