diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroFragment.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroFragment.kt index 3bbc451e..bf43de7c 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroFragment.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroFragment.kt @@ -97,6 +97,7 @@ class PasilleroFragment( getString(R.string.main) -> viewModel.inititializeDefaultDataInit() getString(R.string.titleClaims) -> viewModel.inititializeDefaultClaim() getString(R.string.titleDelivery) -> viewModel.inititializeDefaultDelivery() + getString(R.string.titleDeliveryTruck) -> viewModel.inititializeDefaultDeliveryTruck() getString(R.string.titlePrevious) -> viewModel.inititializeDefaultPrevia() getString(R.string.titleControllers) -> viewModel.inititializeDefaultChecker() getString(R.string.titleOther) -> viewModel.inititializeDefaultOther() diff --git a/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt b/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt index 14d4efd6..a03683de 100644 --- a/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt +++ b/app/src/main/java/es/verdnatura/presentation/view/feature/pasillero/fragment/PasilleroViewModel.kt @@ -437,7 +437,6 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { ) ) - if (userId == 19591 || userId == 9) { _pasillerositem.add( PasillerosItemVO( 6, @@ -447,7 +446,7 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { contextApp.getString(R.string.titleDeliveryTruck) ) ) - } + //#tarea4021 _pasillerositem.add( @@ -537,8 +536,21 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { } - fun inititializeDefaultPrevia() { + fun inititializeDefaultDeliveryTruck() { + _pasillerositem.add( + PasillerosItemVO( + 6, + R.drawable.ic_troncales, + contextApp.getString(R.string.titleDeliveryTruck), + R.string.titleDeliveryTruck, + contextApp.getString(R.string.titleDeliveryTruck) + ) + ) + + } + + fun inititializeDefaultPrevia() { if (isOnReservationMode){ // if (userId == 19591 || userId == 18404 || userId == 9) { _pasillerositem.add( @@ -608,7 +620,6 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { ) ) - if (userId == 19591 || userId == 9) { _pasillerositem.add( PasillerosItemVO( 1, @@ -620,7 +631,6 @@ class PasilleroViewModel(context: Context) : BaseViewModel(context) { ) ) ) - } _pasillerositem.add( PasillerosItemVO(