API Can't list any bills

Hello,

I can’t list any bills throught API when a single bill have bill_quota or bill_cdr equal 0

To reproduce, you can create a bill like that :

{
  "bill_name": "test",
  "bill_type": "quota",
  "bill_day": 1,
  "bill_quota": 0,
  "bill_custid": "",
  "bill_ref": "",
  "bill_notes": "",
}

or

{
  "bill_name": "test",
  "bill_type": "cdr",
  "bill_day": 1,
  "bill_cdr": 0,
  "bill_custid": "",
  "bill_ref": "",
  "bill_notes": "",
}

And call the api list_bills /api/v0/bills. The API will return a empty body response with a 200 HTTP CODE

Can you look at this ?

Thanks for your time,

Regards


./validate.php 
====================================
Component | Version
--------- | -------
LibreNMS  | 1.50-41-gd069d0fd4
DB Schema | 2019_02_10_220000_add_dates_to_fdb (132)
PHP       | 7.3.3-1+0~20190307202245.32+stretch~1.gbp32ebb2
MySQL     | 10.1.37-MariaDB-0+deb9u1
RRDTool   | 1.6.0
SNMP      | NET-SNMP 5.7.3
====================================

[OK]    Composer Version: 1.8.5
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database schema correct
[FAIL]  We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
        [FIX]: 
        sudo chown -R librenms:librenms /opt/librenms
        sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
        sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
        Files:
         /opt/librenms/.git/index
         /opt/librenms/.git/ORIG_HEAD
         /opt/librenms/scripts/github-remove

Originaly reported in this GitHub issue : https://github.com/librenms/librenms/issues/10110