Commit 2517975a authored by Jean-Paul Saman's avatar Jean-Paul Saman

invoice.class.php: $this->_action is not really used anymore.

parent 2897cfdb
......@@ -89,7 +89,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function delete($unused = null) {
$this->clearErrors();
$this->_action='deleted';
$q = $this->_getQuery();
$q->setDelete('invoice_task_queue');
$q->addWhere('task_queue_id = ' . $this->_task_queue_id);
......@@ -103,7 +102,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function purge()
{
$this->clearErrors();
$this->_action='purged';
$q = $this->_getQuery();
$q->addQuery('invoice_status');
$q->addTable('invoice');
......@@ -146,7 +144,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function change_status($stat)
{
$this->clearErrors();
$this->_action='updated';
$q = $this->_getQuery();
$q->addTable('invoice');
$q->addUpdate('invoice_status', $stat);
......@@ -161,7 +158,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function change_invoice_tag($tag)
{
$this->clearErrors();
$this->_action='updated';
$q = $this->_getQuery();
$q->addTable('invoice');
$q->addUpdate('invoice_tag', $tag);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment