mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Gestion de la date
This commit is contained in:
@@ -43,7 +43,7 @@ class Commande {
|
||||
*/
|
||||
Function fetch ($id) {
|
||||
|
||||
$sql = "SELECT orders_id, customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, last_modified, date_purchased, orders_status, orders_date_finished, currency, currency_value";
|
||||
$sql = "SELECT orders_id, customers_id, customers_name, customers_company, customers_street_address, customers_suburb, customers_city, customers_postcode, customers_state, customers_country, customers_telephone, customers_email_address, customers_address_format_id, delivery_name, delivery_company, delivery_street_address, delivery_suburb, delivery_city, delivery_postcode, delivery_state, delivery_country, delivery_address_format_id, billing_name, billing_company, billing_street_address, billing_suburb, billing_city, billing_postcode, billing_state, billing_country, billing_address_format_id, payment_method, cc_type, cc_owner, cc_number, cc_expires, last_modified, ".$this->db->pdate("date_purchased") . " as date_purchased, orders_status, orders_date_finished, currency, currency_value";
|
||||
|
||||
|
||||
$sql .= " FROM ".DB_NAME_OSC.".orders WHERE orders_id = $id";
|
||||
@@ -58,6 +58,7 @@ class Commande {
|
||||
$this->client_id = stripslashes($array["customers_id"]);
|
||||
$this->client_name = stripslashes($array["customers_name"]);
|
||||
|
||||
$this->date = strftime("%d/%m/%Y %H:%M",$array["date_purchased"]);
|
||||
|
||||
$this->delivery_adr->name = stripslashes($array["delivery_name"]);
|
||||
$this->delivery_adr->street = stripslashes($array["delivery_street_address"]);
|
||||
|
||||
Reference in New Issue
Block a user