Skip to content

Commit

Permalink
fix: make Dr/Cr in CoA translatable (#39033)
Browse files Browse the repository at this point in the history
* fix: make Dr/Cr in CoA translatable

* fix: german translations
  • Loading branch information
barredterra authored Jan 5, 2024
1 parent 54383cf commit 07b605a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion erpnext/accounts/doctype/account/account_tree.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ frappe.treeview_settings["Account"] = {

// show Dr if positive since balance is calculated as debit - credit else show Cr
const balance = account.balance_in_account_currency || account.balance;
const dr_or_cr = balance > 0 ? "Dr": "Cr";
const dr_or_cr = balance > 0 ? __("Dr"): __("Cr");
const format = (value, currency) => format_currency(Math.abs(value), currency);

if (account.balance!==undefined) {
Expand Down
6 changes: 3 additions & 3 deletions erpnext/translations/de.csv
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ Course Code: ,Kurscode:,
Course Enrollment {0} does not exists,Die Kursanmeldung {0} existiert nicht,
Course Schedule,Kurstermine,
Course: ,Kurs:,
Cr,Haben,
Cr,H,
Create,Erstellen,
Create BOM,Stückliste anlegen,
Create Delivery Trip,Erstelle Auslieferungsfahrt,
Expand Down Expand Up @@ -3401,7 +3401,7 @@ Do you want to submit the material request,Möchten Sie die Materialanfrage einr
Doctype,DocType,
Document {0} successfully uncleared,Dokument {0} wurde nicht erfolgreich gelöscht,
Download Template,Vorlage herunterladen,
Dr,Soll,
Dr,S,
Due Date,Fälligkeitsdatum,
Duplicate,Duplizieren,
Duplicate Project with Tasks,Projekt mit Aufgaben duplizieren,
Expand Down Expand Up @@ -7370,6 +7370,7 @@ Default Stock UOM,Standardlagermaßeinheit,
Sample Retention Warehouse,Beispiel Retention Warehouse,
Default Valuation Method,Standard-Bewertungsmethode,
Show Barcode Field,Anzeigen Barcode-Feld,
Show Balances in Chart Of Accounts,Saldo in Kontenplan anzeigen,
Convert Item Description to Clean HTML,Elementbeschreibung in HTML bereinigen,
Allow Negative Stock,Negativen Lagerbestand zulassen,
Automatically Set Serial Nos based on FIFO,Automatisch Seriennummern auf Basis FIFO einstellen,
Expand Down Expand Up @@ -8812,7 +8813,6 @@ Column {0},Spalte {0},
Field Mapping,Feldzuordnung,
Not Specified,Keine Angabe,
Update Type,Aktualisierungsart,
Dr,Soll,
End Time,Endzeit,
Fetching...,Abrufen ...,
"It seems that there is an issue with the server's stripe configuration. In case of failure, the amount will get refunded to your account.","Es scheint, dass ein Problem mit der Stripe-Konfiguration des Servers vorliegt. Im Falle eines Fehlers wird der Betrag Ihrem Konto gutgeschrieben.",
Expand Down

0 comments on commit 07b605a

Please sign in to comment.