Questions
i am creating invoice and shipping pragmatically, but first i want to check there is already invoice or shipment created
0 Answers
Invoice Check
There are tow ways to check invoice is created or not.
First
if($order->hasInvoices()):
//do your stuff here
endif;
//do your stuff here
endif;
Second
Shipment Check
There are tow ways to check Shipment is created or not.
First
if($order->hasShipments()):
//do your stuff here
endif;
//do your stuff here
endif;