Files
SGF/scripts/receipt-native-extra.php
T
2026-11-04 09:37:20 +02:00

6 lines
495 B
PHP

<?php
use Illuminate\Support\Facades\DB;
$out=$s['root'].'/native-extra-fixture.json';if(file_exists($out))throw new LogicException('Extra fixture already preserved');
require $s['native'].'/tests/Support/ReceiptFixture.php';$f=receiptFixture('2.000');
file_put_contents($out,json_encode(['tenant'=>$f['tenant']->id,'receiver'=>$f['receiver']->id,'order'=>$f['order']->id,'line'=>$f['line']->id,'warehouse'=>$f['warehouse']->id,'stock'=>$f['stock']->id],JSON_PRETTY_PRINT|JSON_THROW_ON_ERROR));