commit de compras
This commit is contained in:
@@ -225,6 +225,11 @@ final class ServiceReceivables
|
||||
return ['blocked'=>false,'notice'=>self::NOTICE,'simulation'=>self::SIMULATION,'records'=>$records->map(function($r){$r->data=$this->data($r);return $r;})->all(),'obligations'=>$records->where('kind','obligation')->map(fn($r)=>$this->state($r->id))->values()->all(),'documents'=>\App\Shared\Context\ModuleRecords::query('si_invoices')->where($s)->get(['id','series_code','number'])->all()];
|
||||
});
|
||||
}
|
||||
/** Scoped single-position read reuses the authoritative state calculation without writer locks. */
|
||||
public function position(int $obligation,int $actor):array
|
||||
{
|
||||
self::guard();$scope=$this->scope($actor,'view');$this->row($obligation,$scope,'obligation');return $this->state($obligation);
|
||||
}
|
||||
/** Idempotent internal delivery only: validates ledger, never posts accounts or calls banks. */
|
||||
public function deliver(int $event): bool
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user