Files
crm.e5.pl/modules/EcmPriceBooks/updaterecipientcode.php

7 lines
366 B
PHP
Raw Normal View History

2024-04-27 09:23:34 +02:00
<?
$w=$GLOBALS['db']->query("select recipientcode,pricebookid,productid from pricebookproductrel");
print mysql_error();
while($r=$GLOBALS['db']->fetchByAssoc($w)){
$GLOBALS['db']->query("update ecmpricebooks_ecmproducts set recipient_code='".$r['recipientcode']."' where ecmproduct_id='".$r['productid']."' and ecmpricebook_id='".$r['pricebookid']."'");
}
?>