Merge pull request #2199 from Lupul/patch-2

fixes #2197 Cannot insert new Bill
This commit is contained in:
Neil Lathwood
2015-10-26 14:45:57 +00:00
2 changed files with 13 additions and 0 deletions

View File

@ -63,5 +63,6 @@ Contributors to LibreNMS:
- Falk Stern <falk@fourecks.de> (fstern)
- Donovan Bridoux <donovan.bridoux@gmail.com> (PandaWawawa)
- Sebastian Neuner <sebastian@sneuner.org> (9er)
- Robert Zollner <wolfit_ro@yahoo.com> (Lupul)
[1]: http://observium.org/ "Observium web site"

View File

@ -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');