commit compras1 2911
tests / ci (push) Waiting to run

This commit is contained in:
2026-11-29 05:28:30 +02:00
parent 1ddabbbdcc
commit 448948a487
137 changed files with 9481 additions and 1926 deletions
@@ -350,7 +350,8 @@ test('native office purchase reconciles declared accounts through receipt invoic
$this->actingAs($buyer)->postJson('/adjudicacoes/'.$award->id.'/emitir')->assertRedirect();
$this->postJson('/adjudicacoes/'.$award->id.'/emitir')->assertRedirect();
$order = PurchaseOrder::query()->where('purchase_award_id', $award->id)->sole();
expect($order->total_minor)->toBe(10000)->and($order->snapshot['account_assignments'][$line->id]['data']['allocations'][0]['account']['id'])->toBe($account['id']);
expect($order->total_minor)->toBe(10000)->and($order->snapshot['budget_checked'])->toBeTrue()
->and($order->snapshot['account_assignments'][$line->id]['data']['allocations'][0]['account']['id'])->toBe($account['id']);
$receiver = $this->f['receiver'];
$this->actingAs($receiver);
$stock = StockItem::query()->create(['tenant_id' => $tenant, 'created_by' => $receiver->id, 'code' => 'OFFICE-FLOW-QA',