src/Intraface/modules/debtor/Debtor.php 1 location
|
@@ 1051-1057 (lines=7) @@
|
| 1048 |
|
* |
| 1049 |
|
* @return boolean |
| 1050 |
|
*/ |
| 1051 |
|
public function setStated($voucher_id, $voucher_date) |
| 1052 |
|
{ |
| 1053 |
|
// FIXME - check on date |
| 1054 |
|
$db = new DB_Sql; |
| 1055 |
|
$db->query("UPDATE debtor SET date_stated = '" . $voucher_date . "', voucher_id = '".$voucher_id."' WHERE id = " . $this->id . " AND intranet_id = " . $this->kernel->intranet->get('id')); |
| 1056 |
|
return true; |
| 1057 |
|
} |
| 1058 |
|
|
| 1059 |
|
/** |
| 1060 |
|
* Check whether debtor has been stated |
src/Intraface/modules/invoice/Reminder.php 1 location
|
@@ 498-504 (lines=7) @@
|
| 495 |
|
* |
| 496 |
|
* @return boolean |
| 497 |
|
*/ |
| 498 |
|
public function setStated($voucher_id, $voucher_date) |
| 499 |
|
{ |
| 500 |
|
// FIXME - check on date |
| 501 |
|
$db = new DB_Sql; |
| 502 |
|
$db->query("UPDATE invoice_reminder SET date_stated = '" . $voucher_date . "', voucher_id = '".$voucher_id."' WHERE id = " . $this->id . " AND intranet_id = " . $this->kernel->intranet->get('id')); |
| 503 |
|
return true; |
| 504 |
|
} |
| 505 |
|
|
| 506 |
|
/** |
| 507 |
|
* Check whether reminder has been stated |
src/Intraface/modules/webshop/Basket.php 1 location
|
@@ 508-517 (lines=10) @@
|
| 505 |
|
* |
| 506 |
|
* @return boolean |
| 507 |
|
*/ |
| 508 |
|
public function removeEvaluationProducts() |
| 509 |
|
{ |
| 510 |
|
$db = new DB_Sql; |
| 511 |
|
$db->query("DELETE FROM basket " . |
| 512 |
|
"WHERE basketevaluation_product = 1 " . |
| 513 |
|
"AND " . $this->sql_extra . " " . |
| 514 |
|
"AND intranet_id = " . $this->webshop->kernel->intranet->get("id")); |
| 515 |
|
return true; |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
/** |
| 519 |
|
* Resets the basket for a session |
| 520 |
|
* |