-- phpMyAdmin SQL Dump
-- version 5.2.1
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Dec 19, 2024 at 05:39 PM
-- Server version: 10.6.20-MariaDB-log
-- PHP Version: 8.3.14

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
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: `robisear_mainerp`
--

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

--
-- Table structure for table `sales_orderholding`
--

CREATE TABLE `sales_orderholding` (
  `myinvoice` varchar(50) NOT 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',
  `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,
  `tax` 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,
  `taxcode` varchar(50) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Indexes for dumped tables
--

--
-- Indexes for table `sales_orderholding`
--
ALTER TABLE `sales_orderholding`
  ADD PRIMARY KEY (`id`),
  ADD KEY `id` (`id`,`invoice`,`code`,`userid`);

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sales_orderholding`
--
ALTER TABLE `sales_orderholding`
  MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
COMMIT;

/*!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 */;
