← Back to team overview

openerp-connector-community team mailing list archive

Re: Sync Invoice to Magento

 

Thanks, glad to hear it worked for you. Yes, it could be possible to
have these options in the payment method. I would seriously consider a
merge proposal for this improvement.

This would be so great. I think this would be a nice improvement for the connector. Do you think it's much work there?

Ok, Magento is definitely very special in some ways ;-) This was the
rationale to create the invoice on Magento only when it was paid on
OpenERP and not when it was validated by default.

You're right. I also do not understand why magento doesn't manage that. It's a huge piece of software but that isn't done ;)
I've done some research there:
- If you look in Magento Backend at the Invoice Tab you cann see that you can filter with 'Pending', 'Paid' and 'Canceled' but you can't give any of these other two Status to the Invoice. Strange! - If you look here [0] you can see at 'sales_order_invoice.capture' that you can check the invoice at different Status. - This is done in 'Mage_Sales_Model_Order_Invoice' referring to this page [1]. - And if you look here [2] at the posts of 'tzyganu' you can see that it is easily possible to arrange that Magento can handle it. It's only setting something to True. I've tested it, and it worked. But the connector won't set it in Magento to paid then. I think because the connector only syncs invoices once, right?

So do you think it is possible to do that over API with 'Mage_Sales_Model_Order_Invoice'? I can imagine.

Many thanks for your translation!

You're welcome!:)

Jan



Am 2014-01-10 10:22, schrieb Guewen Baconnier:
Hi,
On 01/08/2014 02:17 PM, jan-philipp.fischer@xxxxxxxxxxxxxx wrote:
Hi,
thank you, it worked for me. Is it not possible to do this options in
payment methods instead of store options? So you can decide in each
method how and when you want to inform your customer.
Thanks, glad to hear it worked for you. Yes, it could be possible to
have these options in the payment method. I would seriously consider a
merge proposal for this improvement.

I checked it and you're right. If a invoice in Magento is created it is marked as paid. I did not find a way (without customization) to do that.
Ok, Magento is definitely very special in some ways ;-) This was the
rationale to create the invoice on Magento only when it was paid on
OpenERP and not when it was validated by default.

BTW: I'll start translating the Magento OpenERP Module today :)
Many thanks for your translation!

Jan
Am 2014-01-08 10:36, schrieb Guewen Baconnier:
Hi,
On 01/08/2014 10:20 AM, jan-philipp.fischer@xxxxxxxxxxxxxx wrote:
Hey everybody,
i love working with the connector. It's the best for OpenERP i've seen
so far.
But one Question: Is it right, that the Connector syncs the invoice
after check the payment in openerp to magento. I mean when the invoice
status is 'done'?
That's the default configuration, yes.

That doesn't make sense to me in some cases. Sure if the customer
already has paied (e.g. paypal) it's fine.
As far as I know, the invoice in Magento mix the invoice / payment
notions. As soon as we create the Magento invoice from the API, the
sales order is considered as paid in Magento. But I could be wrong so
please correct me if necessary.

But i liked to give the invoice before payment e.g. for bank transfer
(payment before delivery)
Hope you understand me.
Is there a way to do this or does it need customization?
You can just go over Connectors > Magento > Stores and in the Options of the store, set the option "Create invoice on action" to "Validate".
Then, the Magento invoice will be created on the validation of the
OpenERP invoice.

Best greetings,
Jan




Follow ups

References