[OFBiz] Dev - ATP error on orderview page when viewing cancelled orders/items

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[OFBiz] Dev - ATP error on orderview page when viewing cancelled orders/items

Ray Barlow
Si,

This error is occurring after canceling some items on an order and
trying to view the order, I think it is related to the inventory levels
listing as indicated by the atp reference in the error:

1609054 (http-0.0.0.0-8443-Processor3) [ Log4JLoggerFactory.java:96 :ERROR]
Expression availableToPromiseMap.get(productId) is undefined on line 91,
column 35 in orderitems.ftl.
The problematic instruction:
----------
==> ${availableToPromiseMap.get(productId)} [on line 91, column 33 in
orderitems.ftl]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression
availableToPromiseMap.get(productId) is undefined on line 91, column 35
in orderitems.ftl.
        at
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
        at freemarker.core.Expression.getStringValue(Expression.java:118)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:196)

Probably just needs an "if_exists", although it might be nice to remove
the whole div tag depending on the order item status i.e. don't show for
canceled or completed line items.

Ray

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev