NEW date delivery planned on orders linked to product
This commit is contained in:
parent
878ead5d4a
commit
da1259c2ce
@ -140,6 +140,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$sql = "SELECT DISTINCT s.nom as name, s.rowid as socid, s.code_client, c.rowid, d.total_ht as total_ht, c.ref,";
|
||||
$sql .= " c.ref_client,";
|
||||
$sql .= " c.date_commande, c.fk_statut as statut, c.facture, c.rowid as commandeid, d.rowid, d.qty";
|
||||
$sql .= ", c.date_livraison";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= ", sc.fk_soc, sc.fk_user ";
|
||||
}
|
||||
@ -184,6 +185,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
if ($result) {
|
||||
$num = $db->num_rows($result);
|
||||
|
||||
$option = '';
|
||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||
$option .= '&limit='.urlencode($limit);
|
||||
}
|
||||
@ -232,6 +234,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print_liste_field_titre("Company", $_SERVER["PHP_SELF"], "s.nom", "", $option, '', $sortfield, $sortorder);
|
||||
print_liste_field_titre("CustomerCode", $_SERVER["PHP_SELF"], "s.code_client", "", $option, '', $sortfield, $sortorder);
|
||||
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("Status", $_SERVER["PHP_SELF"], "c.fk_statut", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
@ -257,6 +260,10 @@ if ($id > 0 || !empty($ref)) {
|
||||
print "<td>".$objp->code_client."</td>\n";
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->date_commande), 'dayhour')."</td>";
|
||||
// delivery planned date
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->date_livraison), 'dayhour');
|
||||
print '</td>';
|
||||
print '<td class="center">'.$objp->qty."</td>\n";
|
||||
print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
print '<td align="right">'.$orderstatic->LibStatut($objp->statut, $objp->facture, 5).'</td>';
|
||||
@ -271,6 +278,8 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td class="left">'.$langs->trans("Totalforthispage").'</td>';
|
||||
}
|
||||
print '<td colspan="3"></td>';
|
||||
// delivery planned date
|
||||
print '<td></td>';
|
||||
print '<td class="center">'.$total_qty.'</td>';
|
||||
print '<td align="right">'.price($total_ht).'</td>';
|
||||
print '<td></td>';
|
||||
|
||||
@ -140,6 +140,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
$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";
|
||||
if (empty($user->rights->societe->client->voir) && !$socid) {
|
||||
$sql .= ", sc.fk_soc, sc.fk_user ";
|
||||
}
|
||||
@ -184,6 +185,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
if ($result) {
|
||||
$num = $db->num_rows($result);
|
||||
|
||||
$option = '';
|
||||
if ($limit > 0 && $limit != $conf->liste_limit) {
|
||||
$option .= '&limit='.urlencode($limit);
|
||||
}
|
||||
@ -232,6 +234,7 @@ if ($id > 0 || !empty($ref)) {
|
||||
print_liste_field_titre("Company", $_SERVER["PHP_SELF"], "s.nom", "", $option, '', $sortfield, $sortorder);
|
||||
print_liste_field_titre("SupplierCode", $_SERVER["PHP_SELF"], "s.code_client", "", $option, '', $sortfield, $sortorder);
|
||||
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("Status", $_SERVER["PHP_SELF"], "c.fk_statut", "", $option, 'align="right"', $sortfield, $sortorder);
|
||||
@ -257,6 +260,10 @@ if ($id > 0 || !empty($ref)) {
|
||||
print "<td>".$objp->code_client."</td>\n";
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->date_commande), 'dayhour')."</td>";
|
||||
// delivery planned date
|
||||
print '<td class="center">';
|
||||
print dol_print_date($db->jdate($objp->date_livraison), 'dayhour');
|
||||
print '</td>';
|
||||
print '<td class="center">'.$objp->qty."</td>\n";
|
||||
print '<td align="right">'.price($objp->total_ht)."</td>\n";
|
||||
print '<td align="right">'.$supplierorderstatic->getLibStatut(4).'</td>';
|
||||
@ -271,6 +278,8 @@ if ($id > 0 || !empty($ref)) {
|
||||
print '<td class="left">'.$langs->trans("Totalforthispage").'</td>';
|
||||
}
|
||||
print '<td colspan="3"></td>';
|
||||
// delivery planned date
|
||||
print '<td></td>';
|
||||
print '<td class="center">'.$total_qty.'</td>';
|
||||
print '<td align="right">'.price($total_ht).'</td>';
|
||||
print '<td></td>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user