UOCL-317: adding taxID to ticket

This commit is contained in:
2026-01-10 12:34:54 +00:00
parent f15ccc4c23
commit 0aa4729e2e
2 changed files with 41 additions and 29 deletions
@@ -55,6 +55,7 @@ public class AppUser {
private final Icon m_Icon;
private Set<String> m_apermissions;
private String taxId;
static {
initOldClasses();
@@ -78,6 +79,7 @@ public class AppUser {
m_sRole = role;
m_Icon = icon;
m_apermissions = null;
this.taxId = taxId;
}
/**
@@ -199,14 +201,14 @@ public class AppUser {
* @return
*/
public UserInfo getUserInfo() {
return new UserInfo(m_sId, m_sName);
return new UserInfo(m_sId, m_sName, this.taxId);
}
private static String mapNewClass(String classname) {
String newclass = m_oldclasses.get(classname);
return newclass == null
? classname
: newclass;
? classname
: newclass;
}
private static void initOldClasses() {
@@ -222,7 +224,8 @@ public class AppUser {
m_oldclasses.put("Menu.StockManagement", "com.unicenta.pos.forms.MenuStockManagement");
m_oldclasses.put("net.adrianromero.tpv.inventory.ProductsPanel", "com.unicenta.pos.inventory.ProductsPanel");
m_oldclasses.put("net.adrianromero.tpv.inventory.ProductsWarehousePanel", "com.unicenta.pos.inventory.ProductsWarehousePanel");
m_oldclasses.put("net.adrianromero.tpv.inventory.ProductsWarehousePanel",
"com.unicenta.pos.inventory.ProductsWarehousePanel");
m_oldclasses.put("net.adrianromero.tpv.inventory.CategoriesPanel", "com.unicenta.pos.inventory.CategoriesPanel");
m_oldclasses.put("net.adrianromero.tpv.panels.JPanelTax", "com.unicenta.pos.inventory.TaxPanel");
m_oldclasses.put("net.adrianromero.tpv.inventory.StockDiaryPanel", "com.unicenta.pos.inventory.StockDiaryPanel");
@@ -300,5 +303,4 @@ public class AppUser {
}
}
}