Commit c6a23e5ff516818bfeffd7db0959117de9086d19

Authored by Darkjeff
1 parent 274ba035
Exists in 3.5 and in 1 other branch 3.6

Sales Ventilation ok

Ventilation des lignes de facture client automatique si le code produit
est renseigné dans la fiche produit, sinon ventilation manuelle
Showing 1 changed file with 6 additions and 6 deletions   Show diff stats
accountingex/customer/liste.php
... ... @@ -207,17 +207,17 @@ if ($result) {
207 207  
208 208 if (! empty($objp->type)) {
209 209 if ($objp->type == 1) {
210   - $objp->code_sell = (! empty($conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT) ? $conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
  210 + $objp->code_sell2 = (! empty($conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT) ? $conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
211 211 } else {
212   - $objp->code_sell = (! empty($conf->global->COMPTA_SERVICE_SOLD_ACCOUNT) ? $conf->global->COMPTA_SERVICE_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
  212 + $objp->code_sell2 = (! empty($conf->global->COMPTA_SERVICE_SOLD_ACCOUNT) ? $conf->global->COMPTA_SERVICE_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
213 213 }
214 214 } else {
215 215 $code_sell_notset = 'color:blue';
216 216  
217 217 if ($objp->type == 1) {
218   - $objp->code_sell = (! empty($conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT) ? $conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
  218 + $objp->code_sell2 = (! empty($conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT) ? $conf->global->COMPTA_PRODUCT_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
219 219 } else {
220   - $objp->code_sell = (! empty($conf->global->COMPTA_SERVICE_SOLD_ACCOUNT) ? $conf->global->COMPTA_SERVICE_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
  220 + $objp->code_sell2 = (! empty($conf->global->COMPTA_SERVICE_SOLD_ACCOUNT) ? $conf->global->COMPTA_SERVICE_SOLD_ACCOUNT : $langs->trans("CodeNotDef"));
221 221 }
222 222 }
223 223 }
... ... @@ -248,7 +248,7 @@ if ($result) {
248 248 print '</td>';
249 249  
250 250 print '<td align="center" style="' . $code_sell_notset . '">';
251   - print $objp->code_sell;
  251 + print $objp->code_sell2;
252 252 print '</td>';
253 253  
254 254 // Colonne choix du compte
... ... @@ -259,7 +259,7 @@ if ($result) {
259 259  
260 260 // Colonne choix ligne a ventiler
261 261 print '<td align="center">';
262   - print '<input type="checkbox" name="mesCasesCochees[]" value="' . $objp->rowid . "_" . $i . '"' . ($objp->aarowid ? "checked" : "") . '/>';
  262 + print '<input type="checkbox" name="mesCasesCochees[]" value="' . $objp->rowid . "_" . $i . '"' . ($objp->code_sell ? "checked" : "") . '/>';
263 263 print '</td>';
264 264  
265 265 print '</tr>';
... ...