Exemplo n.º 1
0
 public function insertMrngOrder()
 {
     require 'models/Stocks_model.php';
     $readingPetrol = $_POST['petrol'];
     $readingSPetrol = $_POST['spetrol'];
     $readingDiesel = $_POST['diesel'];
     $readingSDiesel = $_POST['sdiesel'];
     $qntyPetrol = $_POST['qntyPetrol'];
     $qntySPetrol = $_POST['qntySPetrol'];
     $qntyDiesel = $_POST['qntyDiesel'];
     $qntySDiesel = $_POST['qntySDiesel'];
     $orderpetrol = $_POST['orderPetrol'];
     $orderspetrol = $_POST['orderSPetrol'];
     $orderdiesel = $_POST['orderDiesel'];
     $ordersdiesel = $_POST['orderSDiesel'];
     $model = new Stocks_model();
     $model->insertMrngOrder($readingPetrol, $qntyPetrol, $orderpetrol, $readingSPetrol, $qntySPetrol, $orderspetrol, $readingDiesel, $qntyDiesel, $orderdiesel, $readingSDiesel, $qntySDiesel, $ordersdiesel);
     $model->updateTank($qntyPetrol, $qntySPetrol, $qntyDiesel, $qntySDiesel);
     echo "DONE";
 }