User303363814 posted
but this jvCombine.JournalVoucher.Date stays null dont accept value from JournalVoucher.Date
It is very important to look closely at exact error messages. Part of learning to program is to deeply understand error messages and what they mean.
The error message would not say "null dont accept value". I suspect that you have a NullReferenceException, but this is only a guess because you have not told us the precise error that you are encountering.
If my guess is correct and you use the debugger you would be able to see that after the statement which initialises jvCombine - "new JvCombine()" - that the property of jvCombine called JournalVoucher is null. When you create an instance of JvCombine
it does not create an instance of JournalVoucherViewModel and store a reference to it in JournalVoucher. You have to write your own code to do that.
You could add a constructor to JvCombine which initialises all the properties to appropriate values. Alternatively, at every place in your code where you create a new JvCombine you could then initialise the JournalVoucher and AccountPosting properties.
If there are sensible defaults for these properties then I would favour the constructor approach rather than client code having to do it each time. (There is a principal that after being constructed an object should be in a consistent state, my guess
is that having null for these properties means that the object is not consistent)