Fix: Can edit accountancy code

This commit is contained in:
Laurent Destailleur 2011-11-09 11:51:58 +01:00
parent cdacf73743
commit 90b43e2dfb

View File

@ -1001,9 +1001,9 @@ else
if ($object->isservice()) $nblignes++; if ($object->isservice()) $nblignes++;
else $nblignes+=4; else $nblignes+=4;
// Photo
if ($isphoto) if ($isphoto)
{ {
// Photo
print '<td valign="middle" align="center" width="25%" rowspan="'.$nblignes.'">'; print '<td valign="middle" align="center" width="25%" rowspan="'.$nblignes.'">';
print $object->show_photos($conf->product->dir_output,1,1,0,0,0,80); print $object->show_photos($conf->product->dir_output,1,1,0,0,0,80);
print '</td>'; print '</td>';
@ -1012,13 +1012,13 @@ else
print '</tr>'; print '</tr>';
// Accountancy sell code // Accountancy sell code
print '<tr><td>'.$html->editfieldkey("ProductAccountancySellCode",'productaccountancycodesell',$object->accountancy_code_sell,'id',$object->id,$user->rights->produit->creer).'</td><td colspan="2">'; print '<tr><td>'.$html->editfieldkey("ProductAccountancySellCode",'productaccountancycodesell',$object->accountancy_code_sell,'id',$object->id,$user->rights->produit->creer|$user->rights->service->creer).'</td><td colspan="2">';
print $html->editfieldval("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|$user->rights->service->creer);
print '</td></tr>'; print '</td></tr>';
// Accountancy buy code // Accountancy buy code
print '<tr><td>'.$html->editfieldkey("ProductAccountancyBuyCode",'productaccountancycodebuy',$object->accountancy_code_buy,'id',$object->id,$user->rights->produit->creer).'</td><td colspan="2">'; print '<tr><td>'.$html->editfieldkey("ProductAccountancyBuyCode",'productaccountancycodebuy',$object->accountancy_code_buy,'id',$object->id,$user->rights->produit->creer|$user->rights->service->creer).'</td><td colspan="2">';
print $html->editfieldval("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|$user->rights->service->creer);
print '</td></tr>'; print '</td></tr>';
// Status (to sell) // Status (to sell)