@@ 541-544 (lines=4) @@ | ||
538 | } elseif ($this->debtor->get('type') == "order") { |
|
539 | $status_sql = "debtor.status = 0 OR debtor.status = 1"; // ordre der er oprettet eller sent. |
|
540 | $date_sql = ""; |
|
541 | } elseif ($this->debtor->get('type') == "invoice" && $sent == "") { |
|
542 | $status_sql = "debtor.status = 1 OR debtor.status = 2"; // fakturaer der er sent eller f�rdigbehandlet |
|
543 | $date_sql = "AND debtor.date_sent > \"".$from_date."\""; |
|
544 | } elseif ($this->debtor->get('type') == "invoice" && $sent == "not_sent") { |
|
545 | $status_sql = "debtor.status = 0"; // fakturaer der er oprettet. |
|
546 | $date_sql = ""; |
|
547 | } elseif ($this->debtor->get('type') == "credit_note") { |
|
@@ 547-550 (lines=4) @@ | ||
544 | } elseif ($this->debtor->get('type') == "invoice" && $sent == "not_sent") { |
|
545 | $status_sql = "debtor.status = 0"; // fakturaer der er oprettet. |
|
546 | $date_sql = ""; |
|
547 | } elseif ($this->debtor->get('type') == "credit_note") { |
|
548 | $status_sql = "debtor.status = 2"; // kredit notaer der er f�rdigbehandlet |
|
549 | $date_sql = "AND debtor.date_executed > \"".$from_date."\""; |
|
550 | } else { |
|
551 | throw new Exception("Der er opstået en fejl i Debtor->item->getQuantity()"); |
|
552 | } |
|
553 |