Files
crm.e5.pl/modules/EcmPaymentStates/updateSalesNo.php
2024-04-27 09:23:34 +02:00

9 lines
319 B
PHP

<?php
$w=$GLOBALS['db']->query("select id,document_no from ecmsales where date_entered>'2011-01-02'");
$i=0;
while($r=$GLOBALS['db']->fetchByAssoc($w)){
echo '#'.$r['document_no'].'<br>';
echo "update ecmsales set number='20110103".($i+1)."',document_no='ZS 00".($i+1)."/10' where id='".$r['id']."';<br>";
$i++;
}
?>