2018-02-19 10:52:42 +01:00
< ? php
// Descrizione
echo App :: internalLoad ( 'descrizione.php' , $result , $options );
2018-09-03 16:31:15 +02:00
// Conti, rivalsa INPS e ritenuta d'acconto
echo App :: internalLoad ( 'conti.php' , $result , $options );
2018-02-19 10:52:42 +01:00
// Iva
echo '
< div class = " row " >
< div class = " col-md-4 " >
{[ " type " : " select " , " label " : " '.tr('Iva').' " , " name " : " idiva " , " required " : 1 , " value " : " '. $result['idiva'] .' " , " values " : " query=SELECT * FROM co_iva ORDER BY descrizione ASC " ]}
</ div > ' ;
// Quantità
echo '
< div class = " col-md-4 " >
{[ " type " : " number " , " label " : " '.tr('Q.tà').' " , " name " : " qta " , " required " : 1 , " value " : " '. $result['qta'] .' " , " decimals " : " qta " ]}
</ div > ' ;
// Unità di misura
echo '
< div class = " col-md-4 " >
{[ " type " : " select " , " label " : " '.tr('Unità di misura').' " , " icon-after " : " add|'.Modules::get('Unità di misura')['id'].' " , " name " : " um " , " value " : " '. $result['um'] .' " , " ajax-source " : " misure " ]}
2018-02-19 11:25:56 +01:00
</ div >
</ div > ' ;
2018-02-19 10:52:42 +01:00
2018-02-19 11:25:56 +01:00
// Costo unitario
2018-02-19 10:52:42 +01:00
echo '
2018-02-19 11:25:56 +01:00
< div class = " row " >
2018-02-19 10:52:42 +01:00
< div class = " col-md-6 " >
{[ " type " : " number " , " label " : " '.tr('Costo unitario').' " , " name " : " prezzo " , " value " : " '. $result['prezzo'] .' " , " required " : 1 , " icon-after " : " € " ]}
</ div > ' ;
// Sconto unitario
echo '
< div class = " col-md-6 " >
{[ " type " : " number " , " label " : " '.tr('Sconto unitario').' " , " name " : " sconto " , " value " : " '. $result['sconto_unitario'] .' " , " icon-after " : " choice|untprc|'. $result['tipo_sconto'] .' " ]}
</ div >
</ div > ' ;