-- 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_holding`
--

CREATE TABLE `sales_holding` (
  `id` int(11) NOT NULL,
  `cashier` varchar(100) NOT NULL,
  `type` varchar(100) NOT NULL,
  `amount` varchar(100) NOT NULL,
  `due_date` varchar(100) NOT NULL,
  `name` varchar(100) NOT NULL,
  `balance` varchar(20) NOT NULL DEFAULT '0',
  `userid` varchar(50) NOT NULL,
  `dateposted` varchar(50) NOT NULL,
  `customer` varchar(50) DEFAULT NULL,
  `cash` varchar(50) NOT NULL,
  `total` varchar(50) NOT NULL,
  `companyid` varchar(50) NOT NULL,
  `salestype` varchar(50) NOT NULL,
  `maindiscount` varchar(20) DEFAULT NULL,
  `discountedtotal` varchar(20) NOT NULL,
  `branch` varchar(30) NOT NULL DEFAULT '1',
  `card` varchar(30) NOT NULL,
  `voucher` varchar(30) NOT NULL,
  `credit` varchar(30) NOT NULL,
  `points` varchar(30) NOT NULL,
  `mpesa` varchar(50) NOT NULL,
  `cheque` varchar(50) NOT NULL,
  `ordersales` varchar(20) DEFAULT 'printed',
  `description` text NOT NULL,
  `mytable` varchar(30) NOT NULL,
  `maincategory` varchar(30) DEFAULT NULL,
  `creditnote` varchar(30) NOT NULL,
  `invoice` varchar(30) NOT NULL,
  `paymentstatus` varchar(10) NOT NULL DEFAULT 'No',
  `updatedby` varchar(10) NOT NULL,
  `updatedat` varchar(50) NOT NULL,
  `plotno` varchar(20) NOT NULL,
  `houseno` varchar(20) NOT NULL,
  `baddebt` varchar(30) NOT NULL,
  `tax1` varchar(30) NOT NULL,
  `tax2` varchar(30) NOT NULL,
  `cardnumber` varchar(50) DEFAULT NULL,
  `savedcoins` decimal(10,2) NOT NULL,
  `savedpoints` decimal(10,2) NOT NULL,
  `salesperson` int(11) DEFAULT NULL,
  `receiptno` varchar(50) DEFAULT NULL,
  `change` varchar(20) DEFAULT NULL,
  `currency` varchar(50) DEFAULT NULL,
  `othercurrency` varchar(20) DEFAULT NULL,
  `othercurrencyamount` decimal(10,2) DEFAULT NULL,
  `tocurrencyamount` decimal(10,2) NOT NULL,
  `currcptno` varchar(50) NOT NULL,
  `totrcptno` varchar(50) NOT NULL,
  `intrldata` text NOT NULL,
  `rcptsign` text NOT NULL,
  `sdcdatetime` varchar(50) NOT NULL,
  `taxblAmtA` varchar(50) DEFAULT NULL,
  `taxblAmtB` varchar(50) DEFAULT NULL,
  `taxblAmtC` varchar(50) DEFAULT NULL,
  `taxblAmtD` varchar(50) DEFAULT NULL,
  `taxblAmtE` varchar(50) DEFAULT NULL,
  `taxAmtA` varchar(50) DEFAULT NULL,
  `taxAmtB` varchar(50) DEFAULT NULL,
  `taxAmtC` varchar(50) DEFAULT NULL,
  `taxAmtD` varchar(50) DEFAULT NULL,
  `taxAmtE` varchar(50) DEFAULT NULL,
  `taxRtA` varchar(50) DEFAULT NULL,
  `taxRtB` varchar(50) DEFAULT NULL,
  `taxRtC` varchar(50) DEFAULT NULL,
  `taxRtD` varchar(50) DEFAULT NULL,
  `taxRtE` varchar(50) DEFAULT NULL,
  `sdcId` text NOT NULL,
  `mrcNo` text NOT NULL,
  `salesdump` text NOT NULL,
  `receiptdump` text NOT NULL,
  `etimsstatus` int(11) NOT NULL DEFAULT 0,
  `itemsstockmaster` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;

--
-- Indexes for dumped tables
--

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

--
-- AUTO_INCREMENT for dumped tables
--

--
-- AUTO_INCREMENT for table `sales_holding`
--
ALTER TABLE `sales_holding`
  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 */;
