Minor bug fixes for payment update, internal product link and order billing interval
This commit is contained in:
@@ -114,12 +114,13 @@ class AdminController extends Controller
|
||||
]);
|
||||
|
||||
if (! $o->exists) {
|
||||
$o->forceFill($request->only(['account_id','paid_at','checkout_id','checkout_id','total_amt','fees_amt','source_id','pending','notes','ip']));
|
||||
$o->site_id = config('site')->site_id;
|
||||
$o->active = TRUE;
|
||||
$o->save();
|
||||
}
|
||||
|
||||
$o->forceFill($request->only(['account_id','paid_at','checkout_id','total_amt','fees_amt','source_id','pending','notes','ip']));
|
||||
$o->save();
|
||||
|
||||
foreach ($validation['invoices'] as $id => $amount) {
|
||||
// See if we already have a payment item that we need to update
|
||||
$items = $o->items->filter(function($item) use ($id) { return $item->invoice_id == $id; });
|
||||
|
Reference in New Issue
Block a user