src/Intraface/modules/invoice/CreditNote.php 1 location
|
@@ 47-50 (lines=4) @@
|
| 44 |
|
return false; |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
if (!in_array($check_products, array('check_products', 'skip_check_products'))) { |
| 48 |
|
throw new Exception('Second paramenter in creditnote->readyForState should be either "check_products" or "skip_check_products"'); |
| 49 |
|
return false; |
| 50 |
|
} |
| 51 |
|
|
| 52 |
|
if (!$year->readyForState($this->get('this_date'))) { |
| 53 |
|
$this->error->set('Regnskab�ret er ikke klar til bogf�ring'); |
src/Intraface/modules/invoice/Invoice.php 1 location
|
@@ 93-96 (lines=4) @@
|
| 90 |
|
throw new Exception('First parameter to readyForState needs to be a Year object!'); |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
if (!in_array($check_products, array('check_products', 'skip_check_products'))) { |
| 94 |
|
throw new Exception('Second paramenter in Invice->readyForState should be either "check_products" or "skip_check_products"'); |
| 95 |
|
return false; |
| 96 |
|
} |
| 97 |
|
|
| 98 |
|
if (!$year->readyForState($this->get('this_date'))) { |
| 99 |
|
$this->error->set('Regnskabsåret er ikke klar til bogføring'); |