init
This commit is contained in:
78
modules/EcmStockStates/zest.php
Executable file
78
modules/EcmStockStates/zest.php
Executable file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
set_time_limit(-1);
|
||||
|
||||
$pos_id[]='a4fb8078-b63c-daff-1f38-57fb25db931d';
|
||||
$pos_id[]='17a50d1d-7b31-37e9-a19a-57fb259175f3';
|
||||
$pos_id[]='15ba8e07-4db7-3c85-e02d-57fb7b16bb5e';
|
||||
$pos_id[]='e67257b8-8732-ed61-71ed-57fc991e0815';
|
||||
$pos_id[]='133520bd-2e41-d86b-537e-57fc99b1dc99';
|
||||
$pos_id[]='2725ad25-0e46-e22c-f8b9-57fde0ed444a';
|
||||
$pos_id[]='129c7706-dcbe-3de5-a7c3-57fde0fb41e0';
|
||||
$pos_id[]='3e8498d8-2035-78d6-336a-57ff1ab07051';
|
||||
$pos_id[]='1e56c739-1827-52c7-df3a-57ff86c71ace';
|
||||
$pos_id[]='4ab334c3-4ebb-8ac9-3245-5800adec744f';
|
||||
$pos_id[]='4da463ec-7678-7799-ec16-5800add7aa84';
|
||||
$pos_id[]='be592636-e74a-8cf8-f4b5-5800ad989211';
|
||||
$pos_id[]='80e23280-0ad0-e829-3eae-5800ad182dec';
|
||||
$pos_id[]='45eef3d2-d3a6-19a2-c086-5800adbce828';
|
||||
$pos_id[]='cb50491c-34af-0c44-5c94-5804708d8137';
|
||||
$pos_id[]='b66093e7-a660-dc74-b567-5805b2ff40dd';
|
||||
$pos_id[]='dc89e781-9b74-2ae8-1913-5805b249f0bb';
|
||||
$pos_id[]='f928059f-d62b-8c50-5303-5805b2d129e0';
|
||||
$pos_id[]='7ec40ef9-fcc6-7f1e-a410-580746f72773';
|
||||
$pos_id[]='39ad09f7-414b-f9f1-6349-580856eb8eb7';
|
||||
$pos_id[]='17394fa1-9703-a3d6-4d12-58085654ea5d';
|
||||
$pos_id[]='94c43230-02c3-e300-e435-580856ab1dd6';
|
||||
$pos_id[]='39445382-fe94-6fbf-41d6-5808567c0419';
|
||||
$pos_id[]='a16ca498-48ad-3ee1-cfcd-580890e9706d';
|
||||
$pos_id[]='662588f3-7158-3600-d23a-5808902cc16e';
|
||||
$pos_id[]='aa5b5557-ecaa-b2fd-bd5e-580890f5c7b4';
|
||||
$pos_id[]='cdaa7345-397b-cb4e-3625-58089075a019';
|
||||
$pos_id[]='bb4371d7-cb60-b47b-44d2-5808903e5cb4';
|
||||
$pos_id[]='d92c0911-e2d8-48bb-6a21-580892cb0b1f';
|
||||
$pos_id[]='4547bf36-4a59-b7f5-cc7f-58089273fa94';
|
||||
$pos_id[]='3072e9f2-0e7e-9ce7-15a5-580892819deb';
|
||||
$pos_id[]='2b55406a-f071-6d5e-427d-580da11bf984';
|
||||
$pos_id[]='5d29fb6d-f106-3d26-27ff-580f0158a6ed';
|
||||
$pos_id[]='cbae5602-8c39-ddf5-cb39-580f010f6380';
|
||||
$pos_id[]='8941f7b5-3112-c748-cb93-580f47aead5b';
|
||||
$pos_id[]='9c34a116-ad85-b170-7a0d-580f4e880ac6';
|
||||
$pos_id[]='2f2ee0b6-e590-ca43-8399-5812ede1dd7d';
|
||||
$pos_id[]='ce9987d5-2356-c404-db25-5812edf6f08e';
|
||||
$pos_id[]='727b4b0b-5f8c-5bdf-71a9-5812edb2728d';
|
||||
$pos_id[]='c214e940-97ad-acf4-cfff-5812ed3daf52';
|
||||
$pos_id[]='547aee15-b7da-8871-a902-5812edec7398';
|
||||
$pos_id[]='d791be49-28c1-d94a-fcb8-5816e4216236';
|
||||
$pos_id[]='b2790591-ff4d-6391-d4dc-5816e41eea90';
|
||||
$pos_id[]='e1514266-8535-26e7-e5da-581719db7a96';
|
||||
$pos_id[]='efc4b550-a27c-d898-32a6-581719c14a75';
|
||||
$pos_id[]='a6e4d7c1-2aef-6ee6-0d37-58172d73916f';
|
||||
$pos_id[]='86aa15fa-29ca-f641-739f-58196ae16baf';
|
||||
$pos_id[]='397dc68b-4cc5-be50-5d36-5819717585d2';
|
||||
$pos_id[]='951d20ae-cce3-9953-646b-581971dcb578';
|
||||
$pos_id[]='974ca3dc-f881-3d4f-1c05-581aec15da8c';
|
||||
/*
|
||||
$documents=array();
|
||||
$db=$GLOBALS['db'];
|
||||
foreach ($pos_id as $id){
|
||||
$sql1="update ecmstockoperations set price=0.60 where documentitem_id = '".$id."'";
|
||||
$sql_s="select quantity,ecmstockdocinsideout_id from ecmstockdocinsideoutitems where id = '".$id."'";
|
||||
$s=$db->query($sql_s);
|
||||
$s_w=$db->fetchByAssoc($s);
|
||||
|
||||
$total=round($s_w['quantity']*0.6,2);
|
||||
$documents[]=$s_w['ecmstockdocinsideout_id'];
|
||||
$sql2="update ecmstockdocinsideoutitems set price=0.60, total='".$total."' where id = '".$id."'";
|
||||
echo $sql1."<br>;".$sql2.';<br>';
|
||||
$db->query($sql1);
|
||||
$db->query($sql2);
|
||||
}
|
||||
$documents = array_unique($documents);
|
||||
foreach($documents as $doc){
|
||||
$query="update ecmstockdocinsideouts set total=(select sum(quantity*price) from
|
||||
ecmstockdocinsideoutitems where ecmstockdocinsideout_id ='".$doc."') where id='".$doc."'";
|
||||
$db->query($query);
|
||||
|
||||
}
|
||||
*/
|
||||
?>
|
||||
Reference in New Issue
Block a user