{foreach from=$sucursales item=item key=key} {* if count($item.ventas) > 0 *} {($item.nombre|utf8_decode)|urldecode}
[+]
Código de Barras Producto Inv. Actual Número de productos vendidos Costo Precio Venta Importe Total {foreach from=$item.productos item=itP key=k1} {$itP.codigoBarra} {$itP.modelo} {$itP.disponible|number_format:0:'.':','} {$itP.vendidos|number_format:0:'.':','} ${$itP.costo|number_format:2:'.':','} ${$itP.precioVenta|number_format:2:'.':','} ${$itP.total|number_format:2:'.':','} {/foreach} TOTAL {$item.disponible|number_format:0:'.':','} {$item.vendidos|number_format:0:'.':','} ${$item.importe|number_format:2:'.':','} {* /if *} {/foreach} {if $Usr.type == "admin" || $Usr.type == "direccion" || $Usr.type == "almacen" || $Usr.type == "centralizador"} {if $orden eq "mayor"}Productos Más Vendidos{else}Productos Menos Vendidos{/if}
[+]
Código de Barras Producto Inv. Actual Número de productos vendidos Costo Precio Venta Importe Total {foreach from=$prodsGral item=item key=key} {$item.codigoBarra} {$item.modelo} {$item.disponible|number_format:0:'.':','} {$item.vendidos|number_format:0:'.':','} ${$item.costo|number_format:2:'.':','} ${$item.precioVenta|number_format:2:'.':','} ${$item.total|number_format:2:'.':','} {/foreach} TOTAL {$totDispGral|number_format:0:'.':','} {$totProdsGral|number_format:0:'.':','} ${$totImpGral|number_format:2:'.':','} {/if}