Orders POC

This commit is contained in:
2023-12-10 14:41:24 +00:00
parent 492990848b
commit bfaeedfa34
2 changed files with 23 additions and 5 deletions
+1 -1
View File
@@ -325,7 +325,7 @@
<dependency> <dependency>
<groupId>com.unicenta</groupId> <groupId>com.unicenta</groupId>
<artifactId>unicenta-plugins</artifactId> <artifactId>unicenta-plugins</artifactId>
<version>1.2.2</version> <version>1.2.3-SNAPSHOT</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>com.gluonhq</groupId> <groupId>com.gluonhq</groupId>
@@ -33,17 +33,17 @@ import com.unicenta.pos.sales.ReprintTicketInfo;
import com.unicenta.pos.sales.SharedTicketInfo; import com.unicenta.pos.sales.SharedTicketInfo;
import com.unicenta.pos.sales.TicketsEditor; import com.unicenta.pos.sales.TicketsEditor;
import com.unicenta.pos.ticket.TicketInfo; import com.unicenta.pos.ticket.TicketInfo;
import lombok.extern.slf4j.Slf4j;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import javax.swing.JComponent; import javax.swing.*;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
/** /**
* *
* @author JG uniCenta * @author JG uniCenta
*/ */
@Slf4j
public class JTicketsBagShared extends JTicketsBag { public class JTicketsBagShared extends JTicketsBag {
private String m_sCurrentTicket = null; private String m_sCurrentTicket = null;
@@ -75,6 +75,24 @@ public class JTicketsBagShared extends JTicketsBag {
*/ */
@Override @Override
public void activate() { public void activate() {
log.info("Loading Sales screen! "+this.getClass());
SwingWorker<String, String> reloadLayaway = new SwingWorker<>() {
@Override
protected String doInBackground() throws Exception {
while (true) {
log.debug("refresh screen");
updateCount();
Thread.sleep(10000);
}
//return null;
}
};
reloadLayaway.execute();
m_sCurrentTicket = null; m_sCurrentTicket = null;
selectValidTicket(); selectValidTicket();