fix: preserve transversal regression contracts and lock budget during confirmation
tests / ci (push) Canceled after 0s
tests / ci (push) Canceled after 0s
This commit is contained in:
@@ -26,7 +26,10 @@ import { closureFixture } from './fixtures/simulator-closure-fixture.mjs';
|
||||
void test('S1 saved USD stays USD in report and cannot be reused as MZN for IVA', () => {
|
||||
const inputs = {
|
||||
...defaultCashflowDraftInputs(),
|
||||
monthlyRevenue: '123',
|
||||
monthlyOperatingCosts: '0', monthlyDebtService: '0',
|
||||
vatCreditEstimated: '0', vatRefundRequested: '0',
|
||||
vatRefundRecognized: '0', vatRefundExpectedReceipt: '0',
|
||||
monthlyRevenue: '123', openingCash: '0',
|
||||
monthlyTaxAssessed: '0',
|
||||
};
|
||||
const snapshot = serializeCashflowDraftSnapshot('fixed', inputs, 'USD');
|
||||
@@ -67,7 +70,10 @@ void test('S1 saved USD stays USD in report and cannot be reused as MZN for IVA'
|
||||
assert.equal(restoredProject.cashflow_snapshot, snapshot);
|
||||
});
|
||||
void test('S1 legacy amounts remain readable but require explicit origin currency before reuse', () => {
|
||||
const inputs = { ...defaultCashflowDraftInputs(), monthlyRevenue: '123' };
|
||||
const inputs = { ...defaultCashflowDraftInputs(),
|
||||
monthlyOperatingCosts: '0', monthlyDebtService: '0',
|
||||
vatCreditEstimated: '0', vatRefundRequested: '0',
|
||||
vatRefundRecognized: '0', vatRefundExpectedReceipt: '0', monthlyRevenue: '123' };
|
||||
const legacy = serializeCashflowDraftSnapshot('fixed', inputs);
|
||||
const saved = restoreCashflowDraftSnapshot(legacy);
|
||||
assert.equal(saved.version, 1);
|
||||
|
||||
Reference in New Issue
Block a user