diff --git a/ebaystore/config/EbayStoreUiLabels.xml b/ebaystore/config/EbayStoreUiLabels.xml
index 0861af765..ef19d09cb 100644
--- a/ebaystore/config/EbayStoreUiLabels.xml
+++ b/ebaystore/config/EbayStoreUiLabels.xml
@@ -183,4 +183,7 @@
Update To Ebay Inventory
+
+ Update Inventory Status
+
diff --git a/ebaystore/ofbiz-component.xml b/ebaystore/ofbiz-component.xml
index 638f846c9..95d350902 100644
--- a/ebaystore/ofbiz-component.xml
+++ b/ebaystore/ofbiz-component.xml
@@ -23,6 +23,7 @@ under the License.
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/ofbiz-component.xsd">
+
diff --git a/ebaystore/script/org/ofbiz/ebaystore/EbayServices.xml b/ebaystore/script/org/ofbiz/ebaystore/EbayServices.xml
index b5e3185fa..f35bf6f6d 100644
--- a/ebaystore/script/org/ofbiz/ebaystore/EbayServices.xml
+++ b/ebaystore/script/org/ofbiz/ebaystore/EbayServices.xml
@@ -43,8 +43,8 @@
-
-
+
+
@@ -62,7 +62,13 @@
-
+
+
+
+
+
+
+
@@ -94,11 +100,13 @@
+
+
@@ -174,281 +182,145 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ebaystore/servicedef/services.xml b/ebaystore/servicedef/services.xml
index 0284d11ec..f6198cd37 100644
--- a/ebaystore/servicedef/services.xml
+++ b/ebaystore/servicedef/services.xml
@@ -103,7 +103,7 @@ under the License.
-
+
@@ -189,8 +189,8 @@ under the License.
-
+
Reserve Inventory in a Product Store
@@ -199,18 +199,23 @@ under the License.
- Reserve Inventory for a Product By Facility
+ location="component://product/script/org/ofbiz/product/inventory/InventoryReserveServices.xml" invoke="reserveProductInventory" auth="true">
+ Reserve product for ebay Inventory and make reserve for a Product By Facility
If requireInventory is Y the quantity not reserved is returned, if N then a negative
availableToPromise will be used to track quantity ordered beyond what is in stock.
+
+
+
+
+
+
+ update status Inventory from ebay store inventory
+
+
+
+
+
+
+
+
+
+ Update/cancel an Product quantity that reserved from inventory
+
+
+
+
\ No newline at end of file
diff --git a/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java b/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
index 48832cee7..f0760f1bb 100644
--- a/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
+++ b/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java
@@ -466,14 +466,14 @@ public class EbayStore {
String userLoginId = null;
String password = null;
- if(context.get("productStoreId") != null){
+ if (context.get("productStoreId") != null) {
String partyId = null;
try {
List productStoreRoles = delegator.findByAnd("ProductStoreRole", UtilMisc.toMap("productStoreId", context.get("productStoreId").toString(),"roleTypeId","EBAY_ACCOUNT"));
- if(productStoreRoles!=null){
+ if (productStoreRoles!=null) {
partyId= (String)productStoreRoles.get(0).get("partyId");
List userLogin = delegator.findByAnd("UserLogin", UtilMisc.toMap("partyId", partyId));
- if(userLogin!=null){
+ if (userLogin!=null) {
userLoginId = (String)userLogin.get(0).get("userLoginId");
password = (String)userLogin.get(0).get("currentPassword");
}
@@ -490,10 +490,10 @@ public class EbayStore {
try {
resp = (GetStoreResponseType)call.execute(req);
- if(resp != null && "SUCCESS".equals(resp.getAck().toString())){
+ if (resp != null && "SUCCESS".equals(resp.getAck().toString())) {
returnedStoreType = resp.getStore();
result.put(ModelService.RESPONSE_MESSAGE, ModelService.RESPOND_SUCCESS);
- result.put(ModelService.SUCCESS_MESSAGE, UtilProperties.getMessage(resource, "EbayStoreLoadSuccess", locale));
+ //result.put(ModelService.SUCCESS_MESSAGE, UtilProperties.getMessage(resource, "EbayStoreLoadSuccess", locale));
// update product store in ofbiz
updateProductStore(dctx, context,returnedStoreType,(String)context.get("productStoreId"));
Map ebayResp = FastMap.newInstance();
@@ -501,7 +501,7 @@ public class EbayStore {
ebayResp.put("storeUrl", returnedStoreType.getURL());
ebayResp.put("storeUrlPath", returnedStoreType.getURLPath());
String desc = returnedStoreType.getDescription();
- if(desc!=null) desc = desc.trim();
+ if (desc!=null) desc = desc.trim();
ebayResp.put("storeDesc", desc);
StoreLogoType logoType = returnedStoreType.getLogo();
@@ -526,13 +526,13 @@ public class EbayStore {
ebayResp.put("storeNameColor",fontType.getNameColor());
ebayResp.put("storeTitleColor",fontType.getTitleColor());
- if(fontType!=null){// basic & advance theme
+ if (fontType!=null) {// basic & advance theme
String themeId = themeType.getThemeID().toString().concat("-").concat(colorSchemeType.getColorSchemeID().toString());
context.put("themeId", themeId);
Map results = retrieveThemeColorSchemeByThemeId(dctx,context);
- if(results!=null){
+ if (results!=null) {
Map storeFontScheme = (Map)results.get("storeFontScheme");
- if(storeFontScheme!=null){
+ if (storeFontScheme!=null) {
ebayResp.put("storeDescFontFace",storeFontScheme.get("storeFontTypeFontDescValue"));
ebayResp.put("storeDescSizeCode", storeFontScheme.get("storeDescSizeValue"));
@@ -548,10 +548,10 @@ public class EbayStore {
StoreHeaderStyleCodeType storeHeaderStyleCodeType = returnedStoreType.getHeaderStyle();
ebayResp.put("storeHeaderStyle", storeHeaderStyleCodeType.value());
StoreHeaderStyleCodeType[] storeHeaderStyleCodeList = storeHeaderStyleCodeType.values();
- if(storeHeaderStyleCodeList != null){
+ if (storeHeaderStyleCodeList != null) {
List