// lib/accounting/core/immutable-policy.ts

import { PostingStatus } from './posting-status-types';

export function assertImmutable(document: { status: PostingStatus }) {
  if (document.status === 'posted') {
    throw new Error('Posted document is immutable');
  }
}
