Browse Source

import: fix import of FEE record with unitPrice=0

pull/4187/head
Ivan Kruglov 8 months ago
parent
commit
ae4cb67878
  1. 3
      apps/api/src/app/import/import.service.ts

3
apps/api/src/app/import/import.service.ts

@ -328,7 +328,8 @@ export class ImportService {
date
);
if (!unitPrice) {
// unitPrice can be 0 if it's a fee record
if (unitPrice === undefined) {
throw new Error(
`activities.${index} historical exchange rate at ${format(
date,

Loading…
Cancel
Save