Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
DitriXNew committed May 29, 2024
1 parent 0f38186 commit cc27b39
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,26 @@
<fullTextSearch>Use</fullTextSearch>
<useInTotals>true</useInTotals>
</dimensions>
<dimensions uuid="761642fc-2a73-4f78-be0b-e514af4fc441">
<name>RevaluatedCurrency</name>
<synonym>
<key>en</key>
<value>Revaluated currency</value>
</synonym>
<synonym>
<key>ru</key>
<value>Переоцениваемая валюта</value>
</synonym>
<synonym>
<key>tr</key>
<value>Değerlenen döviz</value>
</synonym>
<type>
<types>CatalogRef.Currencies</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<fullTextSearch>Use</fullTextSearch>
<useInTotals>true</useInTotals>
</dimensions>
</mdclass:AccumulationRegister>
8 changes: 5 additions & 3 deletions IRP/src/CommonModules/AccountingServer/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -2101,8 +2101,8 @@ Function GetAccountingData(Parameters)
Query = New Query();
Query.Text =
"SELECT
| Amounts.Currency,
| SUM(Amounts.Amount) AS Amount
| case when &IsRevaluationCurrency then Amounts.RevaluatedCurrency else Amounts.Currency end as Currency,
| SUM(case when &IsRevaluationCurrency then 0 else Amounts.Amount end) AS Amount
|FROM
| AccumulationRegister.T1040T_AccountingAmounts AS Amounts
|WHERE
Expand All @@ -2115,7 +2115,7 @@ Function GetAccountingData(Parameters)
| else True
| end
|GROUP BY
| Amounts.Currency
| case when &IsRevaluationCurrency then Amounts.RevaluatedCurrency else Amounts.Currency end
|;
|
|////////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -2164,8 +2164,10 @@ Function GetAccountingData(Parameters)

If Parameters.IsCurrencyRevaluation Then
Query.SetParameter("RevaluationCurrency", Parameters.CurrencyMovementType);
Query.SetParameter("IsRevaluationCurrency", True);
Else
Query.SetParameter("RevaluationCurrency", ChartsOfCharacteristicTypes.CurrencyMovementType.SettlementCurrency);
Query.SetParameter("IsRevaluationCurrency", False);
EndIf;

QueryResults = Query.ExecuteBatch();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Form</value>
<value>Форма</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
20 changes: 20 additions & 0 deletions IRP/src/Documents/ForeignCurrencyRevaluation/ManagerModule.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency AS RevaluatedCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R2020B_AdvancesFromCustomers) AS
| Operation
Expand All @@ -567,6 +568,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R2020B_AdvancesFromCustomers_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -584,6 +586,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R1021B_VendorsTransactions) AS
| Operation
Expand All @@ -601,6 +604,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R1021B_VendorsTransactions_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -618,6 +622,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R9510B_SalaryPayment) AS
| Operation
Expand All @@ -635,6 +640,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R9510B_SalaryPayment_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -653,6 +659,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R3010B_CashOnHand) AS Operation
|FROM
Expand All @@ -669,6 +676,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R3010B_CashOnHand_CR_R5021T_Revenues) AS Operation
|FROM
Expand All @@ -685,6 +693,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R1020B_AdvancesToVendors) AS
| Operation
Expand All @@ -702,6 +711,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R1020B_AdvancesToVendors_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -719,6 +729,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R2021B_CustomersTransactions) AS
| Operation
Expand All @@ -736,6 +747,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R2021B_CustomersTransactions_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -753,6 +765,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R3015B_CashAdvance) AS Operation
|FROM
Expand All @@ -769,6 +782,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R3015B_CashAdvance_CR_R5021T_Revenues) AS Operation
|FROM
Expand All @@ -785,6 +799,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R3027B_EmployeeCashAdvance) AS
| Operation
Expand All @@ -802,6 +817,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R3027B_EmployeeCashAdvance_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -819,6 +835,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R5015B_OtherPartnersTransactions) AS
| Operation
Expand All @@ -836,6 +853,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5015B_OtherPartnersTransactions_CR_R5021T_Revenues) AS
| Operation
Expand All @@ -853,6 +871,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R5022T_Expenses_CR_R8510B_BookValueOfFixedAsset) AS
| Operation
Expand All @@ -870,6 +889,7 @@ Function T1040T_AccountingAmounts()
| Table.Key AS Key,
| Table.Currency,
| Table.CurrencyMovementType,
| Table.TransactionCurrency,
| Table.AmountRevaluated AS Amount,
| VALUE(Catalog.AccountingOperations.ForeignCurrencyRevaluation_DR_R8510B_BookValueOfFixedAsset_CR_R5021T_Revenues) AS
| Operation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2987,7 +2987,7 @@
</title>
<title>
<key>tr</key>
<value>Vendor's price</value>
<value>Tedarikçi fiyatı</value>
</title>
<extendedTooltip>
<name>VendorPriceExtendedTooltip</name>
Expand Down Expand Up @@ -3297,7 +3297,7 @@
</title>
<title>
<key>tr</key>
<value>Vendor's price</value>
<value>Tedarikçi fiyatı</value>
</title>
<visible>true</visible>
<enabled>true</enabled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3017,7 +3017,7 @@
</title>
<title>
<key>tr</key>
<value>Vendor's price</value>
<value>Tedarikçi fiyatı</value>
</title>
<extendedTooltip>
<name>VendorPriceExtendedTooltip</name>
Expand Down

0 comments on commit cc27b39

Please sign in to comment.