Compare commits
No commits in common. "711438d79f36e20fbba7af1994d600f128aeb99b" and "6871fe879691afe1fd279b1703eda2c5b231f863" have entirely different histories.
711438d79f
...
6871fe8796
|
|
@ -1656,10 +1656,6 @@ private function upsertAccount(Import $import, array $mapped, $mappings, bool $h
|
|||
if (in_array($field, ['balance_amount', 'initial_amount'], true) && is_string($value)) {
|
||||
$value = $this->normalizeDecimal($value);
|
||||
}
|
||||
// Convert empty string to 0 for amount fields
|
||||
if (in_array($field, ['balance_amount', 'initial_amount'], true) && ($value === '' || $value === null)) {
|
||||
$value = 0;
|
||||
}
|
||||
$mode = $map->apply_mode ?? 'both';
|
||||
if ($mode === 'keyref') {
|
||||
// treat as insert-only field (lookup + create), never update
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user