diff --git a/app/build.gradle b/app/build.gradle
index f5237eaafe..2aa7a37c33 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -9,8 +9,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 21
targetSdkVersion 34
- versionCode 1143
- versionName "0.11.43"
+ versionCode 1144
+ versionName "0.11.44"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
diff --git a/app/src/main/java/org/ole/planet/myplanet/ui/enterprises/FinanceFragment.java b/app/src/main/java/org/ole/planet/myplanet/ui/enterprises/FinanceFragment.java
index 190b3494cd..b9bfa15d7c 100644
--- a/app/src/main/java/org/ole/planet/myplanet/ui/enterprises/FinanceFragment.java
+++ b/app/src/main/java/org/ole/planet/myplanet/ui/enterprises/FinanceFragment.java
@@ -62,6 +62,13 @@ public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle sa
fragmentFinanceBinding.rvFinance.setAdapter(adapterFinance);
isAsc = !isAsc;
});
+ fragmentFinanceBinding.btnReset.setOnClickListener(view -> {
+ list = mRealm.where(RealmMyTeam.class).notEqualTo("status", "archived").equalTo("teamId", teamId).equalTo("docType", "transaction").sort("date", Sort.DESCENDING).findAll();
+ adapterFinance = new AdapterFinance(getActivity(), list);
+ fragmentFinanceBinding.rvFinance.setLayoutManager(new LinearLayoutManager(getActivity()));
+ fragmentFinanceBinding.rvFinance.setAdapter(adapterFinance);
+ calculateTotal(list);
+ });
return fragmentFinanceBinding.getRoot();
}
@@ -78,6 +85,7 @@ private void showDatePickerDialog() {
fragmentFinanceBinding.rvFinance.setAdapter(adapterFinance);
calculateTotal(list);
}, now.get(Calendar.YEAR), now.get(Calendar.MONTH), now.get(Calendar.DAY_OF_MONTH)).show(getActivity().getFragmentManager(), "");
+
}
@Override
diff --git a/app/src/main/res/layout/fragment_finance.xml b/app/src/main/res/layout/fragment_finance.xml
index 26146b23f2..cd5630a9f3 100644
--- a/app/src/main/res/layout/fragment_finance.xml
+++ b/app/src/main/res/layout/fragment_finance.xml
@@ -11,15 +11,32 @@
android:layout_height="match_parent"
android:orientation="vertical">
-
+ android:orientation="horizontal"
+ android:paddingLeft="@dimen/padding_normal"
+ android:paddingRight="@dimen/padding_normal">
+
+
+
+
شريط التقدم
عرض الويب
تكوينات الخادم غير صالحة
-
+ إعادة ضبط التاريخ
+
\ No newline at end of file
diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml
index 27789c5b7f..b2964bcf71 100644
--- a/app/src/main/res/values-es/strings.xml
+++ b/app/src/main/res/values-es/strings.xml
@@ -960,5 +960,6 @@
barra de progreso
vista web
Configuraciones de servidor no válidas
+ Restablecer fecha
diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml
index ba94fcb730..bef449f1e2 100644
--- a/app/src/main/res/values-fr/strings.xml
+++ b/app/src/main/res/values-fr/strings.xml
@@ -960,5 +960,6 @@
barre de progression
vue web
Configurations de serveur invalides
+ Réinitialisation des dates
diff --git a/app/src/main/res/values-ne/strings.xml b/app/src/main/res/values-ne/strings.xml
index a707f3e420..fe42b04ced 100644
--- a/app/src/main/res/values-ne/strings.xml
+++ b/app/src/main/res/values-ne/strings.xml
@@ -960,5 +960,6 @@
प्रगति पट्टि
वेब दृश्य
अमान्य सर्भर विन्यास
+ मिति रिसेट
\ No newline at end of file
diff --git a/app/src/main/res/values-so/strings.xml b/app/src/main/res/values-so/strings.xml
index c16cf520f4..b96917d9b9 100644
--- a/app/src/main/res/values-so/strings.xml
+++ b/app/src/main/res/values-so/strings.xml
@@ -949,5 +949,6 @@
balka soo socda
barashada webka
Dhamaan Suurtagal ah oo Serveryaasha ah
+ Dib u habeynta taariikhda
\ No newline at end of file
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 10d28ff039..aff1756183 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -326,6 +326,7 @@
Weekly
Recurring Frequency
Date Filter
+ Date Reset
Emergency Contact
Contact
Special Needs