public static Map<String, Object> makeproductmap() {
Debug.logInfo("makemap", module);
productinfo.clear();
// productinfo.put("quantityincluded",getquantityincluded()));
// productinfo.put("fixedamount",getfixedamount()));
//productinfo.put("weight", getweight());
// productinfo.put("productheight",getproductheight()));
// productinfo.put("shippingheight",getshippingheight()));
// productinfo.put("productwidth",getproductwidth()));
// productinfo.put("shippingwidth",getshippingwidth()));
// productinfo.put("productdepth",getproductdepth()));
// productinfo.put("shippingdepth",getshippingdepth()));
// productinfo.put("productrating",getproductrating()));
// productinfo.put("reservmaxpersons",getreservmaxpersons()));
// productinfo.put("reserv2ndppperc",getreserv2ndppperc()));
// productinfo.put("reservnthppperc",getreservnthppperc()));
// productinfo.put("introductiondate",getintroductiondate()));
// productinfo.put("supportdiscontinuationdate",getsupportdiscontinuationdate()));
// productinfo.put("salesdiscontinuationdate",getsalesdiscontinuationdate()));
// productinfo.put("locale",getlocale()));
// productinfo.put("piecesincluded",getpiecesincluded()));
// UtilMisc.addToBigDecimalInMap(productinfo,billofmateriallevel,getbillofmateriallevel());
productinfo.putAll(UtilMisc.toMap("userLogin", getuserlogin()));
productinfo.putAll(UtilMisc.toMap("productId", getproductid()));
productinfo.putAll(UtilMisc.toMap("primaryProductCategoryId",
getprimaryproductcategoryid()));
// productinfo.put("manufacturerpartyid",getmanufacturerpartyid()));
// productinfo.put("facilityid",getfacilityid()));
// productinfo.put("salesdiscwhennotavail",getsalesdiscwhennotavail()));
// productinfo.put("brandname",getbrandname()));
productinfo.putAll(UtilMisc.toMap("comments", getcomments()));
// productinfo.putAll(UtilMisc.toMap("productname", getproductname()));
productinfo.putAll(UtilMisc.toMap("description", getdescription()));
productinfo.putAll(UtilMisc.toMap("longDescription",
getlongdescription()));
// productinfo.putAll(UtilMisc.toMap("pricedetailtext",
// getpricedetailtext()));
// productinfo.putAll(UtilMisc.toMap("smallimageurl",
// getsmallimageurl()));
// productinfo.putAll(UtilMisc.toMap("mediumimageurl",
// getmediumimageurl()));
// productinfo.putAll(UtilMisc.toMap("largeimageurl",
// getlargeimageurl()));
// productinfo.putAll(UtilMisc.toMap("detailimageurl",
// getdetailimageurl()));
// productinfo.putAll(UtilMisc.toMap("detailscreen",
// getdetailscreen()));
// productinfo.putAll(UtilMisc.toMap("inventorymessage",
// getinventorymessage()));
productinfo.putAll(UtilMisc.toMap("requireInventory",
getrequireinventory()));
// productinfo.putAll(UtilMisc.toMap("quantityuomid",
// getquantityuomid()));
// productinfo.putAll(UtilMisc.toMap("requireamount",getrequireamount()));
// productinfo.putAll(UtilMisc.toMap("amountuomtypeid",getamountuomtypeid()));
// productinfo.putAll(UtilMisc.toMap("weightuomid",getweightuomid()));
// productinfo.putAll(UtilMisc.toMap("heightuomid",getheightuomid()));
// productinfo.putAll(UtilMisc.toMap("widthuomid",getwidthuomid()));
// productinfo.putAll(UtilMisc.toMap("depthuomid",getdepthuomid()));
// productinfo.putAll(UtilMisc.toMap("ratingtypeenum",getratingtypeenum()));
// productinfo.putAll(UtilMisc.toMap("returnable", getreturnable()));
productinfo.putAll(UtilMisc.toMap("taxable", gettaxable()));
// productinfo.putAll(UtilMisc.toMap("taxcategory", gettaxcategory()));
// productinfo.putAll(UtilMisc.toMap("taxvatcode",gettaxvatcode()));
// productinfo.putAll(UtilMisc.toMap("taxdutycode",gettaxdutycode()));
productinfo.putAll(UtilMisc
.toMap("chargeShipping", getchargeshipping()));
productinfo.putAll(UtilMisc.toMap("autoCreateKeywords",
getautocreatekeywords()));
// productinfo.putAll(UtilMisc.toMap("includeinpromotions",getincludeinpromotions()));
// productinfo.putAll(UtilMisc.toMap("isvirtual",getisvirtual()));
// productinfo.putAll(UtilMisc.toMap("isvariant",getisvariant()));
// productinfo.putAll(UtilMisc.toMap("origingeoid", getorigingeoid()));
// productinfo.putAll(UtilMisc.toMap("requirementmethodenumid",getrequirementmethodenumid()));
productinfo.putAll(UtilMisc.toMap("productTypeId", getproducttypeid()));
productinfo.putAll(UtilMisc.toMap("internalName", getinternalname()));
Debug.logInfo("makemap done", module);
return productinfo;
}
|