mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-27 16:57:38 +01:00
Aggiunto import um articoli
This commit is contained in:
parent
42bb32b0a2
commit
6666acf32a
@ -241,6 +241,15 @@ class CSV extends CSVImporter
|
||||
}
|
||||
}
|
||||
|
||||
// Gestione um
|
||||
$um = null;
|
||||
if (!empty($record['um'])) {
|
||||
$um = $database->fetchOne('SELECT id FROM `mg_unitamisura` WHERE `valore`='.prepare($record['um']));
|
||||
if (empty($um)) {
|
||||
$database->query('INSERT INTO `mg_unitamisura` (`valore`) VALUES ('.prepare($record['um']).')');
|
||||
}
|
||||
}
|
||||
|
||||
// Individuazione dell'IVA di vendita tramite il relativo Codice
|
||||
$aliquota = null;
|
||||
if (!empty($record['codice_iva_vendita'])) {
|
||||
@ -274,6 +283,7 @@ class CSV extends CSVImporter
|
||||
'prezzo_acquisto' => $record['prezzo_acquisto'],
|
||||
'peso_lordo' => $record['peso_lordo'],
|
||||
'volume' => $record['volume'],
|
||||
'um' => $record['um'],
|
||||
'barcode' => $record['barcode'],
|
||||
'id_fornitore' => $record['id_fornitore'],
|
||||
'ubicazione' => $record['ubicazione'],
|
||||
|
Loading…
x
Reference in New Issue
Block a user