chane to import
This commit is contained in:
parent
0598261cdc
commit
afaefa8a9d
|
|
@ -1346,7 +1346,12 @@ private function upsertAccount(Import $import, array $mapped, $mappings): array
|
|||
$applyInsert[$field] = $value;
|
||||
}
|
||||
if (in_array($mode, ['update', 'both'])) {
|
||||
$applyUpdate[$field] = $value;
|
||||
// Do not allow updating initial_amount when mapping is update-only
|
||||
if ($field === 'initial_amount' && $mode === 'update') {
|
||||
// skip: initial_amount can change only on insert, or when mapping mode is 'both'
|
||||
} else {
|
||||
$applyUpdate[$field] = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user