mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-23 23:07:46 +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/>.
|
||||
*/
|
||||
|
||||
use Geocoder\Provider\GoogleMaps;
|
||||
use Ivory\HttpAdapter\CurlHttpAdapter;
|
||||
use Modules\Anagrafiche\Anagrafica;
|
||||
use Modules\Anagrafiche\Export\CSV;
|
||||
|
||||
@ -50,7 +48,7 @@ switch (post('op')) {
|
||||
|
||||
// TODO: da riscrivere con Guzzle e spostare su hook
|
||||
$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';
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $user_agent);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
|
@ -39,7 +39,7 @@ switch (filter('op')) {
|
||||
'help' => filter('help'),
|
||||
'predefined' => $predefined,
|
||||
'enabled' => post('enabled'),
|
||||
'id_segment' => post('id_segment')
|
||||
'id_segment' => post('id_segment'),
|
||||
], ['id' => $id_record]);
|
||||
|
||||
flash()->info(tr('Salvataggio completato!'));
|
||||
|
@ -49,11 +49,11 @@ include_once __DIR__.'/../../core.php';
|
||||
</div>
|
||||
|
||||
<?php
|
||||
|
||||
|
||||
$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'];
|
||||
|
||||
echo'
|
||||
|
||||
echo '
|
||||
<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$" ]}
|
||||
|
@ -815,7 +815,7 @@ class FatturaElettronica
|
||||
}
|
||||
|
||||
// Riferimento Amministrazione
|
||||
if ($fattura->getCliente()->tipo == "Ente pubblico") {
|
||||
if ($fattura->getCliente()->tipo == 'Ente pubblico') {
|
||||
if (!empty($fattura->getCliente()->riferimento_amministrazione)) {
|
||||
$result['RiferimentoAmministrazione'] = $fattura->getCliente()->riferimento_amministrazione;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user