diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php index 6c5f62adc91..e9dfb99f4fc 100644 --- a/htdocs/product/fiche.php +++ b/htdocs/product/fiche.php @@ -1001,9 +1001,9 @@ else if ($object->isservice()) $nblignes++; else $nblignes+=4; + // Photo if ($isphoto) { - // Photo print ''; print $object->show_photos($conf->product->dir_output,1,1,0,0,0,80); print ''; @@ -1012,13 +1012,13 @@ else print ''; // Accountancy sell code - print ''.$html->editfieldkey("ProductAccountancySellCode",'productaccountancycodesell',$object->accountancy_code_sell,'id',$object->id,$user->rights->produit->creer).''; - print $html->editfieldval("ProductAccountancySellCode",'productaccountancycodesell',$object->accountancy_code_sell,'id',$object->id,$user->rights->produit->creer); + print ''.$html->editfieldkey("ProductAccountancySellCode",'productaccountancycodesell',$object->accountancy_code_sell,'id',$object->id,$user->rights->produit->creer|$user->rights->service->creer).''; + print $html->editfieldval("ProductAccountancySellCode",'productaccountancycodesell',$object->accountancy_code_sell,'id',$object->id,$user->rights->produit->creer|$user->rights->service->creer); print ''; // Accountancy buy code - print ''.$html->editfieldkey("ProductAccountancyBuyCode",'productaccountancycodebuy',$object->accountancy_code_buy,'id',$object->id,$user->rights->produit->creer).''; - print $html->editfieldval("ProductAccountancyBuyCode",'productaccountancycodebuy',$object->accountancy_code_buy,'id',$object->id,$user->rights->produit->creer); + print ''.$html->editfieldkey("ProductAccountancyBuyCode",'productaccountancycodebuy',$object->accountancy_code_buy,'id',$object->id,$user->rights->produit->creer|$user->rights->service->creer).''; + print $html->editfieldval("ProductAccountancyBuyCode",'productaccountancycodebuy',$object->accountancy_code_buy,'id',$object->id,$user->rights->produit->creer|$user->rights->service->creer); print ''; // Status (to sell)