From b214fcb5e09867fee36d1455fd97b79e6dafb79a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 19 May 2021 23:29:35 +0200 Subject: [PATCH] complete tooltip product --- htdocs/product/stock/card.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/htdocs/product/stock/card.php b/htdocs/product/stock/card.php index b8698ff7ad3..6a61c60237b 100644 --- a/htdocs/product/stock/card.php +++ b/htdocs/product/stock/card.php @@ -5,6 +5,7 @@ * Copyright (C) 2005-2014 Regis Houssin * Copyright (C) 2016 Francis Appels * Copyright (C) 2021 Noé Cendrier + * Copyright (C) 2021 Frédéric France * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -612,6 +613,14 @@ if ($action == 'create') { } $sql = "SELECT p.rowid as rowid, p.ref, p.label as produit, p.tobatch, p.fk_product_type as type, p.price, p.price_ttc, p.entity,"; + $sql .= "p.tosell, p.tobuy,"; + $sql .= "p.accountancy_code_sell,"; + $sql .= "p.accountancy_code_sell_intra,"; + $sql .= "p.accountancy_code_sell_export,"; + $sql .= "p.accountancy_code_buy,"; + $sql .= "p.accountancy_code_buy_intra,"; + $sql .= "p.accountancy_code_buy_export,"; + $sql .= 'p.barcode,'; if ($separatedPMP) { $sql .= " pa.pmp as ppmp,"; } else { @@ -683,6 +692,15 @@ if ($action == 'create') { $productstatic->entity = $objp->entity; $productstatic->status_batch = $objp->tobatch; $productstatic->fk_unit = $objp->fk_unit; + $productstatic->status = $objp->tosell; + $productstatic->status_buy = $objp->tobuy; + $productstatic->barcode = $objp->barcode; + $productstatic->accountancy_code_sell = $objp->accountancy_code_sell; + $productstatic->accountancy_code_sell_intra = $objp->accountancy_code_sell_intra; + $productstatic->accountancy_code_sell_export = $objp->accountancy_code_sell_export; + $productstatic->accountancy_code_buy = $objp->accountancy_code_buy; + $productstatic->accountancy_code_buy_intra = $objp->accountancy_code_buy_intra; + $productstatic->accountancy_code_buy_export = $objp->accountancy_code_buy_export; print $productstatic->getNomUrl(1, 'stock', 16); print '';