mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Enabled creating recurring invoices through the API
This commit is contained in:
parent
8ab28ced1a
commit
175c685032
@ -197,15 +197,6 @@ class InvoiceApiController extends BaseAPIController
|
||||
}
|
||||
}
|
||||
|
||||
// hardcode some fields
|
||||
$fields = [
|
||||
'is_recurring' => false
|
||||
];
|
||||
|
||||
foreach ($fields as $key => $val) {
|
||||
$data[$key] = $val;
|
||||
}
|
||||
|
||||
// initialize the line items
|
||||
if (isset($data['product_key']) || isset($data['cost']) || isset($data['notes']) || isset($data['qty'])) {
|
||||
$data['invoice_items'] = [self::prepareItem($data)];
|
||||
|
Loading…
Reference in New Issue
Block a user