From 77dc27de91e10c789f3bb412e7d1c7569a045251 Mon Sep 17 00:00:00 2001 From: lvessiller Date: Mon, 22 Nov 2021 17:33:40 +0100 Subject: [PATCH] NEW can select sub-total lines in supplier order and invoice --- class/actions_subtotal.class.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/class/actions_subtotal.class.php b/class/actions_subtotal.class.php index 5b4cdeb2..0494785b 100644 --- a/class/actions_subtotal.class.php +++ b/class/actions_subtotal.class.php @@ -2835,7 +2835,11 @@ function printOriginObjectLine($parameters, &$object, &$action, $hookmanager) $contexts = explode(':',$parameters['context']); - if (in_array('ordercard',$contexts) || in_array('invoicecard',$contexts)) + if (in_array('ordercard',$contexts) + || in_array('invoicecard',$contexts) + || in_array('ordersuppliercard',$contexts) + || in_array('invoicesuppliercard',$contexts) + ) { /** @var Commande $object */