mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Billing module fix/cleanup (#14309)
* Delete autoadd definitions Never actually used. Inherited from Observium. * Allow Billing API to set dir_95th (for agg bills) Currently we're unable to set dir_95th via API to configure Aggregate bills. This should fix that.
This commit is contained in:
@@ -1833,6 +1833,7 @@ function create_edit_bill(Illuminate\Http\Request $request)
|
||||
'bill_custid' => $bill['bill_custid'],
|
||||
'bill_ref' => $bill['bill_ref'],
|
||||
'bill_notes' => $bill['bill_notes'],
|
||||
'dir_95th' => $bill['dir_95th'],
|
||||
];
|
||||
$update = dbUpdate($update_data, 'bills', 'bill_id=?', [$bill_id]);
|
||||
if ($update === false || $update < 0) {
|
||||
@@ -1853,6 +1854,7 @@ function create_edit_bill(Illuminate\Http\Request $request)
|
||||
'bill_custid',
|
||||
'bill_ref',
|
||||
'bill_notes',
|
||||
'dir_95th',
|
||||
];
|
||||
|
||||
if ($data['bill_type'] == 'quota') {
|
||||
@@ -1891,6 +1893,7 @@ function create_edit_bill(Illuminate\Http\Request $request)
|
||||
'bill_custid' => $bill['bill_custid'],
|
||||
'bill_ref' => $bill['bill_ref'],
|
||||
'bill_notes' => $bill['bill_notes'],
|
||||
'dir_95th' => $bill['dir_95th'],
|
||||
],
|
||||
'bills'
|
||||
);
|
||||
|
||||
@@ -813,18 +813,6 @@
|
||||
"default": 1000,
|
||||
"type": "integer"
|
||||
},
|
||||
"billing.bill_autoadd": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"billing.circuit_autoadd": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"billing.customer_autoadd": {
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
},
|
||||
"callback_clear": {
|
||||
"default": "https://stats.librenms.org/clear.php",
|
||||
"type": "text"
|
||||
|
||||
Reference in New Issue
Block a user