← Back to team overview

openerp-connector-community team mailing list archive

Re: Sync Invoice to Magento

 

Sorry, forget the links....

[0]: http://www.magentocommerce.com/wiki/doc/webservices-api/api/sales_order_invoice [1]: http://docs.magentocommerce.com/Mage_Sales/Mage_Sales_Model_Order_Invoice.html
[2]: http://www.magentocommerce.com/boards/viewthread/54391/


Sorry about that.


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



References