| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: storminvoice.install,v 1.1 2008/06/11 12:55:05 robertogerola Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 28 |
'duedate' => array('type' => 'int'), |
'duedate' => array('type' => 'int'), |
| 29 |
'paymentdate' => array('type' => 'int'), |
'paymentdate' => array('type' => 'int'), |
| 30 |
'amount' => array('type' => 'float'), |
'amount' => array('type' => 'float'), |
| 31 |
'vat' => array('type' => 'float'), |
'tax' => array('type' => 'float'), |
| 32 |
'total' => array('type' => 'float'), |
'total' => array('type' => 'float'), |
| 33 |
'totalcustomercurr' => array('type' => 'float'), |
'totalcustomercurr' => array('type' => 'float'), |
| 34 |
'vatexempt' => array('type' => 'int', 'length' => 1), |
'taxexempt' => array('type' => 'int', 'length' => 1), |
| 35 |
), |
), |
| 36 |
'primary key' => array('vid', 'nid'), |
'primary key' => array('vid', 'nid'), |
| 37 |
); |
); |
| 39 |
return $schema; |
return $schema; |
| 40 |
} |
} |
| 41 |
|
|
| 42 |
|
function storminvoice_update_1() { |
| 43 |
|
$ret = array(); |
| 44 |
|
db_change_field($ret, 'storminvoice', 'vat', 'tax', array('type' => 'float')); |
| 45 |
|
db_change_field($ret, 'storminvoice', 'vatexempt', 'taxexempt', array('type' => 'int', 'length' => 1)); |
| 46 |
|
return $ret; |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
|