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 { ...@@ -89,7 +89,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function delete($unused = null) { public function delete($unused = null) {
$this->clearErrors(); $this->clearErrors();
$this->_action='deleted';
$q = $this->_getQuery(); $q = $this->_getQuery();
$q->setDelete('invoice_task_queue'); $q->setDelete('invoice_task_queue');
$q->addWhere('task_queue_id = ' . $this->_task_queue_id); $q->addWhere('task_queue_id = ' . $this->_task_queue_id);
...@@ -103,7 +102,6 @@ class CInvoice extends w2p_Core_BaseObject { ...@@ -103,7 +102,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function purge() public function purge()
{ {
$this->clearErrors(); $this->clearErrors();
$this->_action='purged';
$q = $this->_getQuery(); $q = $this->_getQuery();
$q->addQuery('invoice_status'); $q->addQuery('invoice_status');
$q->addTable('invoice'); $q->addTable('invoice');
...@@ -146,7 +144,6 @@ class CInvoice extends w2p_Core_BaseObject { ...@@ -146,7 +144,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function change_status($stat) public function change_status($stat)
{ {
$this->clearErrors(); $this->clearErrors();
$this->_action='updated';
$q = $this->_getQuery(); $q = $this->_getQuery();
$q->addTable('invoice'); $q->addTable('invoice');
$q->addUpdate('invoice_status', $stat); $q->addUpdate('invoice_status', $stat);
...@@ -161,7 +158,6 @@ class CInvoice extends w2p_Core_BaseObject { ...@@ -161,7 +158,6 @@ class CInvoice extends w2p_Core_BaseObject {
public function change_invoice_tag($tag) public function change_invoice_tag($tag)
{ {
$this->clearErrors(); $this->clearErrors();
$this->_action='updated';
$q = $this->_getQuery(); $q = $this->_getQuery();
$q->addTable('invoice'); $q->addTable('invoice');
$q->addUpdate('invoice_tag', $tag); $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