← Back to team overview

magentoerpconnect-community team mailing list archive

Re: automatically cancel Magento orders in OpenERP if not paid after a give period?

 

Hi Raphael,


This days_before_cancellation sounds goo to me and the value of 30 days seems to be reasonable.

Regards,

Joël

Le 13 janv. 2011 à 19:07, Raphaël Valyi a écrit :

> Hello Magentoerpconnect community,
> 
> 
> Currently, when the 'check if paid' checkbox is paid on some Magento payment method in OpenERP, OpenERP will pool Magento to validate orders, OpenERP payments or even cancel orders if those are cancelled in Magento (this is using the 'need_to_update' flag on sale orders).
> 
> Still, by the time, the list of sale orders flagged as 'need to update' in OpenERP because they aren't either paid or cancelled in Magento will grow, thus slowing down the 'update order status' action.
> 
> 1) What do you think about attaching a new days_before_cancellation field to OpenERP Magento payment methods entities so that for each payment methods, we will automatically cancel any sale order older than a given number of days if they are still in draft mode in OpenERP and flagged as need_to_update?
> 
> 2) If yes, what would be the default number of days value? 30 days?
> 
> 
> NB: I just merged Douwe Wullink contrib in v6 branch to bring a nice Magento icon in the web client.
> I'm analyzing this other merge from Zikzakmedia: https://code.launchpad.net/~zikzak/magentoerpconnect/openerp6-module/+merge/46157
> 
> 
> Thank you for your comments.
> 
> 
> 
> -- 
> Raphaël Valyi
> Founder and consultant
> +55 21 3010 9965
> www.akretion.com
> 
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~magentoerpconnect-community
> Post to     : magentoerpconnect-community@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~magentoerpconnect-community
> More help   : https://help.launchpad.net/ListHelp

-- 

Joël Grand-Guillaume 
Division Manager
Business Solutions

Camptocamp SA
PSE A, CH-1015 Lausanne
http://openerp.camptocamp.com/

Phone: +41 21 619 10 28
Office: +41 21 619 10 10
Fax: +41 21 619 10 00
Email: joel.grandguillaume@xxxxxxxxxxxxxx


Follow ups

References