fix edit of outward and plant name

This commit is contained in:
gowthaman
2024-06-26 12:24:14 +05:30
parent 062365ed51
commit 0247d68b50
6 changed files with 16 additions and 2 deletions

View File

@@ -95,10 +95,11 @@ object Auth {
database.save(Plant().apply {
this.plantId = plantId
this.plantName = response
this.plantOriginalName = response
})
} else {
existing.apply {
this.plantName = response
this.plantOriginalName = response
this.save()
}
}

View File

@@ -289,6 +289,7 @@ open class Plant : BaseModel() {
var plantId: String = ""
var plantName: String = ""
var plantOriginalName: String? = ""
@DbJsonB
var prefixes: MutableMap<String, String>? = mutableMapOf()