From: Sven Schöling Date: Thu, 27 Jul 2017 15:15:02 +0000 (+0200) Subject: ShippedQty: Explizite Doku zu Fehlbedienung bei nicht geladenen Relationships X-Git-Tag: release-3.5.4~931 X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/commitdiff_plain/e8dce44b2cd1d753714980ea0d920fd5ea337705 ShippedQty: Explizite Doku zu Fehlbedienung bei nicht geladenen Relationships --- diff --git a/SL/Helper/ShippedQty.pm b/SL/Helper/ShippedQty.pm index a50cebcdc..644116729 100644 --- a/SL/Helper/ShippedQty.pm +++ b/SL/Helper/ShippedQty.pm @@ -485,6 +485,13 @@ was found it will be set to zero. C is guaranteed only to be the correct boolean value, but not any specific value. +Note: C will avoid loading unnecessary objects. This means if it is +called with an Order object that has not loaded its orderitems yet, only +C will be set in the Order object. A subsequent C<< +$order->orderitems->[0]->{delivered} >> will return C, and C<< +$order->orderitems->[0]->shipped_qty >> will invoke another implicit +calculation. + =item C Valid after L. Returns a hasref with shipped qtys by orderitems id.