Pman.Dialog.XtupleVendorEdit.js
{
"|xns": "Roo.Toolbar",
"xtype": "Fill"
+ },
+ {
+ "listeners": {
+ "click": "function (_self, e)\n{\n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Import/Products',\n \n },\n function (data) {\n var msg = [];\n \n if (data.updated) {\n msg.push(\"Updated \" + data.updated + \" Products(s)\");\n } \n if (data.inserted) {\n msg.push(\"Added \" + data.inserted + \" Products(s)\");\n }\n if (data.skipped) {\n msg.push(\"Skipped \" + data.skipped);\n }\n \n if (!msg.length) {\n msg.push(\"No data changed\");\n }\n Roo.MessageBox.alert(\"Notice\", msg.join(\"\\n\"));\n\n }\n );\n}"
+ },
+ "text": "Upload new products and costs",
+ "xtype": "Button",
+ "|xns": "Roo.Toolbar"
}
]
},
{
xtype: 'Fill',
xns: Roo.Toolbar
+ },
+ {
+ xtype: 'Button',
+ xns: Roo.Toolbar,
+ listeners : {
+ click : function (_self, e)
+ {
+ Pman.Dialog.Image.show(
+ {
+ _url : baseURL+'/Xtuple/Import/Products',
+
+ },
+ function (data) {
+ var msg = [];
+
+ if (data.updated) {
+ msg.push("Updated " + data.updated + " Products(s)");
+ }
+ if (data.inserted) {
+ msg.push("Added " + data.inserted + " Products(s)");
+ }
+ if (data.skipped) {
+ msg.push("Skipped " + data.skipped);
+ }
+
+ if (!msg.length) {
+ msg.push("No data changed");
+ }
+ Roo.MessageBox.alert("Notice", msg.join("\n"));
+
+ }
+ );
+ }
+ },
+ text : "Upload new products and costs"
}
]
},