mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes #2197 Cannot insert new Bill
since all those fields are defined as "NOT NULL" they must be set before inserting into mysql.
This commit is contained in:
@@ -52,6 +52,18 @@ if ($_POST['addbill'] == 'yes') {
|
||||
'bill_custid' => $_POST['bill_custid'],
|
||||
'bill_ref' => $_POST['bill_ref'],
|
||||
'bill_notes' => $_POST['bill_notes'],
|
||||
'rate_95th_in' => 0,
|
||||
'rate_95th_out' => 0,
|
||||
'rate_95th' => 0,
|
||||
'dir_95th' => 'in',
|
||||
'total_data' => 0,
|
||||
'total_data_in' => 0,
|
||||
'total_data_out' => 0,
|
||||
'rate_average' => 0,
|
||||
'rate_average_in' => 0,
|
||||
'rate_average_out' => 0,
|
||||
'bill_last_calc' => array('NOW()'),
|
||||
'bill_autoadded' => 0,
|
||||
);
|
||||
|
||||
$bill_id = dbInsert($insert, 'bills');
|
||||
|
Reference in New Issue
Block a user