I'm assuming you mean the receipt generated by the gateway. That is generated by the gateway and in some cases is not a value that is available at the time the order is being stored to the database.
It is better to use a remote checkout system, and set up eCart to send a custom receipt, that receipt will contain the orderID, use the order ID instead of the invoice number generated by the gateway.