feat: refs #7524 getSuppliers
This commit is contained in:
parent
abab532379
commit
24ccf9ce2f
|
@ -59,7 +59,8 @@ class SupplierViewModel(val context: Context) : BaseViewModel(context) {
|
|||
val loadEntryAdd: LiveData<Event<Boolean>> = _entryAdd.map { Event(it) }
|
||||
|
||||
fun getSuppliers() {
|
||||
salix.getSuppliers().enqueue(object : SalixCallback<List<Supplier>>(context) {
|
||||
salix.getWithPackaging(
|
||||
).enqueue(object : SalixCallback<List<Supplier>>(context) {
|
||||
|
||||
override fun onSuccess(response: Response<List<Supplier>>) {
|
||||
_supplierList.value = response.body()?.let { SupplierList(it) }
|
||||
|
|
Loading…
Reference in New Issue