Files
crm.twinpol.com/modules/EcmDevices/updaterecipientcode.php

7 lines
354 B
PHP
Raw Permalink Normal View History

2025-05-12 15:44:39 +00:00
<?
$w=$GLOBALS['db']->query("select recipientcode,pricebookid,productid from pricebookproductrel");
print mysql_error();
while($r=$GLOBALS['db']->fetchByAssoc($w)){
$GLOBALS['db']->query("update ecmdevices_ecmproducts set recipient_code='".$r['recipientcode']."' where ecmproduct_id='".$r['productid']."' and ecmdevice_id='".$r['pricebookid']."'");
}
?>