chane to import
This commit is contained in:
parent
0598261cdc
commit
afaefa8a9d
|
|
@ -1346,9 +1346,14 @@ private function upsertAccount(Import $import, array $mapped, $mappings): array
|
||||||
$applyInsert[$field] = $value;
|
$applyInsert[$field] = $value;
|
||||||
}
|
}
|
||||||
if (in_array($mode, ['update', 'both'])) {
|
if (in_array($mode, ['update', 'both'])) {
|
||||||
|
// 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;
|
$applyUpdate[$field] = $value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($existing) {
|
if ($existing) {
|
||||||
// Build non-null changes for account fields
|
// Build non-null changes for account fields
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user