change verta function and uuid generation mechanism
This commit is contained in:
@@ -436,11 +436,10 @@ class ContractsController extends Controller
|
||||
$contract->save();
|
||||
// document end
|
||||
|
||||
|
||||
// for updating sub contract contract date
|
||||
foreach ($contract->subitems as $key => $value) {
|
||||
$tmp = explode('-', $request->contract_date);
|
||||
$tmp = Verta::getGregorian($tmp[0], $tmp[1], $tmp[2]);
|
||||
$tmp = Verta::jalaliToGregorian($tmp[0], $tmp[1], $tmp[2]);
|
||||
$value->contract_date_from_parent_contract = $tmp[0].'-'.$tmp[1].'-'.$tmp[2];
|
||||
$value->save();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user