add sample items

This commit is contained in:
buzz-lightsnack-2007 2024-02-25 13:04:40 +08:00
parent cd23cffd7d
commit 12a15ba386

View file

@ -4,10 +4,27 @@
*/
package tech.iBeans.POSware.Lite;
import java.util.Dictionary;
import java.util.Hashtable;
/**
*
* @author eleven
*/
public class data_test {
public static Dictionary<String, Dictionary> fake_items = new Hashtable<>();
static {
/* Fake items. */
Dictionary item_1 = new Hashtable<>();
item_1.put("Name", "No Discount");
item_1.put("Price", 1);
fake_items.put("13f", item_1);
Dictionary item_2 = new Hashtable<>();
item_1.put("Name", "With Discount");
item_1.put("Price", 1);
item_1.put("Discount", 0.95);
fake_items.put("13a", item_1);
};
}