Files
citrus-cms/resources/views/cron/weld_logs-sync-weldlog-nde-project.blade.php
T
2026-04-28 21:15:09 +03:00

17 lines
492 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
$ndeMatrices = DB::table('nde_matrices')
->join('weld_logs', 'nde_matrices.line', '=', 'weld_logs.line_number')
->whereNull('nde_matrices.project'); // project sütunu boş olanları bul
if(isset($id))
{
$ndeMatrices = $ndeMatrices->where("weld_logs.id", $id);
}
$ndeMatrices = $ndeMatrices
->update([
'nde_matrices.project' => DB::raw('weld_logs.project') // weld_logs tablosundaki project değeri ile güncelle
]);
//dump("$ndeMatrices NDE Matrix Sync Project Name");
?>