← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 520027] Re: Order update to Magento is wrong

 

Hi, I noticed that this bug still exists. I also get an error when updating the order status but im not sure it it is an error on my part.
Its like its trying to create an invoice when one already exists. Also when it posts the status closed, when I scroll down to the bottom on the order details page "credit notes"  it says status processing but at the top and note it says closed. Weird.

[2010-11-30 16:09:57,419][midwest] ERROR:Magento Call:[17]: Arguments:[u'190497', [], 'Invoice Created', True, True]
[2010-11-30 16:09:57,419][midwest] ERROR:Magento Call:[18]: Error:<Fault 102: 'Can not do invoice for order.'>
[2010-11-30 16:09:57,426][midwest] WARNING:Magento Call:Webservice Failure, sleeping 1 second before next attempt
<?xml version="1.0" encoding="UTF-8"?>
<methodResponse><fault><value><struct><member><name>faultCode</name><value><int>102</int></value></member><member><name>faultString</name><value><string>Can not do invoice for order.</string></value></member></struct></value></fault></methodResponse>

-- 
Order update to Magento is wrong
https://bugs.launchpad.net/bugs/520027
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in Magento Open ERP Connector: Confirmed

Bug description:
When I run the order updates from the connector, the status of orders that are "done" will generate the status "closed" in Magento and this is wrong. 
In Magento the order only will get the status closed when there has been generated a Creditnote for an allready generated invoice within Magento.
Orders that are invoiced, paid and shipped get the status "completed"

I changed the script and changed the status 'done': 'closed' to 'done': 'complete'.

I don't know if its because of this change but when i run the updater which last update had the datetime 06-02-2010 12:19:36 it started to update order before this date starting from 5 jan 2010 10:47:59. But is keeps changing the status form the first order that is in OpenErp and everytime it sends an email to the customer ( can we switch email sending off?).

Also when there is NO invoice created in Magento the connector generates the creation of an invoice but the invoice status in Magento is not set to "paid" but "pending" even when the status in OpenErp is "paid"