Example #1
0
<?php

session_start();
include 'class/productClass.php';
include 'class/jabonClass.php';
include 'class/tonicoClass.php';
include 'class/billClass.php';
use barla\jabon\jabonClass as jabon;
use barla\tonico\tonicoClass as tonico;
use barla\bill\billClass as bill;
$bill = new bill();
$tonico = new tonico();
$jabon = new jabon();
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>BARLA - Sistema de ventas</title>
<?php 
include 'html/head.php';
?>
  </head>
  <body>

    <div class="container container-fluid">
      <div class="well" id="wellMain">
        <div class="page-header">
          <h1><i class="mdi-action-assignment"></i> Factura de venta</h1>
        </div>
Example #2
0
<?php

session_start();
include '../class/routingClass.php';
include '../class/productClass.php';
include '../class/jabonClass.php';
include '../class/tonicoClass.php';
include '../class/billClass.php';
include '../class/dayReportClass.php';
use barla\routing\routingClass as routing;
use barla\bill\billClass as bill;
$bill = new bill();
$bill->process();
$bill->printBill();
Example #3
0
<?php

session_start();
include 'class/routingClass.php';
include 'class/productClass.php';
include 'class/jabonClass.php';
include 'class/tonicoClass.php';
include 'class/billClass.php';
use barla\bill\billClass as bill;
use barla\routing\routingClass as routing;
$bill = new bill();
// ($bill->getShirt() === 0 and $bill->getPants() === 0) ? routing::redirect('mainMenu.php') : null
// if ($bill->getShirt() === 0 and $bill->getPants() === 0) routing::redirect('mainMenu.php')
if ($bill->getTonico() === 0 and $bill->getJabon() === 0) {
    routing::redirect('sell.php');
}
?>
<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8">
    <title>BARLA - Sistema de ventas</title>
    <?php 
include 'html/head.php';
?>
  </head>
  <body>
    <div class="container container-fluid">
      <div class="well" id="wellIdentificacion">
        <div class="page-header">
          <h1><i class="mdi-action-assignment-ind"></i> Datos del cliente</h1>
Example #4
0
<?php

session_start();
include '../class/requestClass.php';
include '../class/routingClass.php';
include '../class/productClass.php';
include '../class/jabonClass.php';
include '../class/billClass.php';
use barla\request\requestClass as request;
use barla\routing\routingClass as routing;
use barla\bill\billClass as bill;
$quantity = request::getParamPost('inputCantidadJabon');
$bill = new bill();
if ($bill->setJabon($quantity) === true) {
    routing::redirect('../sell.php');
} else {
    routing::redirect('../sell.php?jabon=false');
}
Example #5
0
<?php

session_start();
include '../class/requestClass.php';
include '../class/routingClass.php';
include '../class/productClass.php';
include '../class/tonicoClass.php';
include '../class/billClass.php';
use barla\request\requestClass as request;
use barla\routing\routingClass as routing;
use barla\bill\billClass as bill;
$quantity = request::getParamPost('inputCantidadTonico');
$bill = new bill();
if ($bill->setTonico($quantity) === true) {
    routing::redirect('../sell.php');
} else {
    routing::redirect('../sell.php?tonico=false');
}