2
0
forked from Wavyzz/dolibarr

Correction syntax

This commit is contained in:
Kamel Khelifa
2024-03-19 14:31:15 +01:00
parent 07c84df3dc
commit 426e18ea33

View File

@@ -4406,7 +4406,7 @@ class OrderLine extends CommonOrderLine
$sqlCheckShipmentLine = "SELECT";
$sqlCheckShipmentLine .= " ed.rowid";
$sqlCheckShipmentLine .= " FROM " . MAIN_DB_PREFIX . "expeditiondet ed";
$sqlCheckShipmentLine .= " WHERE ed.fk_origin_line = " . ((int)$this->id);
$sqlCheckShipmentLine .= " WHERE ed.fk_origin_line = " . ((int) $this->id);
$resqlCheckShipmentLine = $this->db->query($sqlCheckShipmentLine);
if (!$resqlCheckShipmentLine) {
@@ -4441,7 +4441,7 @@ class OrderLine extends CommonOrderLine
}
if (!$error) {
$sql = 'DELETE FROM ' . MAIN_DB_PREFIX . "commandedet WHERE rowid = " . ((int)$this->id);
$sql = 'DELETE FROM ' . MAIN_DB_PREFIX . "commandedet WHERE rowid = " . ((int) $this->id);
dol_syslog("OrderLine::delete", LOG_DEBUG);
$resql = $this->db->query($sql);