Add php files
This commit is contained in:
7
modules/EcmProducts/updatevat.php
Executable file
7
modules/EcmProducts/updatevat.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<?
|
||||
$w=$GLOBALS['db']->query("select id,vat_value from ecmproducts");
|
||||
while($r=$GLOBALS['db']->fetchByAssoc($w)){
|
||||
$rr=$GLOBALS['db']->fetchByAssoc($GLOBALS['db']->query("select id,name from ecmvats where value='".$r['vat_value']."' and deleted='0'"));
|
||||
$GLOBALS['db']->query("update ecmproducts set vat_name='".$rr['name']."',vat_id='".$rr['id']."' where id='".$r['id']."'");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user