mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Commento su opzioni dei select
This commit is contained in:
@@ -3,6 +3,13 @@
|
||||
include_once __DIR__.'/../../../core.php';
|
||||
|
||||
switch ($resource) {
|
||||
/*
|
||||
* Opzioni utilizzate:
|
||||
* - permetti_movimento_a_zero
|
||||
* - idsede_partenza e idsede_destinazione
|
||||
* - dir
|
||||
* - idanagrafica
|
||||
*/
|
||||
case 'articoli':
|
||||
$sedi_non_impostate = !isset($superselect['idsede_partenza']) && !isset($superselect['idsede_destinazione']);
|
||||
$prezzi_ivati = setting('Utilizza prezzi di vendita comprensivi di IVA');
|
||||
@@ -218,23 +225,6 @@ switch ($resource) {
|
||||
|
||||
break;
|
||||
|
||||
case 'prodotti_serial':
|
||||
$query = 'SELECT DISTINCT serial AS descrizione FROM mg_prodotti |where|';
|
||||
|
||||
$where[] = 'id_articolo='.prepare($superselect['idarticolo']);
|
||||
$where[] = 'lotto='.prepare($superselect['lotto']);
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = 'serial='.prepare($element);
|
||||
}
|
||||
if (!empty($search)) {
|
||||
$search_fields[] = 'serial LIKE '.prepare('%'.$search.'%');
|
||||
}
|
||||
|
||||
$custom['id'] = 'descrizione';
|
||||
|
||||
break;
|
||||
|
||||
case 'categorie':
|
||||
$query = 'SELECT id, nome AS descrizione FROM mg_categorie |where| ORDER BY nome';
|
||||
|
||||
@@ -250,6 +240,10 @@ switch ($resource) {
|
||||
|
||||
break;
|
||||
|
||||
/*
|
||||
* Opzioni utilizzate:
|
||||
* - id_categoria
|
||||
*/
|
||||
case 'sottocategorie':
|
||||
if (isset($superselect['id_categoria'])) {
|
||||
$query = 'SELECT id, nome AS descrizione FROM mg_categorie |where| ORDER BY nome';
|
||||
@@ -278,6 +272,10 @@ switch ($resource) {
|
||||
|
||||
break;
|
||||
|
||||
/*
|
||||
* Opzioni utilizzate:
|
||||
* - idanagrafica
|
||||
*/
|
||||
case 'articoli_barcode':
|
||||
$prezzi_ivati = setting('Utilizza prezzi di vendita comprensivi di IVA');
|
||||
|
||||
|
Reference in New Issue
Block a user