Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
DitriXNew committed Jan 10, 2023
1 parent c776496 commit f7bb394
Show file tree
Hide file tree
Showing 91 changed files with 509 additions and 290 deletions.
4 changes: 2 additions & 2 deletions IRP/src/AccountingRegisters/Basic/Basic.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Валюты</value>
<value>Валюта</value>
</synonym>
<synonym>
<key>tr</key>
Expand All @@ -112,7 +112,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Сумма оплаты</value>
<value>Сумма</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
</synonym>
<synonym>
<key>tr</key>
<value>Üretim reçete miktarı</value>
<value>Reçete miktarı</value>
</synonym>
<type>
<types>DefinedType.typeQuantity</types>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,4 +133,18 @@
<fullTextSearch>Use</fullTextSearch>
<useInTotals>true</useInTotals>
</dimensions>
<dimensions uuid="69fabe4c-18ed-4839-a750-b35840721267">
<name>LegalName</name>
<synonym>
<key>en</key>
<value>Legal name</value>
</synonym>
<type>
<types>CatalogRef.Companies</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<fullTextSearch>Use</fullTextSearch>
<useInTotals>true</useInTotals>
</dimensions>
</mdclass:AccumulationRegister>
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,18 @@
<fullTextSearch>Use</fullTextSearch>
<useInTotals>true</useInTotals>
</dimensions>
<dimensions uuid="983def76-a969-4af7-8052-f3d11afab1e0">
<name>LegalName</name>
<synonym>
<key>en</key>
<value>Legal name</value>
</synonym>
<type>
<types>CatalogRef.Companies</types>
</type>
<minValue xsi:type="core:UndefinedValue"/>
<maxValue xsi:type="core:UndefinedValue"/>
<fullTextSearch>Use</fullTextSearch>
<useInTotals>true</useInTotals>
</dimensions>
</mdclass:AccumulationRegister>
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Единица измерения</value>
<value>Ед. изм.</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
4 changes: 2 additions & 2 deletions IRP/src/Catalogs/BillOfMaterials/BillOfMaterials.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Единица измерения</value>
<value>Ед. изм.</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down Expand Up @@ -347,7 +347,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Единица измерения</value>
<value>Ед. изм.</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/Catalogs/BillOfMaterials/Forms/ItemForm/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -2271,7 +2271,7 @@
</title>
<title>
<key>ru</key>
<value>Единица измерения</value>
<value>Ед. изм.</value>
</title>
<title>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/Catalogs/Companies/Companies.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Код налога</value>
<value>ИНН</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
</title>
<title>
<key>ru</key>
<value>Наименование</value>
<value>Комментарий</value>
</title>
<title>
<key>tr</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,7 @@
</title>
<title>
<key>tr</key>
<value>Start</value>
<value>Başlat</value>
</title>
<visible>true</visible>
<enabled>true</enabled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</title>
<title>
<key>ru</key>
<value>Наименование</value>
<value>Комментарий</value>
</title>
<title>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/Catalogs/FillingTemplates/Forms/ListForm/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
</title>
<title>
<key>ru</key>
<value>Наименование</value>
<value>Комментарий</value>
</title>
<title>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/Catalogs/SourceOfOrigins/Forms/ItemForm/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</presentation>
<presentation>
<key>ru</key>
<value>Manual</value>
<value>Вручную</value>
</presentation>
<presentation>
<key>tr</key>
Expand Down
6 changes: 3 additions & 3 deletions IRP/src/ChartsOfAccounts/Basic/Basic.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Валюты</value>
<value>Валюта</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down Expand Up @@ -237,7 +237,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Валюты</value>
<value>Валюта</value>
</synonym>
<synonym>
<key>tr</key>
Expand All @@ -259,7 +259,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Сумма оплаты</value>
<value>Сумма</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/CommonForms/EditStores/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -1391,7 +1391,7 @@
</title>
<title>
<key>ru</key>
<value>Единица измерения</value>
<value>Ед. изм.</value>
</title>
<title>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/CommonForms/PickupSpecialOffers/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@
</title>
<title>
<key>ru</key>
<value>Сумма оплаты</value>
<value>Сумма</value>
</title>
<title>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/CommonForms/PrintForm/Form.form
Original file line number Diff line number Diff line change
Expand Up @@ -2718,7 +2718,7 @@
</title>
<title>
<key>ru</key>
<value>Отправка маила</value>
<value>Отправить маил</value>
</title>
<title>
<key>tr</key>
Expand Down
2 changes: 1 addition & 1 deletion IRP/src/CommonModules/Localization/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@ Function Strings(Lang) Export
|ru='Оплата (+)';
|tr='Ödeme (+)'", Lang));
Strings.Insert("InfoMessage_SessionIsClosed", NStr("en='Session is closed';
|ru='Сессия закрыта';
|ru='Смена закрыта';
|tr='Vardya kapandı'", Lang));
Strings.Insert("InfoMessage_Sales", NStr("en='Sales';
|ru='Продажа';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Специальные предложения клиент сервер</value>
<value>Скидки клиент сервер</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
64 changes: 37 additions & 27 deletions IRP/src/CommonModules/RowIDInfoServer/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -2275,42 +2275,52 @@ Function ExtractData_FromSO(BasisesTable, DataReceiver, AddInfo = Undefined)
| Document.SalesOrder.SpecialOffers AS SpecialOffers
| INNER JOIN BasisesTable AS BasisesTable
| ON BasisesTable.Basis = SpecialOffers.Ref
| AND BasisesTable.BasisKey = SpecialOffers.Key
|;
|
|///////////////////////////////////////////////////////////////////////////////
|SELECT DISTINCT
| UNDEFINED AS Ref,
| Payments.PaymentType,
| Payments.PaymentTerminal,
| Payments.Account,
| Payments.Amount,
| Payments.Percent,
| Payments.Commission,
| Payments.BankTerm,
| Payments.Key
| AND BasisesTable.BasisKey = SpecialOffers.Key";

QueryPaymentsAmount = New Query();
QueryPaymentsAmount.Text =
"SELECT
| SUM(R3026B_SalesOrdersCustomerAdvance.Amount) AS Amount,
| VALUE(Catalog.PaymentTypes.EmptyRef) AS PaymentType
|FROM
| Document.SalesOrder.Payments AS Payments
| INNER JOIN BasisesTable AS BasisesTable
| ON BasisesTable.Basis = Payments.Ref
| AccumulationRegister.R3026B_SalesOrdersCustomerAdvance AS R3026B_SalesOrdersCustomerAdvance
|WHERE
| R3026B_SalesOrdersCustomerAdvance.Order IN (&Orders)
| AND (R3026B_SalesOrdersCustomerAdvance.Recorder REFS Document.CashReceipt
| OR R3026B_SalesOrdersCustomerAdvance.Recorder REFS Document.BankReceipt)
|GROUP BY
| Payments.Key,
| Payments.Account,
| Payments.Amount,
| Payments.BankTerm,
| Payments.Commission,
| Payments.PaymentTerminal,
| Payments.PaymentType,
| Payments.Percent";

| VALUE(Catalog.PaymentTypes.EmptyRef)
|HAVING
| SUM(R3026B_SalesOrdersCustomerAdvance.Amount) > 0";

QueryPaymentsAmount.SetParameter("Orders", BasisesTable.UnloadColumn("Basis"));

QueryPaymentsType = New Query();
QueryPaymentsType.Text =
"SELECT
| MAX(PaymentTypes.Ref) AS PaymentType
|FROM
| Catalog.PaymentTypes AS PaymentTypes
|WHERE
| NOT PaymentTypes.DeletionMark
| AND PaymentTypes.Type = VALUE(Enum.PaymentTypes.Advance)";
PaymentsTypeSelection = QueryPaymentsType.Execute().Select();
PaymentType = Catalogs.PaymentTypes.EmptyRef();
If PaymentsTypeSelection.Next() Then
PaymentType = PaymentsTypeSelection.PaymentType;
EndIf;

TablePayments = QueryPaymentsAmount.Execute().Unload();
TablePayments.FillValues(PaymentType, "PaymentType");

Query.SetParameter("BasisesTable", BasisesTable);
QueryResults = Query.ExecuteBatch();

TableRowIDInfo = QueryResults[1].Unload();
TableItemList = QueryResults[2].Unload();
TableTaxList = QueryResults[3].Unload();
TableSpecialOffers = QueryResults[4].Unload();
TablePayments = QueryResults[5].Unload();
//TablePayments = QueryResults[5].Unload();

Tables = New Structure();
Tables.Insert("RowIDInfo" , TableRowIDInfo);
Expand Down
34 changes: 33 additions & 1 deletion IRP/src/CommonModules/SerialLotNumberClient/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,39 @@ Procedure DeleteUnusedSerialLotNumbers(Object, KeyForDelete = Undefined) Export
For Each Row In ArrayOfUnusedRows Do
Object.SerialLotNumbers.Delete(Row);
EndDo;
Else

ArrayOfItemKeys = New Array();
For Each Row In Object.ItemList Do
NewRow = New Structure("Key, ItemKey, SerialLotNumbers", Row.Key, Row.ItemKey, New Array());
For Each RowSLN In Object.SerialLotNumbers.FindRows(New Structure("Key", Row.Key)) Do
NewRow.SerialLotNumbers.Add(New Structure("SerialLotNumber", RowSLN.SerialLotNUmber));
EndDo;
If NewRow.SerialLotNumbers.Count() Then
ArrayOfItemKeys.Add(NewRow);
EndIf;
EndDo;
If ArrayOfItemKeys.Count() Then
ArrayOfWrongSerialLotNumbers = SerialLotNumbersServer.GetWrongSerialLotNumbers(ArrayOfItemKeys);
ArrayForDelete = New Array();

For Each RowSNL In Object.SerialLotNumbers Do
IsWrongSerialLotNumber = False;
For Each Row In ArrayOfWrongSerialLotNumbers Do
If Row.Key = RowSNL.Key And Row.SerialLotNumber = RowSNL.SerialLotNumber Then
IsWrongSerialLotNumber = True;
EndIf;
EndDo;
If IsWrongSerialLotNumber Then
ArrayForDelete.Add(RowSNL);
EndIf;
EndDo;

For Each Row In ArrayForDelete Do
Object.SerialLotNumbers.Delete(Row);
EndDo;
EndIf;

Else // Ke <> Undefined
ArrayRowsForDelete = Object.SerialLotNumbers.FindRows(New Structure("Key", KeyForDelete));
For Each Row In ArrayRowsForDelete Do
Object.SerialLotNumbers.Delete(Row);
Expand Down
32 changes: 32 additions & 0 deletions IRP/src/CommonModules/SerialLotNumbersServer/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -285,3 +285,35 @@ Procedure SetUnique(Object) Export
EndIf;
EndDo;
EndProcedure


Function GetWrongSerialLotNumbers(ArrayOfItemKeys) Export
ArrayOfWrongSerialLotNumbers = New Array();

For Each Row In ArrayOfItemKeys Do
For Each RowSLN In Row.SerialLotNumbers Do
If Not ValueIsFilled(RowSLN.SerialLotNumber) Then
ArrayOfWrongSerialLotNumbers.Add(New Structure("Key, SerialLotNumber"));
Continue;
EndIf;
IsWrongSerialLotNumber = True;
Owner = RowSLN.SerialLotNumber.SerialLotNumberOwner;
If Not ValueIsFilled(Owner) Then
IsWrongSerialLotNumber = False;
ElsIf Owner = Row.ItemKey Then
IsWrongSerialLotNumber = False;
ElsIf Owner = Row.ItemKey.Item Then
IsWrongSerialLotNumber = False;
ElsIf Owner = Row.ItemKey.Item.ItemType Then
IsWrongSerialLotNumber = False;
EndIf;
If IsWrongSerialLotNumber Then
ArrayOfWrongSerialLotNumbers.Add(New Structure("Key, SerialLotNumber", Row.Key, RowSLN.SerialLotNumber));
EndIf;
EndDo;
EndDo;

Return ArrayOfWrongSerialLotNumbers;
EndFUnction


2 changes: 1 addition & 1 deletion IRP/src/CommonPictures/Waiting/Waiting.mdo
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</synonym>
<synonym>
<key>ru</key>
<value>Ожидание2</value>
<value>В ожидании</value>
</synonym>
<synonym>
<key>tr</key>
Expand Down
Loading

0 comments on commit f7bb394

Please sign in to comment.