File tree 2 files changed +5
-1
lines changed
core/database/src/main/java/com/mifos/core/objects/client
feature/client/src/main/java/com/mifos/feature/client/createNewClient
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -87,10 +87,13 @@ data class ClientPayload(
87
87
var address : List <Address >? = ArrayList (),
88
88
89
89
@Column
90
- var dateFormat : String? = " dd MMMM YYYY " ,
90
+ var dateFormat : String? = " dd MMMM yyyy " ,
91
91
92
92
@Column
93
93
var locale : String? = " en" ,
94
94
95
95
var datatables : List <DataTablePayload >? = null ,
96
+
97
+ // 1 for Individual client
98
+ var legalFormId : Int = 1 ,
96
99
) : MifosBaseModel(), Parcelable
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ class CreateNewClientViewModel @Inject constructor(
118
118
119
119
fun createClient (clientPayload : ClientPayload ) {
120
120
_createNewClientUiState .value = CreateNewClientUiState .ShowProgressbar
121
+
121
122
repository.createClient(clientPayload)
122
123
.observeOn(AndroidSchedulers .mainThread())
123
124
.subscribeOn(Schedulers .io())
You can’t perform that action at this time.
0 commit comments