|
@@ -1138,7 +1138,9 @@ discard block |
|
|
block discarded – undo |
|
1138
|
1138
|
$sql .= ", fk_unit"; |
|
1139
|
1139
|
$sql .= ", mandatory_period"; |
|
1140
|
1140
|
$sql .= ", stockable_product"; |
|
1141
|
|
- if (!empty($this->default_vat_code)) $sql.=", default_vat_code"; |
|
|
1141
|
+ if (!empty($this->default_vat_code)) { |
|
|
1142
|
+ $sql.=", default_vat_code"; |
|
|
1143
|
+ } |
|
1142
|
1144
|
$sql .= ") VALUES ("; |
|
1143
|
1145
|
$sql .= "'".$this->db->idate($this->date_creation)."'"; |
|
1144
|
1146
|
$sql .= ", ".(!empty($this->entity) ? (int) $this->entity : (int) $conf->entity); |
|
@@ -1171,7 +1173,9 @@ discard block |
|
|
block discarded – undo |
|
1171
|
1173
|
$sql .= ", ".($this->fk_unit > 0 ? ((int) $this->fk_unit) : 'NULL'); |
|
1172
|
1174
|
$sql .= ", '".$this->db->escape((string) $this->mandatory_period)."'"; |
|
1173
|
1175
|
$sql .= ", ".((int) $this->stockable_product); |
|
1174
|
|
- if (!empty($this->default_vat_code)) $sql.=", '".$this->db->escape($this->default_vat_code)."'"; |
|
|
1176
|
+ if (!empty($this->default_vat_code)) { |
|
|
1177
|
+ $sql.=", '".$this->db->escape($this->default_vat_code)."'"; |
|
|
1178
|
+ } |
|
1175
|
1179
|
$sql .= ")"; |
|
1176
|
1180
|
dol_syslog(get_class($this)."::Create", LOG_DEBUG); |
|
1177
|
1181
|
|
Please login to merge, or discard this patch.