Enabled creating recurring invoices through the API
This commit is contained in:
parent
8ab28ced1a
commit
175c685032
1 changed files with 0 additions and 9 deletions
|
|
@ -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…
Add table
Reference in a new issue