feat embalajes #refs 4021

This commit is contained in:
Sergio De la torre 2024-06-18 12:44:08 +02:00
parent 3100311732
commit 9c15e716cf
1 changed files with 10 additions and 3 deletions

View File

@ -4,7 +4,6 @@ import ir.mirrajabi.searchdialog.core.Searchable
class SearchBuyerModel(private var nickname: String?, private var buyerId: Int?) : Searchable {
override fun getTitle(): String {
return nickname!!
@ -38,12 +37,16 @@ class SearchDepartmentModel(private var name: String?, private var departmentId:
}
class SearchSupplierModel(private var name: String?, private var id: String?) : Searchable {
class SearchSupplierModel(
private var name: String?,
private var id: String?,
private var observation: String?
) : Searchable {
fun getId(): String {
return id!!
}
fun getName(): String {
return name!!
}
@ -51,4 +54,8 @@ class SearchSupplierModel(private var name: String?, private var id: String?) :
override fun getTitle(): String {
return name!!
}
fun getObservation(): String {
return observation ?: ""
}
}