From bf0bd61132f46cabd2fd267e2c58d0778cc1e769 Mon Sep 17 00:00:00 2001 From: DitriXNew Date: Thu, 11 May 2023 18:14:19 +0300 Subject: [PATCH] Translate --- .../PointOfSale/Forms/Payment/Module.bsl | 21 +++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/IRP/src/DataProcessors/PointOfSale/Forms/Payment/Module.bsl b/IRP/src/DataProcessors/PointOfSale/Forms/Payment/Module.bsl index 68606b5340..1c6089dd44 100644 --- a/IRP/src/DataProcessors/PointOfSale/Forms/Payment/Module.bsl +++ b/IRP/src/DataProcessors/PointOfSale/Forms/Payment/Module.bsl @@ -820,22 +820,17 @@ EndFunction &AtClient Async Procedure PrintSlip(PaymentSettings) - Cutter = Cutter(); - If StrFind(PaymentSettings.Out.Slip, Cutter) > 0 Then - SlipInfo = PaymentSettings.Out.Slip; - SlipInfoTmp = StrReplace(SlipInfo, Cutter, "⚪"); - For Each SlipInfoPart In StrSplit(SlipInfoTmp, "⚪", False) Do - PaymentSettings.Out.Slip = SlipInfoPart; - Str = New Structure("Payments", New Array); - Str.Payments.Add(New Structure("PaymentInfo", PaymentSettings)); - Await EquipmentFiscalPrinterClient.PrintTextDocument(ConsolidatedRetailSales, Str); - EndDo; - PaymentSettings.Out.Slip = SlipInfo; - Else + SlipInfo = PaymentSettings.Out.Slip; + SlipInfoTmp = StrReplace(SlipInfo, Cutter(), "⚪"); + SlipInfoTmp = StrReplace(SlipInfoTmp, "[cut]", "⚪"); + + For Each SlipInfoPart In StrSplit(SlipInfoTmp, "⚪", False) Do + PaymentSettings.Out.Slip = SlipInfoPart; Str = New Structure("Payments", New Array); Str.Payments.Add(New Structure("PaymentInfo", PaymentSettings)); Await EquipmentFiscalPrinterClient.PrintTextDocument(ConsolidatedRetailSales, Str); - EndIf; + EndDo; + PaymentSettings.Out.Slip = SlipInfo; EndProcedure // Get RRNCode.