-- phpMyAdmin SQL Dump
-- version 4.5.2
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Oct 13, 2016 at 01:10 
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.23

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";


/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;

--
-- Database: `sistema`
--

-- --------------------------------------------------------

--
-- Table structure for table `carritotemporal`
--

CREATE TABLE `carritotemporal` (
  `codigo` varchar(14) NOT NULL,
  `carrito` int(2) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

-- --------------------------------------------------------

--
-- Table structure for table `clientetemporal`
--

CREATE TABLE `clientetemporal` (
  `id` int(1) NOT NULL,
  `nombre` varchar(40) NOT NULL,
  `dniocuit` varchar(4) NOT NULL,
  `numdniocuit` varchar(11) NOT NULL,
  `domicilio` varchar(35) NOT NULL,
  `localidad` varchar(13) NOT NULL,
  `condventa` varchar(7) NOT NULL,
  `condiva` varchar(20) NOT NULL,
  `tipocomprobante` varchar(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `clientetemporal`
--

INSERT INTO `clientetemporal` (`id`, `nombre`, `dniocuit`, `numdniocuit`, `domicilio`, `localidad`, `condventa`, `condiva`, `tipocomprobante`) VALUES
(1, '', '', '', '', '', '', '', '');

-- --------------------------------------------------------

--
-- Table structure for table `facturas`
--

CREATE TABLE `facturas` (
  `num` int(8) NOT NULL,
  `fecha` date NOT NULL,
  `ganancia` int(6) NOT NULL,
  `cae` bigint(20) NOT NULL,
  `fechavto` date NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `facturas`
--

INSERT INTO `facturas` (`num`, `fecha`, `ganancia`, `cae`, `fechavto`) VALUES
(63, '2016-10-10', 90, 66410433005695, '2016-10-20'),
(64, '2016-10-10', 90, 66410433005739, '2016-10-20'),
(65, '2016-10-10', 90, 66410433005742, '2016-10-20'),
(66, '2016-10-10', 90, 66410433005755, '2016-10-20'),
(67, '2016-10-10', 90, 66410433005768, '2016-10-20'),
(68, '2016-10-10', 90, 66410433005802, '2016-10-20'),
(69, '2016-10-10', 90, 66410433005828, '2016-10-20'),
(70, '2016-10-10', 90, 66410433005857, '2016-10-20'),
(71, '2016-10-10', 90, 66410433005904, '2016-10-20'),
(72, '2016-10-10', 126, 66410433005946, '2016-10-20'),
(73, '2016-10-10', 126, 66410433005962, '2016-10-20'),
(74, '2016-10-10', 126, 66410433005975, '2016-10-20'),
(75, '2016-10-10', 180, 66410433014223, '2016-10-20'),
(76, '2016-10-10', 180, 66410433014252, '2016-10-20'),
(77, '2016-10-11', 72, 66410433014676, '2016-10-21'),
(78, '2016-10-11', 36, 66410433014723, '2016-10-21'),
(79, '2016-10-11', 36, 66410433014778, '2016-10-21'),
(80, '2016-10-11', 36, 66410433014812, '2016-10-21'),
(81, '2016-10-11', 72, 66410433014838, '2016-10-21'),
(82, '2016-10-11', 108, 66410433014854, '2016-10-21'),
(83, '2016-10-11', 72, 66410433014870, '2016-10-21'),
(84, '2016-10-11', 54, 66410433014914, '2016-10-21'),
(85, '2016-10-11', 0, 66410433014927, '2016-10-21'),
(86, '2016-10-11', 0, 66410433014930, '2016-10-21'),
(87, '2016-10-11', 0, 66410433014943, '2016-10-21'),
(88, '2016-10-11', 0, 66410433014956, '2016-10-21'),
(89, '2016-10-11', 0, 66410433014969, '2016-10-21'),
(90, '2016-10-11', 0, 66410433014972, '2016-10-21'),
(91, '2016-10-11', 0, 66410433014985, '2016-10-21'),
(92, '2016-10-11', 0, 66410433014998, '2016-10-21'),
(93, '2016-10-11', 0, 66410433015004, '2016-10-21'),
(94, '2016-10-11', 0, 66410433015017, '2016-10-21'),
(95, '2016-10-11', 0, 66410433015020, '2016-10-21'),
(96, '2016-10-11', 0, 66410433015033, '2016-10-21'),
(97, '2016-10-11', 0, 66410433015046, '2016-10-21'),
(98, '2016-10-11', 0, 66410433015059, '2016-10-21'),
(99, '2016-10-11', 36, 66410433015075, '2016-10-21'),
(100, '2016-10-11', 36, 66410433015106, '2016-10-21'),
(101, '2016-10-11', 0, 66410433015122, '2016-10-21'),
(102, '2016-10-11', 0, 66410433015135, '2016-10-21'),
(103, '2016-10-11', 36, 66410433015148, '2016-10-21'),
(104, '2016-10-11', 0, 66410433015164, '2016-10-21'),
(105, '2016-10-11', 0, 66410433015177, '2016-10-21'),
(106, '2016-10-11', 36, 66410433015211, '2016-10-21'),
(107, '2016-10-11', 0, 66410433015224, '2016-10-21'),
(108, '2016-10-11', 36, 66410433015237, '2016-10-21'),
(109, '2016-10-11', 36, 66410433015240, '2016-10-21'),
(110, '2016-10-11', 36, 66410433015266, '2016-10-21'),
(111, '2016-10-11', 36, 66410433015282, '2016-10-21'),
(112, '2016-10-11', 36, 66410433015342, '2016-10-21'),
(113, '2016-10-11', 36, 66410433015371, '2016-10-21'),
(114, '2016-10-11', 36, 66410433015384, '2016-10-21'),
(115, '2016-10-11', 36, 66410433015428, '2016-10-21'),
(116, '2016-10-11', 0, 66410433015431, '2016-10-21'),
(117, '2016-10-11', 36, 66410433015444, '2016-10-21'),
(118, '2016-10-11', 36, 66410433015460, '2016-10-21'),
(119, '2016-10-11', 36, 66410433015499, '2016-10-21'),
(120, '2016-10-11', 0, 66410433015517, '2016-10-21'),
(121, '2016-10-11', 0, 66410433015520, '2016-10-21'),
(122, '2016-10-11', 0, 66410433015533, '2016-10-21'),
(123, '2016-10-11', 0, 66410433015559, '2016-10-21'),
(124, '2016-10-11', 0, 66410433015562, '2016-10-21'),
(125, '2016-10-11', 0, 66410433015575, '2016-10-21'),
(126, '2016-10-11', 0, 66410433015588, '2016-10-21'),
(127, '2016-10-11', 0, 66410433015606, '2016-10-21'),
(128, '2016-10-11', 0, 66410433015619, '2016-10-21'),
(129, '2016-10-11', 0, 66410433015635, '2016-10-21'),
(130, '2016-10-11', 0, 66410433015648, '2016-10-21'),
(131, '2016-10-11', 0, 66410433015651, '2016-10-21'),
(132, '2016-10-11', 0, 66410433015664, '2016-10-21'),
(133, '2016-10-11', 0, 66410433015680, '2016-10-21'),
(134, '2016-10-11', 0, 66410433015708, '2016-10-21'),
(135, '2016-10-11', 0, 66410433015711, '2016-10-21'),
(136, '2016-10-11', 36, 66410433015737, '2016-10-21'),
(137, '2016-10-12', 78, 66410433109405, '2016-10-22'),
(138, '2016-10-12', 0, 66410433109418, '2016-10-22'),
(139, '2016-10-12', 0, 66410433109421, '2016-10-22'),
(140, '2016-10-12', 0, 66410433109434, '2016-10-22'),
(141, '2016-10-12', 0, 66410433109447, '2016-10-22'),
(142, '2016-10-12', 0, 66410433109450, '2016-10-22'),
(143, '2016-10-12', 0, 66410433109463, '2016-10-22'),
(144, '2016-10-12', 0, 66410433109476, '2016-10-22'),
(145, '2016-10-12', 0, 66410433109489, '2016-10-22'),
(146, '2016-10-12', 0, 66410433109492, '2016-10-22'),
(147, '2016-10-12', 0, 66410433109507, '2016-10-22'),
(148, '2016-10-12', 0, 66410433109510, '2016-10-22'),
(149, '2016-10-12', 0, 66410433109523, '2016-10-22'),
(150, '2016-10-12', 0, 66410433109536, '2016-10-22'),
(151, '2016-10-12', 0, 66410433109549, '2016-10-22'),
(152, '2016-10-12', 49, 66410433109552, '2016-10-22'),
(153, '2016-10-12', 49, 66410433109565, '2016-10-22'),
(154, '2016-10-12', 25, 66410433112671, '2016-10-22'),
(155, '2016-10-13', 0, 66410434162944, '2016-10-23');

-- --------------------------------------------------------

--
-- Table structure for table `inventario`
--

CREATE TABLE `inventario` (
  `codigo` varchar(14) NOT NULL,
  `descripcion` varchar(50) NOT NULL,
  `stock` int(3) NOT NULL,
  `costo` int(5) NOT NULL,
  `pvp` int(5) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `inventario`
--

INSERT INTO `inventario` (`codigo`, `descripcion`, `stock`, `costo`, `pvp`) VALUES
('010343858862', 'CARTUCHO ORIGINAL EPSON 73N NEGRO', 19, 164, 213),
('010343858879', 'CARTUCHO ORIGINAL EPSON 73N CIAN', 9, 164, 213),
('010343858886', 'CARTUCHO ORIGINAL EPSON 73N MAGENTA', 10, 164, 213),
('010343858893', 'CARTUCHO ORIGINAL EPSON 73N AMARILLO', 10, 164, 213),
('010343864993', 'CARTUCHO ORIGINAL EPSON T90 NEGRO', 10, 164, 213),
('010343868816', 'CARTUCHO ORIGINAL EPSON 117 NEGRO', 10, 139, 180),
('010343876934', 'CARTUCHO ORIGINAL EPSON 133 NEGRO', 10, 155, 198),
('010343876941', 'CARTUCHO ORIGINAL EPSON 133 CIAN', 10, 155, 198),
('010343876958', 'CARTUCHO ORIGINAL EPSON 133 MAGENTA', 10, 155, 198),
('010343876965', 'CARTUCHO ORIGINAL EPSON 133 AMARILLO', 10, 155, 198),
('10001', 'TECLADO GENIUS KB-110X USB', 92, 125, 150),
('10002', 'MEMORIA MICROSD 32GB KINGSTON CLASE 10', 70, 180, 234),
('23', 'facturas', 2, 100, 150);

-- --------------------------------------------------------

--
-- Table structure for table `recibos`
--

CREATE TABLE `recibos` (
  `num` int(8) NOT NULL,
  `fecha` date NOT NULL,
  `ganancia` int(6) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Dumping data for table `recibos`
--

INSERT INTO `recibos` (`num`, `fecha`, `ganancia`) VALUES
(1000, '2016-10-09', 1),
(1001, '2016-10-09', 2),
(1002, '2016-10-10', 144),
(1003, '2016-10-10', 90),
(1004, '2016-10-10', 90),
(1005, '2016-10-10', 90),
(1006, '2016-10-10', 90),
(1007, '2016-10-10', 54),
(1008, '2016-10-10', 36),
(1009, '2016-10-10', 36),
(1010, '2016-10-10', 36),
(1011, '2016-10-10', 0),
(1012, '2016-10-10', 36),
(1013, '2016-10-10', 162),
(1014, '2016-10-10', 36),
(1015, '2016-10-10', 0),
(1016, '2016-10-10', 36),
(1017, '2016-10-10', 36),
(1018, '2016-10-10', 36),
(1019, '2016-10-10', 54),
(1020, '2016-10-10', 36),
(1021, '2016-10-10', 36),
(1022, '2016-10-10', 36),
(1023, '2016-10-10', 36),
(1024, '2016-10-10', 36),
(1025, '2016-10-10', 36),
(1026, '2016-10-10', 270),
(1027, '2016-10-10', 36),
(1028, '2016-10-12', 29),
(1029, '2016-10-12', 29),
(1030, '2016-10-12', 29),
(1031, '2016-10-12', 0),
(1032, '2016-10-12', 432),
(1033, '2016-10-12', 0),
(1034, '2016-10-12', 25),
(1035, '2016-10-12', 54),
(1036, '2016-10-13', 0);

--
-- Indexes for dumped tables
--

--
-- Indexes for table `carritotemporal`
--
ALTER TABLE `carritotemporal`
  ADD PRIMARY KEY (`codigo`);

--
-- Indexes for table `clientetemporal`
--
ALTER TABLE `clientetemporal`
  ADD PRIMARY KEY (`id`);

--
-- Indexes for table `facturas`
--
ALTER TABLE `facturas`
  ADD PRIMARY KEY (`num`);

--
-- Indexes for table `inventario`
--
ALTER TABLE `inventario`
  ADD PRIMARY KEY (`codigo`),
  ADD UNIQUE KEY `descripcion` (`descripcion`);

--
-- Indexes for table `recibos`
--
ALTER TABLE `recibos`
  ADD PRIMARY KEY (`num`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `recibos`
--
ALTER TABLE `recibos`
  MODIFY `num` int(8) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=1037;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
