feat: refs #8099 addSalarySupplement
This commit is contained in:
parent
26e13bb7d0
commit
afc8abe090
|
@ -34,7 +34,11 @@ class SalaryComplementFragment(
|
|||
private val adapterComplement: SalarySupplementAdapter by lazy {
|
||||
SalarySupplementAdapter(emptyList(), object : OnSalarySupplementClickListener {
|
||||
override fun onSalarySupplementClickListener(item: RouteComplement) {
|
||||
viewModel.routeComplementDelete(item.id, binding.date.text.toString())
|
||||
viewModel.routeComplementDelete(
|
||||
item.id,
|
||||
binding.date.text.toString(),
|
||||
mobileApplication.userId!!
|
||||
)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -61,7 +65,10 @@ class SalaryComplementFragment(
|
|||
requireContext(), { _, selectedYear, selectedMonth, selectedDay ->
|
||||
binding.date.text =
|
||||
getString(R.string.dateDay, selectedDay, selectedMonth + 1, selectedYear)
|
||||
viewModel.getRouteComplements(binding.date.text.toString())
|
||||
viewModel.getRouteComplements(
|
||||
binding.date.text.toString(),
|
||||
mobileApplication.userId!!
|
||||
)
|
||||
}, year, month, day
|
||||
).apply {
|
||||
setTitle(getString(R.string.selectDate))
|
||||
|
@ -72,7 +79,7 @@ class SalaryComplementFragment(
|
|||
override fun init() {
|
||||
viewModel.getRouteAction()
|
||||
binding.date.text = toDateString(Date())
|
||||
viewModel.getRouteComplements(binding.date.text.toString())
|
||||
viewModel.getRouteComplements(binding.date.text.toString(), mobileApplication.userId!!)
|
||||
ma.hideBottomNavigation(View.GONE)
|
||||
setToolBar()
|
||||
setEvents()
|
||||
|
|
|
@ -104,7 +104,7 @@ class ExpeditionDeleteFragment(var title: String = "") :
|
|||
adapter!!.updateItems(listExpeditions.map { it.expeditionFk.toLong() } as ArrayList<Long>)
|
||||
} else {
|
||||
ma.messageWithSound(
|
||||
message = "Caja ya escaneada",
|
||||
message = getString(R.string.boxScanned),
|
||||
isError = true,
|
||||
isPlayed = true,
|
||||
isToasted = true
|
||||
|
|
Loading…
Reference in New Issue