
<script>
jQuery(function($){

$('#dcp-create').click(function(){

    $.post(ajaxurl,{
        action:'dcp_create',
        material_id:$('#dcp-material').val(),
        supplier:$('#dcp-supplier').val(),
        qty:$('#dcp-qty').val(),
        price:$('#dcp-price').val()
    },()=>location.reload());

});

$(document).on('click','.dcp-receive',function(){

    $.post(ajaxurl,{
        action:'dcp_receive',
        id:$(this).data('id')
    },()=>location.reload());

});

$(document).on('click','.dcp-del',function(){

    $.post(ajaxurl,{
        action:'dcp_delete',
        id:$(this).data('id')
    },()=>location.reload());

});

});
</script>

<style>
#dcp-wrap{padding:20px;}

.dcp-box{display:flex;gap:10px;margin-bottom:15px;flex-wrap:wrap;}

.dcp-table-wrap{overflow-x:auto;}

.dcp-table{
    min-width:800px;
    width:100%;
    border-collapse:collapse;
    background:#fff;
}

.dcp-table th{
    background:#111;
    color:#fff;
    padding:10px;
}

.dcp-table td{
    padding:10px;
    border-bottom:1px solid #eee;
}

.dcp-table input{width:80px;}
</style><div id="error"><p class="wpdberror"><strong>خطأ فى قاعدة بيانات ووردبريس:</strong> [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;(``)&#039; at line 1]<br /><code>ALTER TABLE wp_dcp_purchases ADD  `` (``)</code></p></div><?xml version="1.0" encoding="UTF-8"?>
<!--generator='jetpack-15.8'-->
<!--Jetpack_Sitemap_Buffer_News_XMLWriter-->
<?xml-stylesheet type="text/xsl" href="//decencell.com/news-sitemap.xsl"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
 <url>
  <loc>https://decencell.com/</loc>
 </url>
</urlset>
