<?php
/**
* import customer cid
*
* actindo Faktura/WWS connector
*
* @package actindo
* @author Patrick Prasse <pprasse@actindo.de>
* @version $Revision: 145 $
* @copyright Copyright (c) 2007, Patrick Prasse (Schneebeerenweg 26, D-85551 Kirchheim, GERMANY, pprasse@actindo.de)
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
function import_customer_set_deb_kred_id( $customer_id, $deb_kred_id )
{
if( !$customer_id || !$deb_kred_id ) // TODO
return array( 'ok'=>FALSE, 'errno'=>EINVAL );
if( act_shop_is(SHOP_TYPE_OSCOMMERCE) )
return array( 'ok'=>FALSE, 'errno'=>ENOSYS );
$res = act_db_query( "UPDATE ".TABLE_CUSTOMERS." SET `customers_cid`=".(int)$deb_kred_id." WHERE `customers_id`=".(int)$customer_id );
if( !$res )
return array( 'ok'=>FALSE, 'errno'=>EIO );
return array( 'ok'=>TRUE );
}
?>| nama | waktu | ukuran | owner | perm | aksi |
|---|---|---|---|---|---|
| .. | |||||
| actindo.php | 2013-11-12 20:52 | 14.62 KB | 76129f60960:kunden | -xw-x----- | |
| compat.php | 2013-11-12 20:52 | 1.29 KB | 76129f60960:kunden | -xw-x----- | |
| export.php | 2013-11-12 20:52 | 6.13 KB | 76129f60960:kunden | -xw-x----- | |
| export_customers.php | 2013-11-12 20:52 | 7.53 KB | 76129f60960:kunden | -xw-x----- | |
| export_orders.php | 2013-11-12 20:52 | 17.96 KB | 76129f60960:kunden | -xw-x----- | |
| export_products.php | 2013-11-12 20:52 | 19.62 KB | 76129f60960:kunden | -xw-x----- | |
| import.php | 2013-11-12 20:52 | 503 B | 76129f60960:kunden | -xw-x----- | |
| import_customer.php | 2013-11-12 20:52 | 904 B | 76129f60960:kunden | -xw-x----- | |
| import_orders.php | 2013-11-12 20:52 | 4.2 KB | 76129f60960:kunden | -xw-x----- | |
| import_products.php | 2013-11-12 20:52 | 37.29 KB | 76129f60960:kunden | -xw-x----- | |
| util.php | 2013-11-12 20:52 | 13.97 KB | 76129f60960:kunden | -xw-x----- | |