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 {
}
}
}
@@ -26,31 +26,41 @@ import java.io.Serializable;
*/
public class UserInfo implements Serializable {
private static final long serialVersionUID = 7537578737839L;
private String m_sId;
private String m_sName;
private static final long serialVersionUID = 7537578737839L;
private String m_sId;
private String m_sName;
private String taxId;
/** Creates a new instance of UserInfoBasic
* @param id
* @param name */
public UserInfo(String id, String name) {
m_sId = id;
m_sName = name;
}
/**
* Creates a new instance of UserInfoBasic
*
* @param id
* @param name
*/
public UserInfo(String id, String name) {
m_sId = id;
m_sName = name;
}
/**
*
* @return
*/
public String getId() {
return m_sId;
}
public UserInfo(String id, String name, String taxId) {
m_sId = id;
m_sName = name;
this.taxId = taxId;
}
/**
*
* @return
*/
public String getName() {
return m_sName;
}
/**
*
* @return
*/
public String getId() {
return m_sId;
}
/**
*
* @return
*/
public String getName() {
return m_sName;
}
}