From a specific order I want to create an invoice for some selected items from that order.
I have successfully created an invoice for the whole order programmatically, but I want to create a partial invoice of that order.
From a specific order I want to create an invoice for some selected items from that order.
I have successfully created an invoice for the whole order programmatically, but I want to create a partial invoice of that order.
Try this one...
For more info
Atlast I got it .
Had to dig magento to get this .
@parameters
for above create function :1st parameter : order increment id
2nd parameter : array
So here you will add order item id as key and its qty as its value .
If one do not want to create invoice id a particular item then simply pass value of its quantity as
0 // zero .
3rd parameter : comment
4th parameter : to send mail ----> 1 not send mail ----> 0
5th parameter : include comment in mail ----> 1 not include comment in mail ----> 0
It returns invoice increment id .
Hope it helps someone .