Compare commits
17 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
6c0a154096 | ||
|
51442d7287 | ||
|
88a2834870 | ||
|
11b9f278c0 | ||
|
820e080976 | ||
|
8f17f76225 | ||
|
773b8db153 | ||
|
5b49ba1fcd | ||
|
4f314a1310 | ||
|
ea946e212c | ||
|
2969c5b01a | ||
|
c64355eb2a | ||
|
9fa6bcaa42 | ||
|
a31bb7105a | ||
|
47f206a351 | ||
|
fa56cdd243 | ||
|
90cab265de |
0
cache/purifier/CSS/4.6.0,24166bfe16a0cc6bd18d813b83121ef2eaf16545,1.ser
vendored
Executable file → Normal file
0
cache/purifier/CSS/4.6.0,24166bfe16a0cc6bd18d813b83121ef2eaf16545,1.ser
vendored
Executable file → Normal file
0
cache/sandbox/16fr.xml
vendored
Executable file → Normal file
0
cache/sandbox/16fr.xml
vendored
Executable file → Normal file
0
erp/ErpTools.php
Executable file → Normal file
0
erp/ErpTools.php
Executable file → Normal file
0
erp/config.php
Executable file → Normal file
0
erp/config.php
Executable file → Normal file
0
erp/erp_add_customer.php
Executable file → Normal file
0
erp/erp_add_customer.php
Executable file → Normal file
0
erp/erp_add_product.php
Executable file → Normal file
0
erp/erp_add_product.php
Executable file → Normal file
0
erp/erp_get_invoice.php
Executable file → Normal file
0
erp/erp_get_invoice.php
Executable file → Normal file
7
erp/erp_update_address.php
Executable file → Normal file
7
erp/erp_update_address.php
Executable file → Normal file
@ -91,5 +91,10 @@ foreach ($final as $key => $item) {
|
||||
$address->id_country = ErpTools::getCountryIdForPresta($item['addr']['country_id'][0]);
|
||||
$address->is_erp = 1;
|
||||
$address->id_erp = $item['addr']['id'];
|
||||
$address->save();
|
||||
if (!empty($address->address1)) {
|
||||
$address->save();
|
||||
}
|
||||
else {
|
||||
error_log('erp_update_address - customer id #'.$customer->id.' / erp id #'.$item['company_id_erp'].' empty address');
|
||||
}
|
||||
}
|
8
erp/erp_update_customer.php
Executable file → Normal file
8
erp/erp_update_customer.php
Executable file → Normal file
@ -166,7 +166,13 @@ foreach ($ids_customer_update as $id_customer) {
|
||||
$address->id_country = ErpTools::getCountryIdForPresta($other_address['country_id'][0]);
|
||||
$address->is_erp = 1;
|
||||
$address->id_erp = $other_address['id'];
|
||||
$address->save();
|
||||
|
||||
if (!empty($address->address1)) {
|
||||
$address->save();
|
||||
}
|
||||
else {
|
||||
error_log('erp_customer_update : customer id #'.$customer->id.' / erp id #'.$record['id'].' empty address');
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
0
erp/erp_update_group.php
Executable file → Normal file
0
erp/erp_update_group.php
Executable file → Normal file
0
erp/erp_update_order.php
Executable file → Normal file
0
erp/erp_update_order.php
Executable file → Normal file
10
erp/erp_update_product.php
Executable file → Normal file
10
erp/erp_update_product.php
Executable file → Normal file
@ -31,8 +31,9 @@ $ids_product = $models->execute_kw($db, $uid, $password,
|
||||
|
||||
$d = Db::getInstance();
|
||||
|
||||
foreach ($ids_product as $key => $id) {
|
||||
$date = date('Y-m-d H:i:s');
|
||||
|
||||
foreach ($ids_product as $key => $id) {
|
||||
// get product's information
|
||||
$record = $models->execute_kw($db, $uid, $password,
|
||||
'product.template', 'read', array($id)
|
||||
@ -80,7 +81,8 @@ foreach ($ids_product as $key => $id) {
|
||||
p.`reference` = "'.$record['default_code'].'",
|
||||
p.`weight` = '.(float)$record['weight'].',
|
||||
p.`out_of_stock` = 2,
|
||||
pl.`name` = "'.pSQL(trim(utf8_encode($name_product))).'"
|
||||
pl.`name` = "'.pSQL(trim(utf8_encode($name_product))).'",
|
||||
p.`date_upd` = "' . $date .'"
|
||||
WHERE
|
||||
`id_erp` = '.(int)$id.'
|
||||
AND p.`id_product` = pl.id_product
|
||||
@ -97,6 +99,8 @@ foreach ($ids_product as $key => $id) {
|
||||
$sql = 'SELECT `id_image` FROM '._DB_PREFIX_.'image WHERE `id_product` = '.(int)$product_id;
|
||||
$id_image = $d->getValue($sql);
|
||||
|
||||
|
||||
|
||||
if ($id_image) {
|
||||
$image = new Image($id_image);
|
||||
$imagesTypes = ImageType::getImagesTypes('products');
|
||||
@ -104,7 +108,7 @@ foreach ($ids_product as $key => $id) {
|
||||
|
||||
$image_exists = true;
|
||||
foreach ($imagesTypes as $imageType) {
|
||||
$image_exists = file_exists($existing_path.'-'.stripslashes($imageType['name']).'.'.$image->image_format);
|
||||
$image_exists = file_exists('../img/p/'.$existing_path.'-'.stripslashes($imageType['name']).'.'.$image->image_format);
|
||||
if (!$image_exists) {
|
||||
break;
|
||||
}
|
||||
|
0
erp/erp_update_stock.php
Executable file → Normal file
0
erp/erp_update_stock.php
Executable file → Normal file
0
erp/oneorderUpdate.php
Executable file → Normal file
0
erp/oneorderUpdate.php
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_BadMethodCallException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_BadMethodCallException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Client.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Client.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Client_Call.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Client_Call.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Client_MultiCall.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Client_MultiCall.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_ConfigurationException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_ConfigurationException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor_Interface.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor_Interface.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor_Parser.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor_Parser.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor_Parser_phpdoc.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Documentor_Parser_phpdoc.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Exception.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Exception.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_InvalidArgumentException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_InvalidArgumentException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_RemoteException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_RemoteException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Server.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Server.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Transport.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Transport.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_TransportException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_TransportException.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Transport_CURL.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Transport_CURL.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Transport_Stream.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/Ripcord_Transport_Stream.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord_client.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord_client.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord_documentor.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord_documentor.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord_server.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/_ripcord_server.php.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/Ripcord/ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/blank.html
Executable file → Normal file
0
erp/ripcord/docs/blank.html
Executable file → Normal file
0
erp/ripcord/docs/classtrees_Ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/classtrees_Ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/elementindex.html
Executable file → Normal file
0
erp/ripcord/docs/elementindex.html
Executable file → Normal file
0
erp/ripcord/docs/elementindex_Ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/elementindex_Ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/errors.html
Executable file → Normal file
0
erp/ripcord/docs/errors.html
Executable file → Normal file
0
erp/ripcord/docs/index.html
Executable file → Normal file
0
erp/ripcord/docs/index.html
Executable file → Normal file
0
erp/ripcord/docs/li_Ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/li_Ripcord.html
Executable file → Normal file
0
erp/ripcord/docs/media/banner.css
Executable file → Normal file
0
erp/ripcord/docs/media/banner.css
Executable file → Normal file
0
erp/ripcord/docs/media/images/Constant.png
Executable file → Normal file
0
erp/ripcord/docs/media/images/Constant.png
Executable file → Normal file
Before Width: | Height: | Size: 752 B After Width: | Height: | Size: 752 B |
0
erp/ripcord/docs/media/images/Variable.png
Executable file → Normal file
0
erp/ripcord/docs/media/images/Variable.png
Executable file → Normal file
Before Width: | Height: | Size: 688 B After Width: | Height: | Size: 688 B |
0
erp/ripcord/docs/media/stylesheet.css
Executable file → Normal file
0
erp/ripcord/docs/media/stylesheet.css
Executable file → Normal file
0
erp/ripcord/docs/packages.html
Executable file → Normal file
0
erp/ripcord/docs/packages.html
Executable file → Normal file
0
erp/ripcord/readme.txt
Executable file → Normal file
0
erp/ripcord/readme.txt
Executable file → Normal file
0
erp/ripcord/ripcord.php
Executable file → Normal file
0
erp/ripcord/ripcord.php
Executable file → Normal file
0
erp/ripcord/ripcord_client.php
Executable file → Normal file
0
erp/ripcord/ripcord_client.php
Executable file → Normal file
0
erp/ripcord/ripcord_documentor.php
Executable file → Normal file
0
erp/ripcord/ripcord_documentor.php
Executable file → Normal file
0
erp/ripcord/ripcord_server.php
Executable file → Normal file
0
erp/ripcord/ripcord_server.php
Executable file → Normal file
0
log/index.php
Executable file → Normal file
0
log/index.php
Executable file → Normal file
0
mails/fr/account.html
Executable file → Normal file
0
mails/fr/account.html
Executable file → Normal file
0
mails/fr/account.txt
Executable file → Normal file
0
mails/fr/account.txt
Executable file → Normal file
0
mails/fr/backoffice_order.html
Executable file → Normal file
0
mails/fr/backoffice_order.html
Executable file → Normal file
0
mails/fr/backoffice_order.txt
Executable file → Normal file
0
mails/fr/backoffice_order.txt
Executable file → Normal file
0
mails/fr/bankwire.html
Executable file → Normal file
0
mails/fr/bankwire.html
Executable file → Normal file
0
mails/fr/bankwire.txt
Executable file → Normal file
0
mails/fr/bankwire.txt
Executable file → Normal file
0
mails/fr/cheque.html
Executable file → Normal file
0
mails/fr/cheque.html
Executable file → Normal file
0
mails/fr/cheque.txt
Executable file → Normal file
0
mails/fr/cheque.txt
Executable file → Normal file
0
mails/fr/contact.html
Executable file → Normal file
0
mails/fr/contact.html
Executable file → Normal file
0
mails/fr/contact.txt
Executable file → Normal file
0
mails/fr/contact.txt
Executable file → Normal file
0
mails/fr/contact_form.html
Executable file → Normal file
0
mails/fr/contact_form.html
Executable file → Normal file
0
mails/fr/contact_form.txt
Executable file → Normal file
0
mails/fr/contact_form.txt
Executable file → Normal file
0
mails/fr/credit_slip.html
Executable file → Normal file
0
mails/fr/credit_slip.html
Executable file → Normal file
0
mails/fr/credit_slip.txt
Executable file → Normal file
0
mails/fr/credit_slip.txt
Executable file → Normal file
0
mails/fr/download-product.tpl
Executable file → Normal file
0
mails/fr/download-product.tpl
Executable file → Normal file
0
mails/fr/download_product.html
Executable file → Normal file
0
mails/fr/download_product.html
Executable file → Normal file
0
mails/fr/download_product.txt
Executable file → Normal file
0
mails/fr/download_product.txt
Executable file → Normal file
0
mails/fr/employee_password.html
Executable file → Normal file
0
mails/fr/employee_password.html
Executable file → Normal file
0
mails/fr/employee_password.txt
Executable file → Normal file
0
mails/fr/employee_password.txt
Executable file → Normal file
0
mails/fr/forward_msg.html
Executable file → Normal file
0
mails/fr/forward_msg.html
Executable file → Normal file
0
mails/fr/forward_msg.txt
Executable file → Normal file
0
mails/fr/forward_msg.txt
Executable file → Normal file
0
mails/fr/guest_to_customer.html
Executable file → Normal file
0
mails/fr/guest_to_customer.html
Executable file → Normal file
0
mails/fr/guest_to_customer.txt
Executable file → Normal file
0
mails/fr/guest_to_customer.txt
Executable file → Normal file
0
mails/fr/in_transit.html
Executable file → Normal file
0
mails/fr/in_transit.html
Executable file → Normal file
0
mails/fr/in_transit.txt
Executable file → Normal file
0
mails/fr/in_transit.txt
Executable file → Normal file
0
mails/fr/lang.php
Executable file → Normal file
0
mails/fr/lang.php
Executable file → Normal file
0
mails/fr/log_alert.html
Executable file → Normal file
0
mails/fr/log_alert.html
Executable file → Normal file
0
mails/fr/log_alert.txt
Executable file → Normal file
0
mails/fr/log_alert.txt
Executable file → Normal file
0
mails/fr/newsletter.html
Executable file → Normal file
0
mails/fr/newsletter.html
Executable file → Normal file
0
mails/fr/newsletter.txt
Executable file → Normal file
0
mails/fr/newsletter.txt
Executable file → Normal file
0
mails/fr/order_canceled.html
Executable file → Normal file
0
mails/fr/order_canceled.html
Executable file → Normal file
0
mails/fr/order_canceled.txt
Executable file → Normal file
0
mails/fr/order_canceled.txt
Executable file → Normal file
0
mails/fr/order_changed.html
Executable file → Normal file
0
mails/fr/order_changed.html
Executable file → Normal file
0
mails/fr/order_changed.txt
Executable file → Normal file
0
mails/fr/order_changed.txt
Executable file → Normal file
0
mails/fr/order_conf.html
Executable file → Normal file
0
mails/fr/order_conf.html
Executable file → Normal file
0
mails/fr/order_conf.txt
Executable file → Normal file
0
mails/fr/order_conf.txt
Executable file → Normal file
0
mails/fr/order_conf_cart_rules.tpl
Executable file → Normal file
0
mails/fr/order_conf_cart_rules.tpl
Executable file → Normal file
0
mails/fr/order_conf_cart_rules.txt
Executable file → Normal file
0
mails/fr/order_conf_cart_rules.txt
Executable file → Normal file
0
mails/fr/order_conf_product_list.tpl
Executable file → Normal file
0
mails/fr/order_conf_product_list.tpl
Executable file → Normal file
0
mails/fr/order_conf_product_list.txt
Executable file → Normal file
0
mails/fr/order_conf_product_list.txt
Executable file → Normal file
0
mails/fr/order_customer_comment.html
Executable file → Normal file
0
mails/fr/order_customer_comment.html
Executable file → Normal file
0
mails/fr/order_customer_comment.txt
Executable file → Normal file
0
mails/fr/order_customer_comment.txt
Executable file → Normal file
0
mails/fr/order_merchant_comment.html
Executable file → Normal file
0
mails/fr/order_merchant_comment.html
Executable file → Normal file
0
mails/fr/order_merchant_comment.txt
Executable file → Normal file
0
mails/fr/order_merchant_comment.txt
Executable file → Normal file
0
mails/fr/order_return_state.html
Executable file → Normal file
0
mails/fr/order_return_state.html
Executable file → Normal file
0
mails/fr/order_return_state.txt
Executable file → Normal file
0
mails/fr/order_return_state.txt
Executable file → Normal file
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user