Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $consulta = "SELECT unidad_de_medida, itemcode as 'codigo' , qty as 'cantidad', itemname as 'descripcion', retailsprice as 'valor_unitario', (retailsprice + IGV) as 'precio_unitario', discount as descuento , total as 'subtotal', igv , ROUND((total + igv) ,2) as 'total', taxapply as 'tipo_de_igv' FROM sales_item where sales_id='$salesid'";
  2.  
  3. $query = mysqli_query($enlace, $consulta);
  4.  
  5. for ($set = array (); $row = $query->fetch_assoc(); $set[] = $row);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement