Does anyone remember addressing these issues in hhfacility?
Dan Dodd
I am new so there is a lot of reading I still need to do, suggestions
welcome.
errors in ../hhfacility/control/receiveproductqty) and in release
9.04
OOTB
I saw a discussion regarding the first error awhile ago but cannot
find
it now.
I don't know if I am looking in the right place , or if I am changing
the right components.
1) In receiveproductqty:
After entering a product ID I get a screen with 2 entry fields
location
and quantity, entered location and quantity:
ERROR: Could not complete the Receive Product to Facility
[file:/opt/ofbiz/specialpurpose/hhfacility/script/org/ofbiz/
hhfacility/F
acilityServices.xml#tc_ReceiveProductQty] process [problem invoking
the
[receiveInventoryProduct] service with the map named [receiveCtx]
containing [[facilityId=WebStoreWarehouse, productId=PIZZA,
quantityAccepted=1.0, locationSeqId=TOPSHELF, comments=hhFacility
Receipt, datetimeReceived=2009-05-23 11:35:40.703,
inventoryItemTypeId=NON_SERIAL_INV_ITEM, quantityRejected=0.0,
userLogin=[GenericEntity:UserLogin][createdStamp,2009-05-18
06:34:02.603(java.sql.Timestamp)][createdTxStamp,2009-05-18
06:34:01.563(java.sql.Timestamp)][currentPassword,
{SHA}47ca69ebb4bdc9ae0
adec130880165d2cc05db1a(java.lang.String)][disabledDateTime,null()]
[enab
led,Y(java.lang.String)][externalAuthId,null()]
[hasLoggedOut,N(java.lang
.String)][isSystem,null()][lastCurrencyUom,null()]
[lastLocale,null()][la
stTimeZone,null()][lastUpdatedStamp,2009-05-23
10:03:12.562(java.sql.Timestamp)][lastUpdatedTxStamp,2009-05-23
10:03:12.561(java.sql.Timestamp)][partyId,admin(java.lang.String)]
[passw
ordHint,null()][requirePasswordChange,null()]
[successiveFailedLogins,nul
l()][userLdapDn,null()][userLoginId,admin(java.lang.String)],
locale=en_US]]: Type check failed for field
[receiveInventoryProduct.quantityAccepted]; expected type is
[java.math.BigDecimal]; actual type is [java.lang.Double]Type check
failed for field [receiveInventoryProduct.quantityRejected]; expected
type is [java.math.BigDecimal]; actual type is [java.lang.Double]]
So, two type check failures. I found one in
specialpurpose/hhfacility/script/org/ofbiz/hhfacility/
FacilityServices.x
ml
I changed Double to BigDecimal
<calculate field="receiveCtx.quantityRejected" type="Double">
<number value="0"/>
</calculate>
that got rid of error in quantity rejected field..
I looked around and found
specialpurpose/hhfacility/servicedef/services_hhfacility.xml "
and In <service name="tc_ReceiveProductQty" engine="simple"
I changed Double to BigDecimal
<attribute name="productQty" type="Double" mode="IN"
optional="false"/>
And that got rid of error in quantity Accepted field..
I'm not certain that this is the correct approach.
2) In updateproductstocktake
I get the error
Error calling event:
org.ofbiz.webapp.event.EventHandlerException:
Service invocation error
(java.math.BigDecimal)
I'm guessing this is a similar problem but I cannot see where to
fix it.
Thanks for taking a look
Dan Dodd