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:
electrocret
2022-09-06 11:49:15 -05:00
committed by GitHub
parent 9fdc213f25
commit e458f95bd8
2 changed files with 3 additions and 12 deletions
+3
View File
@@ -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'
);
-12
View File
@@ -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"