diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 60d706ed3e0..ea2d2704a9f 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -261,28 +261,28 @@ if ($_socid > 0) print ''.$langs->transcountry('ProfId3',$objsoc->pays_code).''.$objsoc->ape.' '; - // Statut juridique - print ''.$langs->trans('JuridicalStatus').''.$objsoc->forme_juridique.''; - // Type + Staff $arr = $objsoc->typent_array($objsoc->typent_id); $objsoc->typent= $arr[$objsoc->typent_id]; print ''.$langs->trans("Type").''.$objsoc->typent.''.$langs->trans("Staff").''.$objsoc->effectif.''; + // Remise permanente print ''; print '
'; print $langs->trans("CustomerRelativeDiscount"); print ''; - print ''.img_edit($langs->trans("Modify")).''; + print ''.img_edit($langs->trans("Modify")).''; print '
'; print ''.$objsoc->remise_client." %"; - - print ''; + print ''; - print ''; print ''; print ''; + print "
'; + // Remise avoirs + print '
'; + print ''; + print '
'; print $langs->trans("CustomerAbsoluteDiscount"); print ''; - print ''.img_edit($langs->trans("Modify")).''; + print ''.img_edit($langs->trans("Modify")).''; print '
'; print '
'; @@ -300,6 +300,7 @@ if ($_socid > 0) print '
"; print "\n"; @@ -385,7 +386,7 @@ if ($_socid > 0) if ($num >0 ) { print ''; - print '
'.$langs->trans("LastOrders",($num<=$MAXLIST?"":$MAXLIST)).''.$langs->trans("AllOrders").' ('.$num.')
'; + print '
'.$langs->trans("LastOrders",($num<=$MAXLIST?"":$MAXLIST)).''.$langs->trans("AllOrders").' ('.$num.')
'; print ''; } $i = 0; @@ -751,7 +752,7 @@ if ($_socid > 0) print ' '; } - print ''.$obj->code.''; + print ''.$obj->code.''; print "\n"; $i++; } diff --git a/htdocs/comm/remx.php b/htdocs/comm/remx.php index 8d35c6975dd..5a3113885ca 100644 --- a/htdocs/comm/remx.php +++ b/htdocs/comm/remx.php @@ -161,15 +161,15 @@ if ($_socid > 0) if ($obj->fk_user == $user->id) $remise_user+=$obj->amount_ht; } - print ''.$langs->trans("CustomerAbsoluteDiscountAllUsers").''; + print ''.$langs->trans("CustomerAbsoluteDiscountAllUsers").''; print ''.$remise_all.' '.$langs->trans("Currency".$conf->monnaie).''; - print ''.$langs->trans("CustomerAbsoluteDiscountMy").''; + print ''.$langs->trans("CustomerAbsoluteDiscountMy").''; print ''.$remise_user.' '.$langs->trans("Currency".$conf->monnaie).''; print ''.$langs->trans("NewValue").''; print ' '.$langs->trans("Currency".$conf->monnaie).''; - print ' '; + print ' '; print ""; @@ -181,7 +181,7 @@ if ($_socid > 0) /* * Liste */ - $sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc, u.code"; + $sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc, u.code, u.rowid as user_id"; $sql .= " FROM ".MAIN_DB_PREFIX."societe_remise_except as rc"; $sql .= " , ".MAIN_DB_PREFIX."user as u"; $sql .= " WHERE rc.fk_soc =". $objsoc->id; @@ -194,7 +194,7 @@ if ($_socid > 0) print_titre($langs->trans("Ristournes restant dues")); print ''; print ''; - print ''; + print ''; $var = true; $i = 0 ; @@ -205,8 +205,9 @@ if ($_socid > 0) $var = !$var; print ""; print ''; - print ''; - print ''; + print ''; + print ''; + print ''; $i++; } @@ -221,16 +222,17 @@ if ($_socid > 0) print '
'; /* - * Liste Archives + * Liste ristournes appliquées */ - $sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc, u.code, rc.fk_facture, f.facnumber"; - $sql .= " FROM ".MAIN_DB_PREFIX."societe_remise_except as rc"; - $sql .= " , ".MAIN_DB_PREFIX."user as u"; - $sql .= " , ".MAIN_DB_PREFIX."facture as f"; - $sql .= " WHERE rc.fk_soc =". $objsoc->id; - $sql .= " AND fk_facture = f.rowid"; - $sql .= " AND u.rowid = rc.fk_user AND fk_facture IS NOT NULL"; - $sql .= " ORDER BY rc.datec DESC"; + $sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc, u.code, u.rowid as user_id,"; + $sql.= " rc.fk_facture, f.facnumber"; + $sql.= " FROM ".MAIN_DB_PREFIX."societe_remise_except as rc"; + $sql.= " , ".MAIN_DB_PREFIX."user as u"; + $sql.= " , ".MAIN_DB_PREFIX."facture as f"; + $sql.= " WHERE rc.fk_soc =". $objsoc->id; + $sql.= " AND fk_facture = f.rowid"; + $sql.= " AND u.rowid = rc.fk_user AND fk_facture IS NOT NULL"; + $sql.= " ORDER BY rc.datec DESC"; $resql=$db->query($sql); if ($resql) @@ -238,7 +240,7 @@ if ($_socid > 0) print_titre($langs->trans("Ristournes appliquées")); print '
'.$langs->trans("Date").''.$langs->trans("AmountHT").''.$langs->trans("Accordée par").'
'.$langs->trans("AmountTTC").' '.$langs->trans("Accordée par").'
'.dolibarr_print_date($obj->dc).''.price($obj->amount_ht).''.$obj->code.'
'.price($obj->amount_ht).' '.img_object($langs->trans("ShowUser"),'user').' '.$obj->code.'
'; print ''; - print ''; + print ''; $var = true; $i = 0 ; @@ -249,7 +251,7 @@ if ($_socid > 0) $var = !$var; print ""; print ''; - print ''; + print ''; print ''; print ''; diff --git a/htdocs/compta/fiche.php b/htdocs/compta/fiche.php index e06a6807e10..54cf68f6c7e 100644 --- a/htdocs/compta/fiche.php +++ b/htdocs/compta/fiche.php @@ -235,20 +235,49 @@ if ($socid > 0) print '"; // TVA - print ''; print ''; - // Statut juridique - print ''; - // Type + Staff $arr = $societe->typent_array($societe->typent_id); $societe->typent= $arr[$societe->typent_id]; print ''; + // Remise permanente + print '"; + print ''; + + // Remise avoirs + print ''; + print ''; print ''; print "
'.$langs->trans("Date").''.$langs->trans("AmountHT").''.$langs->trans("Bill").''.$langs->trans("Author").'
'.$langs->trans("AmountTTC").''.$langs->trans("Bill").''.$langs->trans("Author").'
'.dolibarr_print_date($obj->dc).''.price($obj->amount_ht).''.price($obj->amount_ht).''.img_object($langs->trans("ShowBill"),'bill').' '.$obj->facnumber.''.$obj->code.'
'.$langs->trans("Web")."url\">$societe->url 
'.$langs->trans('VATIntraShort').''; + print '
'.$langs->trans('VATIntraVeryShort').''; print $societe->tva_intra; print '
'.$langs->trans('Capital').''.$societe->capital.' '.$langs->trans("Currency".$conf->monnaie).'
'.$langs->trans('JuridicalStatus').''.$societe->forme_juridique.'
'.$langs->trans("Type").''.$societe->typent.''.$langs->trans("Staff").''.$societe->effectif.'
'; + print '
'; + print $langs->trans("CustomerRelativeDiscount"); + print ''; + print ''.img_edit($langs->trans("Modify")).''; + print '
'; + print '
'.$societe->remise_client." %
'; + print ''; + print '
'; + print $langs->trans("CustomerAbsoluteDiscount"); + print ''; + print ''.img_edit($langs->trans("Modify")).''; + print '
'; + print '
'; + $sql = "SELECT rc.amount_ht,".$db->pdate("rc.datec")." as dc"; + $sql .= " FROM ".MAIN_DB_PREFIX."societe_remise_except as rc"; + $sql .= " WHERE rc.fk_soc =". $societe->id; + $sql .= " AND rc.fk_user = ".$user->id." AND fk_facture IS NULL"; + $resql=$db->query($sql); + if ($resql) + { + $obj = $db->fetch_object($resql); + if ($obj->amount_ht) print $obj->amount_ht.' '.$langs->trans("Currency".$conf->monnaie); + else print $langs->trans("None"); + } + print '
"; diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang index 6f5d2122270..5c797bc4476 100644 --- a/htdocs/langs/en_US/companies.lang +++ b/htdocs/langs/en_US/companies.lang @@ -51,6 +51,7 @@ ProfId3PT=Commercial Record number ProfId4PT=Conservatory TVAIntra=Intracommunautary VAT VATIntraShort=Intra-communautary VAT code +VATIntraVeryShort=VAT Intra-comm. ProspectCustomer=Prospect / Customer Prospect=Prospect CustomerCard=Customer Card diff --git a/htdocs/langs/fr_FR/companies.lang b/htdocs/langs/fr_FR/companies.lang index 9e33c0ea1b9..8ce4c0c228b 100644 --- a/htdocs/langs/fr_FR/companies.lang +++ b/htdocs/langs/fr_FR/companies.lang @@ -51,15 +51,16 @@ ProfId3PT=Num ProfId4PT=Conservatory TVAIntra=Numéro de TVA Intracommunautaire VATIntraShort=N° TVA Intra-communautaire +VATIntraVeryShort=TVA Intra-comm. ProspectCustomer=Prospect / Client Prospect=Prospect CustomerCard=Fiche Client Customer=Client CustomerDiscount=Remise client CustomerRelativeDiscount=Remise relative -CustomerAbsoluteDiscount=Remise absolue -CustomerAbsoluteDiscountAllUsers=Remise absolue (tout utilisateur) -CustomerAbsoluteDiscountMy=Remise absolue (personnel) +CustomerAbsoluteDiscount=Remise avoirs +CustomerAbsoluteDiscountAllUsers=Remise avoirs (accordée par tout utilisateur) +CustomerAbsoluteDiscountMy=Remise avoirs (accordé personnellement) Supplier=Fournisseur CompanyList=Liste des sociétés AddContact=Ajouter contact