-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3490 from unicef/staging
Staging
- Loading branch information
Showing
42 changed files
with
1,169 additions
and
552 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
VERSION = __version__ = '9.12.1' | ||
VERSION = __version__ = '10.1' | ||
NAME = 'eTools' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/etools/applications/audit/migrations/0024_audit_year_of_audit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Generated by Django 3.2.6 on 2023-04-14 07:53 | ||
|
||
from django.db import migrations, models | ||
from django.db.models import F, Subquery, OuterRef | ||
from django.db.models.functions import Extract | ||
from django.utils import timezone | ||
|
||
import etools.applications.audit.models | ||
|
||
|
||
def fill_year_of_audit(apps, schema_editor): | ||
Engagement = apps.get_model('audit', 'Engagement') | ||
Engagement.objects.filter( | ||
engagement_type='audit', | ||
date_of_draft_report_to_ip__isnull=False, | ||
).update( | ||
year_of_audit=Subquery( | ||
Engagement.objects.filter( | ||
pk=OuterRef('pk') | ||
).annotate( | ||
end_year=Extract("date_of_draft_report_to_ip", "year") | ||
).values('end_year')[:1] | ||
) | ||
) | ||
Engagement.objects.filter( | ||
engagement_type='audit', | ||
date_of_draft_report_to_ip__isnull=True, | ||
).update( | ||
year_of_audit=timezone.now().year, | ||
) | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0023_auto_20220415_1130'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='engagement', | ||
name='year_of_audit', | ||
field=models.PositiveSmallIntegerField(default=1, null=True), | ||
), | ||
migrations.RunPython(fill_year_of_audit, migrations.RunPython.noop), | ||
migrations.AlterField( | ||
model_name='engagement', | ||
name='year_of_audit', | ||
field=models.PositiveSmallIntegerField(default=etools.applications.audit.models.get_current_year, null=True), | ||
), | ||
] |
19 changes: 19 additions & 0 deletions
19
src/etools/applications/audit/migrations/0025_alter_engagement_year_of_audit.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by Django 3.2.6 on 2023-04-17 09:36 | ||
|
||
from django.db import migrations, models | ||
import etools.applications.audit.models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('audit', '0024_audit_year_of_audit'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='engagement', | ||
name='year_of_audit', | ||
field=models.PositiveSmallIntegerField(db_index=True, default=etools.applications.audit.models.get_current_year, null=True), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-611 Bytes
(99%)
src/etools/applications/partners/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: PACKAGE VERSION\n" | ||
"Report-Msgid-Bugs-To: \n" | ||
"POT-Creation-Date: 2023-03-07 13:01+0000\n" | ||
"POT-Creation-Date: 2023-05-04 15:48+0000\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
@@ -1176,6 +1176,9 @@ msgstr "التدخل المعدل" | |
msgid "Intervention amendments" | ||
msgstr "تعديلات التدخل" | ||
|
||
msgid "Q1" | ||
msgstr "" | ||
|
||
msgid "Intervention" | ||
msgstr "تدخل" | ||
|
||
|
@@ -1603,6 +1606,11 @@ msgstr "لا يمكن إضافة تعديل جديد أثناء حظر الشر | |
msgid "Other description required, if type 'Other' selected." | ||
msgstr "مطلوب وصف آخر ، إذا تم تحديد نوع \"أخرى\"." | ||
|
||
#, fuzzy | ||
#| msgid "Active" | ||
msgid "Inactive" | ||
msgstr "نشيط" | ||
|
||
msgid "Planned Visit to be set only at Partner level" | ||
msgstr "سيتم تعيين الزيارة المخططة على مستوى الشريك فقط" | ||
|
||
|
@@ -2267,19 +2275,6 @@ msgstr "لا يمكن حذف تقييم مكتمل" | |
msgid "No vendor number provided for Partner Organization" | ||
msgstr "لم يتم توفير رقم البائع للمؤسسة الشريكة" | ||
|
||
msgid "" | ||
"There was a PCA/SSFA signed with this partner or a transaction was performed " | ||
"against this partner. The Partner record cannot be deleted" | ||
msgstr "" | ||
"كان هناك PCA / SSFA موقعة مع هذا الشريك أو تم إجراء معاملة ضد هذا الشريك. لا " | ||
"يمكن حذف سجل الشريك" | ||
|
||
msgid "This partner has trips associated to it" | ||
msgstr "هذا الشريك لديه رحلات مرتبطة به" | ||
|
||
msgid "This partner has cash transactions associated to it" | ||
msgstr "هذا الشريك لديه معاملات نقدية مرتبطة به" | ||
|
||
msgid "Terms to be acknowledged" | ||
msgstr "يجب الاعتراف بالشروط" | ||
|
||
|
@@ -2302,3 +2297,16 @@ msgstr "لا تحتوي الاستجابة التي أرجعها الخادم ع | |
|
||
msgid "Partnership Manager role required for pca export." | ||
msgstr "دور مدير الشراكة المطلوب لتصدير pca." | ||
|
||
#~ msgid "" | ||
#~ "There was a PCA/SSFA signed with this partner or a transaction was " | ||
#~ "performed against this partner. The Partner record cannot be deleted" | ||
#~ msgstr "" | ||
#~ "كان هناك PCA / SSFA موقعة مع هذا الشريك أو تم إجراء معاملة ضد هذا الشريك. " | ||
#~ "لا يمكن حذف سجل الشريك" | ||
|
||
#~ msgid "This partner has trips associated to it" | ||
#~ msgstr "هذا الشريك لديه رحلات مرتبطة به" | ||
|
||
#~ msgid "This partner has cash transactions associated to it" | ||
#~ msgstr "هذا الشريك لديه معاملات نقدية مرتبطة به" |
Binary file modified
BIN
-532 Bytes
(99%)
src/etools/applications/partners/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
Oops, something went wrong.