Skip to content

Commit

Permalink
Translate
Browse files Browse the repository at this point in the history
  • Loading branch information
DitriXNew committed May 11, 2023
1 parent ee781aa commit bf0bd61
Showing 1 changed file with 8 additions and 13 deletions.
21 changes: 8 additions & 13 deletions IRP/src/DataProcessors/PointOfSale/Forms/Payment/Module.bsl
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit bf0bd61

Please sign in to comment.