Required to have Project Invoice ID same as Invoice Proposal ID while posting a proposal.

While we post the Project invoice proposal, it is required that the project invoice ID should be same as Invoice proposal ID. How can we achieve this? I could locate that the number sequence is getting generated in ProjInvoiceJournalCreate. How can i stop it and assign ProposalId to ProjInvoiceId?