Field::kansio()

Version 3.7

Return pages

As default, when asked a method that join -field does not have, join -field will create pages -object and call pages->method()

If field and pages have same method names, you can get pages before calling the method.

use getPages()

Return value

Object Pages

Full documentation

Calculate order total amount:

$totalAmount = $Order->order_lines->kansio()->calculate('amount*price');