Parcourir la source

saledfacturesbyuser() fixes

szollosil il y a 1 an
Parent
commit
c1de5d2e48

+ 1 - 1
custom/bbus/class/api_bbus.class.php

@@ -1961,7 +1961,7 @@ class BBus extends DolibarrApi
 		pr.default_vat_code, 
 		f.multicurrency_total_ttc AS bundle_ttc, 
 		(SELECT rate FROM llx_multicurrency_rate AS mc WHERE mc.fk_multicurrency = f.fk_multicurrency AND mc.entity = {$user->entity} ORDER BY mc.rowid DESC LIMIT 1) AS rate,
-		(SELECT date_start FROM llx_eventwizard_eventhistory AS evev WHERE evev.fk_facture = f.rowid) AS date_start
+		(SELECT date_start FROM llx_booking_bookinghistory AS bh WHERE bh.fk_facture = f.rowid) AS date_start
 				FROM llx_facture AS f
 				INNER JOIN llx_facture_extrafields AS fe ON fe.fk_object = f.rowid
 				INNER JOIN llx_c_paiement AS pa ON pa.id = f.fk_mode_reglement

+ 38 - 0
custom/rollerstorage/class/api_lunatours.class.php

@@ -0,0 +1,38 @@
+<?php
+use Luracast\Restler\RestException;
+
+/**
+ * API class for Lunatours
+ *
+ * @access protected
+ * @class  DolibarrApiAccess {@requires user,external}
+ */
+class LunaToursApi extends DolibarrApi
+{
+	/**
+	 * Constructor
+	 *
+	 * @url     GET /
+	 *
+	 */
+	public function __construct()
+	{
+		global $db;
+		$this->db = $db;
+	}
+
+
+	/**
+	 * check available dates and 
+	 *
+	 * Return a result.
+	 *
+	 * @return array|mixed Data without useless information
+	 *
+	 * @url POST checkPermission
+	 */
+	public function checkPermission()
+	{
+		
+	}
+}