Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
sending printer id instead of id recipe
  • Loading branch information
Vlad Somai authored and Vlad Somai committed Jul 11, 2022
1 parent b6a500f commit 0c014ca
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Necta/API/ReceiptType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

public class Receipt
{
public string ID { get; set; }
public string ID { get; set; } //receipt ID

public string Device { get; set; }
public string Device { get; set; }

public string Printer { get; set; }
public string Printer { get; set; } //Printer ID

public string HTML { get; set; }

Expand Down
4 changes: 2 additions & 2 deletions Necta/NectaServices/NectaService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public static void RunService()
{
PrinterError printerError = new PrinterError();
printerError.API_GET_URI = API_Handler.API_GET_URI.ToString();
printerError.PrinterID = receipt.ID.ToString();
printerError.PrinterID = receipt.Printer.ToString();
printerError.printerInfo = printer;

if (API_Handler.API_PRINTER_INFO_URI == null)
Expand All @@ -94,7 +94,7 @@ public static void RunService()
}

//load the html document on the main thread
Necta.MainThreadDispatcher.Invoke(LHDdel, new object[] { receipt.HTML });//call PrintReceipt from main thread
Necta.MainThreadDispatcher.Invoke(LHDdel, new object[] { receipt.HTML });

//wait for the document to complete loading(done in main thread)
while (!Necta.mHtmlDocumentIsLoaded)
Expand Down

0 comments on commit 0c014ca

Please sign in to comment.