saveTransactionBillingData is now called
MODIFY
src/async-task/tasks/BillTransactionAsyncTask.ts
src/async-task/tasks/BillTransactionAsyncTask.ts
@@ -42,7 +42,7 @@ export default class BillTransactionAsyncTask extends AbstractAsyncTask {
transaction.billingData.stop = billingDataStop;
transaction.billingData.lastUpdate = new Date();
// Save
- await TransactionStorage.saveTransaction(tenant.id, transaction);
+ await TransactionStorage.saveTransactionBillingData(tenant.id, Number(transaction.id), transaction.billingData);
} finally {
// Release the lock
await LockingManager.release(transactionLock);

MODIFY
src/integration/billing/BillingIntegration.ts
src/integration/billing/BillingIntegration.ts
@@ -464,7 +464,7 @@ export default abstract class BillingIntegration {
stop
};
// Save to clear billing data
- await TransactionStorage.saveTransaction(this.tenant.id, transaction);
+ await TransactionStorage.saveTransactionBillingData(this.tenant.id, Number(transaction.id), transaction.billingData);
} catch (error) {
await Logging.logError({
tenantID: this.tenant.id,

MODIFY
src/integration/billing/stripe/StripeBillingIntegration.ts
src/integration/billing/stripe/StripeBillingIntegration.ts
@@ -461,7 +461,7 @@ export default class StripeBillingIntegration extends BillingIntegration {
transaction.billingData.stop.invoiceNumber = billingInvoice.number;
transaction.billingData.lastUpdate = new Date();
// Save
- await TransactionStorage.saveTransaction(this.tenant.id, transaction);
+ await TransactionStorage.saveTransactionBillingData(this.tenant.id, Number(transactionID), transaction.billingData);
} catch (error) {
// Catch stripe errors and send the information back to the client
await Logging.logError({

saveTransactionBillingData is now called