Atualizando companies_save.php
This commit is contained in:
parent
a2f3e36af9
commit
a181d508e1
1 changed files with 7 additions and 21 deletions
|
|
@ -26,20 +26,11 @@ try{
|
|||
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-9 mb-2">
|
||||
<div class="col-md-12 mb-2">
|
||||
|
||||
<h4>Produtos</h4>
|
||||
|
||||
</div>
|
||||
<div class="col-md-3 text-right mb-2">
|
||||
|
||||
<button type="button" class="btn btn-secondary btn-sm" onclick="request('FOLDER=view&TABLE=products_companies&ACTION=products_companies_form&company_id=<?php echo $clientsId;?>', '', true, '', '', '', 'Preparando formulário...', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Carregar clientes cadastrados">
|
||||
|
||||
<i class="fas fa-plus-circle mr-1"></i>Cadastrar Produto
|
||||
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
|
@ -50,12 +41,13 @@ try{
|
|||
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center"></th>
|
||||
<th class="text-center">Produto</th>
|
||||
<th class="text-center">Referência</th>
|
||||
<th class="text-center">Descrição</th>
|
||||
<th class="text-center">Reajuste</th>
|
||||
<th class="text-center">Vencimento</th>
|
||||
<th class="text-center" colspan="2">Valor R$</th>
|
||||
<th class="text-center">Valor R$</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
|
|
@ -66,24 +58,19 @@ try{
|
|||
|
||||
foreach($ProductsCompaniesResult as $ClientsKey => $Result){
|
||||
|
||||
//Totaliza os itens
|
||||
$total += $Result->total_product_value;
|
||||
|
||||
/** Message para excluir */
|
||||
$messageDelete = '<b>Deseja realmente excluir o produto '.$Result->description.'?</b>';
|
||||
|
||||
/** Data para excluir */
|
||||
$dataDelete = 'TABLE=companies_products&ACTION=companies_products_delete&FOLDER=action&product_company_id='.$Result->product_company_id.'&company_id='.$Result->company_id;
|
||||
?>
|
||||
?>
|
||||
|
||||
<tr onclick="prepareBudget('#<?php echo $Result->product_id;?>', 'products', <?php echo $Result->product_id;?>, 0)" id="<?php echo $Result->product_id;?>">
|
||||
<td><input type="checkbox" class="form-check-input" id="group" name="group" value="S" checked=true></td>
|
||||
<td><?php echo $Result->products;?></td>
|
||||
<td class="text-center" width="65"><?php echo $Result->reference;?></td>
|
||||
<td><?php echo $Result->description;?></td>
|
||||
<td class="text-center" width="90"><?php echo $Result->readjustment;?></td>
|
||||
<td class="text-center" width="90"><?php echo $Main->setzeros($Result->maturity, 2);?></td>
|
||||
<td class="text-right" width="120"><?php echo number_format($Result->total_product_value, 2, ',', '.');?></td>
|
||||
<td class="text-center" width="20"><button type="button" class="btn btn-light btn-sm" onclick="questionModal('<?php echo $dataDelete;?>', '<?php echo $messageDelete;?>')" data-toggle="tooltip" data-placement="left" title="Excluir produto"><i class="far fa-trash-alt"></i></button></td>
|
||||
<td class="text-center" width="20"><button type="button" class="btn btn-light btn-sm" onclick="request('FOLDER=view&TABLE=products_companies&ACTION=products_companies_form&product_company_id=<?php echo $Result->product_company_id;?>&company_id=<?php echo $Result->company_id;?>', '', true, '', '', '', 'Preparando formulário...', 'blue', 'circle', 'sm', true)" data-toggle="tooltip" data-placement="left" title="Editar produto"><i class="far fa-edit"></i></button></td>
|
||||
</tr>
|
||||
|
||||
<?php } ?>
|
||||
|
|
@ -91,8 +78,7 @@ try{
|
|||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="6" class="text-right"><b>Total R$ <?php echo number_format($total, 2, ',', '.');?></b></td>
|
||||
<td colspan="2"></td>
|
||||
<td colspan="7" class="text-right"><b>Total R$ <?php echo number_format($total, 2, ',', '.');?></b></td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue