From 24db4d0b0fa48ed9602d9f54becb7c36b6ab4290 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 9 Nov 2011 11:52:43 +0100 Subject: [PATCH] Fix: Can edit accountancy code --- htdocs/product/fiche.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 04ac8c87052..7b04f2cd9f7 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1056,13 +1056,13 @@ if ($id || $ref) print ''; // Accountancy sell code - print ''.$html->editfieldkey("ProductAccountancySellCode",'productaccountancycodesell',$product->accountancy_code_sell,'id',$product->id,$user->rights->produit->creer).''; - print $html->editfieldval("ProductAccountancySellCode",'productaccountancycodesell',$product->accountancy_code_sell,'id',$product->id,$user->rights->produit->creer); + print ''.$html->editfieldkey("ProductAccountancySellCode",'productaccountancycodesell',$product->accountancy_code_sell,'id',$product->id,$user->rights->produit->creer|$user->rights->service->creer).''; + print $html->editfieldval("ProductAccountancySellCode",'productaccountancycodesell',$product->accountancy_code_sell,'id',$product->id,$user->rights->produit->creer|$user->rights->service->creer); print ''; // Accountancy buy code - print ''.$html->editfieldkey("ProductAccountancyBuyCode",'productaccountancycodebuy',$product->accountancy_code_buy,'id',$product->id,$user->rights->produit->creer).''; - print $html->editfieldval("ProductAccountancyBuyCode",'productaccountancycodebuy',$product->accountancy_code_buy,'id',$product->id,$user->rights->produit->creer); + print ''.$html->editfieldkey("ProductAccountancyBuyCode",'productaccountancycodebuy',$product->accountancy_code_buy,'id',$product->id,$user->rights->produit->creer|$user->rights->service->creer).''; + print $html->editfieldval("ProductAccountancyBuyCode",'productaccountancycodebuy',$product->accountancy_code_buy,'id',$product->id,$user->rights->produit->creer|$user->rights->service->creer); print ''; // Status (to sell)