API: ref_client (Kunden-Bestellnr.) in Auftragsliste hinzugefügt
All checks were successful
Deploy bericht / deploy (push) Successful in 5s
All checks were successful
Deploy bericht / deploy (push) Successful in 5s
[deploy] Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d9c973513c
commit
062e5c1b50
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,7 @@ if (!$id) {
|
|||
$where .= " AND (c.ref LIKE '%$q%' OR s.nom LIKE '%$q%')";
|
||||
}
|
||||
|
||||
$sql = "SELECT c.rowid, c.ref, c.date_commande, c.fk_statut, c.total_ttc,"
|
||||
$sql = "SELECT c.rowid, c.ref, c.ref_client, c.date_commande, c.fk_statut, c.total_ttc,"
|
||||
." s.rowid AS soc_id, s.nom AS soc_name, s.zip, s.town, s.address,"
|
||||
." (SELECT COUNT(*) FROM ".$db->prefix()."bericht b WHERE b.element_type='order' AND b.fk_element=c.rowid) AS bericht_count"
|
||||
." FROM ".$db->prefix()."commande c"
|
||||
|
|
@ -57,6 +57,7 @@ if (!$id) {
|
|||
$orders[] = array(
|
||||
'id' => (int) $o->rowid,
|
||||
'ref' => $o->ref,
|
||||
'ref_client' => $o->ref_client,
|
||||
'date' => $db->jdate($o->date_commande),
|
||||
'status'=> (int) $o->fk_statut,
|
||||
'total' => (float) $o->total_ttc,
|
||||
|
|
|
|||
Loading…
Reference in a new issue