mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
NEW Add Unit price on supplier order stat product (#31055)
* Add Unit price on supplier order stat product * Update commande_fournisseur.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
ef39801dc7
commit
70d87496e8
|
|
@ -4,6 +4,7 @@
|
|||
* Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2014 Florian Henry <florian.henry@open-concept.pro>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 Charlene Benke <charlene@patas-monkey.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -148,8 +149,8 @@ if ($id > 0 || !empty($ref)) {
|
|||
if ($user->hasRight('fournisseur', 'commande', 'lire')) {
|
||||
$sql = "SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_client,";
|
||||
$sql .= " c.rowid, d.total_ht as total_ht, c.ref,";
|
||||
$sql .= " c.date_commande, c.fk_statut as statut, c.rowid as commandeid, d.rowid, d.qty,";
|
||||
$sql .= " c.date_livraison as delivery_date";
|
||||
$sql .= " c.date_livraison as delivery_date,";
|
||||
$sql .= " c.date_commande, c.fk_statut as statut, c.rowid as commandeid, d.rowid, d.qty, d.subprice as unitprice";
|
||||
if (!$user->hasRight('societe', 'client', 'voir')) {
|
||||
$sql .= ", sc.fk_soc, sc.fk_user ";
|
||||
}
|
||||
|
|
@ -255,7 +256,8 @@ if ($id > 0 || !empty($ref)) {
|
|||
print_liste_field_titre("OrderDate", $_SERVER["PHP_SELF"], "c.date_commande", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre('DateDeliveryPlanned', $_SERVER['PHP_SELF'], 'c.date_livraison', '', $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Qty", $_SERVER["PHP_SELF"], "d.qty", "", $option, 'align="center"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "c.total_ht", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("UnitPrice", $_SERVER["PHP_SELF"], "d.unitprice", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("AmountHT", $_SERVER["PHP_SELF"], "d.total_ht", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print_liste_field_titre("Status", $_SERVER["PHP_SELF"], "c.fk_statut", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
print "</tr>\n";
|
||||
|
||||
|
|
@ -284,6 +286,7 @@ if ($id > 0 || !empty($ref)) {
|
|||
print dol_print_date($db->jdate($objp->delivery_date), 'dayhour');
|
||||
print '</td>';
|
||||
print '<td class="center">'.$objp->qty."</td>\n";
|
||||
print '<td align="right">'.price($objp->unitprice)."</td>\n";
|
||||
print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
print '<td align="right">'.$supplierorderstatic->getLibStatut(4).'</td>';
|
||||
print "</tr>\n";
|
||||
|
|
@ -300,6 +303,7 @@ if ($id > 0 || !empty($ref)) {
|
|||
// delivery planned date
|
||||
print '<td></td>';
|
||||
print '<td class="center">'.$total_qty.'</td>';
|
||||
print '<td></td>';
|
||||
print '<td align="right">'.price($total_ht).'</td>';
|
||||
print '<td></td>';
|
||||
print "</table>";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user