. */ include_once __DIR__.'/../../core.php'; use Models\Module; use Modules\Iva\Aliquota; $prezzi_ivati = setting('Utilizza prezzi di vendita comprensivi di IVA'); $iva_predefinita = setting('Iva predefinita'); $aliquota_predefinita = floatval(Aliquota::find($iva_predefinita)->percentuale); ?>
{[ "type": "text", "label": "", "name": "codice", "required": 0, "value": "", "help": "", "validation": "codice" ]}
{[ "type": "text", "label": "", "name": "barcode", "required": 0, "value": "", "validation": "barcode" ]}
{[ "type": "textarea", "label": "", "name": "descrizione", "required": 1, "value": "" ]}
{[ "type": "select", "label": "", "name": "categoria", "required": 0, "ajax-source": "categorie", "icon-after": "add|getByField('title', 'Categorie articoli', Models\Locale::getPredefined()->id); ?>" ]}
{[ "type": "select", "label": "", "name": "subcategoria", "id": "subcategoria_add", "ajax-source": "sottocategorie", "icon-after": "add|getByField('title', 'Categorie articoli', Models\Locale::getPredefined()->id); ?>||hide" ]}

{[ "type": "number", "label": "", "name": "prezzo_acquisto", "icon-after": "", "value": "" ]}
{[ "type": "number", "label": "", "name": "coefficiente", "help": "." ]}
'; } ?> {[ "type": "number", "label": "", "name": "prezzo_vendita", "icon-after": "", "help": "" ]}
{[ "type": "number", "label": "", "name": "qta", "decimals": "qta" ]}
{[ "type": "number", "label": "", "name": "threshold_qta", "decimals": "qta", "min-value": "undefined" ]}
{[ "type": "select", "label": "", "name": "idiva_vendita", "ajax-source": "iva", "valore_predefinito": "Iva predefinita", "help": "" ]}
{[ "type": "select", "label": "", "name": "um", "value": "", "ajax-source": "misure", "icon-after": "add|getByField('title', 'Unità di misura articoli', Models\Locale::getPredefined()->id); ?>" ]}
{[ "type": "select", "label": "", "name": "um_secondaria", "value": "", "ajax-source": "misure", "help": "" ]}
{[ "type": "number", "label": "", "name": "fattore_um_secondaria", "value": "", "decimals": "qta", "help": "" ]}
{[ "type": "select", "label": "", "name": "idconto_acquisto", "ajax-source": "conti-acquisti" ]}
{[ "type": "select", "label": "", "name": "idconto_vendita", "ajax-source": "conti-vendite" ]}
{[ "type": "checkbox", "label": "", "name": "abilita_serial", "help": "", "value": "","placeholder": "" ]}