-- phpMyAdmin SQL Dump
-- version 4.4.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 09, 2022 at 12:33 PM
-- Server version: 5.6.26
-- PHP Version: 5.6.12

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: `robipos`
--

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

--
-- Table structure for table `sales_ordercancelled`
--

CREATE TABLE IF NOT EXISTS `sales_ordercancelled` (
  `myinvoice` varchar(50) DEFAULT NULL,
  `id` int(11) NOT NULL,
  `invoice` varchar(100) NOT NULL,
  `code` varchar(100) NOT NULL,
  `qty` decimal(10,2) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `salestype` varchar(100) NOT NULL,
  `discount` varchar(100) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `address` text NOT NULL,
  `description` text NOT NULL,
  `user` varchar(50) NOT NULL,
  `bprice` varchar(50) NOT NULL,
  `type` varchar(50) NOT NULL DEFAULT 'cash',
  `tax` decimal(10,2) NOT NULL,
  `sprice` varchar(100) NOT NULL,
  `balance` varchar(50) NOT NULL,
  `customer` varchar(50) NOT NULL,
  `userid` varchar(50) NOT NULL,
  `mode` varchar(50) NOT NULL,
  `companyid` varchar(100) NOT NULL,
  `date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  `maincategory` varchar(50) NOT NULL,
  `category` varchar(50) NOT NULL,
  `status` varchar(30) DEFAULT 'new',
  `branch` varchar(30) NOT NULL,
  `ordersales` varchar(20) NOT NULL DEFAULT 'new',
  `uom` varchar(30) NOT NULL,
  `sales` varchar(30) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `updatedby` varchar(10) NOT NULL,
  `taxindicator` varchar(10) NOT NULL DEFAULT 'yes',
  `serial` varchar(50) DEFAULT NULL,
  `tax2` varchar(20) NOT NULL,
  `discountype` varchar(20) NOT NULL,
  `discountvalue` varchar(20) NOT NULL,
  `vattype` varchar(20) NOT NULL,
  `taxable` decimal(10,2) NOT NULL,
  `uomqty` varchar(30) NOT NULL DEFAULT '0',
  `stockbefore` varchar(30) NOT NULL,
  `stockafter` varchar(30) NOT NULL,
  `taxtype` varchar(30) NOT NULL DEFAULT 'Inclusive',
  `stock` varchar(20) NOT NULL DEFAULT 'branch',
  `producttype` varchar(30) NOT NULL,
  `assetaccount` varchar(30) NOT NULL,
  `salesaccount` varchar(30) NOT NULL,
  `expenseaccount` varchar(30) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `sales_ordercancelled`
--
ALTER TABLE `sales_ordercancelled`
  ADD PRIMARY KEY (`id`),
  ADD UNIQUE KEY `myinvoice` (`myinvoice`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sales_ordercancelled`
--
ALTER TABLE `sales_ordercancelled`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
/*!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 */;
