Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d99e672e3 |
@@ -22,16 +22,18 @@ class eBookingLine extends Entity{
|
|||||||
private function checkCreateParentDefault(array &$list, int $parentId) : void {
|
private function checkCreateParentDefault(array &$list, int $parentId) : void {
|
||||||
if ($parentId == 0) return;
|
if ($parentId == 0) return;
|
||||||
if (!array_key_exists($parentId, $list)){
|
if (!array_key_exists($parentId, $list)){
|
||||||
|
$accounts = model('App\Models\mAccounts'); /* @var \App\Models\mAccounts $accounts */
|
||||||
log_message('debug',"Parent not exists: $parentId in List: ".json_encode(array_keys($list)));
|
log_message('debug',"Parent not exists: $parentId in List: ".json_encode(array_keys($list)));
|
||||||
$list[$parentId] = $this->accounts->getDropDownEntry($parentId);
|
$list[$parentId] = $accounts->getDropDownEntry($parentId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private function checkCreateSubDefault(array &$list, int $accountId) : void {
|
private function checkCreateSubDefault(array &$list, int $accountId) : void {
|
||||||
if (!array_key_exists($accountId, $list)){
|
if (!array_key_exists($accountId, $list)){
|
||||||
if ($accountId > 0)
|
if ($accountId > 0){
|
||||||
$list[$accountId] = $this->accounts->getDropDownEntry($accountId);
|
$accounts = model('App\Models\mAccounts'); /* @var \App\Models\mAccounts $accounts */
|
||||||
else
|
$list[$accountId] = $accounts->getDropDownEntry($accountId);
|
||||||
|
} else
|
||||||
$list[0] = '-----';
|
$list[0] = '-----';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class mBills extends Model {
|
|||||||
|
|
||||||
public function checkOrCreateTable(){
|
public function checkOrCreateTable(){
|
||||||
log_message('debug',"Check or Create Bill Table");
|
log_message('debug',"Check or Create Bill Table");
|
||||||
if ($this->db->tableExists('finanzen.'.$this->table)) return;
|
if ($this->db->tableExists($this->table)) return;
|
||||||
log_message('debug','Create Bills Table '.$this->db->lastQuery);
|
log_message('debug','Create Bills Table '.$this->db->lastQuery);
|
||||||
log_message('debug',"Create Bills Table ".$this->table);
|
log_message('debug',"Create Bills Table ".$this->table);
|
||||||
$accounts = model('App\Models\mAccounts'); /* @var \App\Models\mAccounts $accounts */
|
$accounts = model('App\Models\mAccounts'); /* @var \App\Models\mAccounts $accounts */
|
||||||
|
|||||||
Reference in New Issue
Block a user