Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
<?php
$w=$GLOBALS[db]->query("select id,parent_id from ecmreceipts where register_date>='2010-01-01' and (to_nip is null or to_nip='')");
while($r=$GLOBALS[db]->fetchByAssoc($w)){
$rr=$GLOBALS[db]->fetchByAssoc($GLOBALS[db]->query("select sic_code from accounts where id='".$r['parent_id']."'"));
echo "update ecmreceipts set to_nip='".$rr['sic_code']."' where id='".$r['id']."';<br>";
}
?>