[FIX] Bug while generating an invoice from a delivery order

I have fix this issue while generating an invoice from a delivery order.