mirror of
https://github.com/Karaka-Management/oms-Billing.git
synced 2026-01-26 14:28:42 +00:00
continue impl
This commit is contained in:
parent
9ce00c912a
commit
102424dc4d
|
|
@ -562,6 +562,12 @@ final class ApiBillController extends Controller
|
|||
$element = $this->createBillElementFromRequest($request, $response, $old, $data);
|
||||
$this->createModel($request->header->account, $element, BillElementMapper::class, 'bill_element', $request->getOrigin());
|
||||
|
||||
// @todo: handle stock transaction here
|
||||
// @todo: if transaction fails don't update below and send warning to user
|
||||
// @todo: however mark transaction as reserved and only update when bill is finalized!!!
|
||||
|
||||
// @todo: in BillElementUpdate do the same
|
||||
|
||||
$new = clone $old;
|
||||
$new->addElement($element);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user