src/stringifyA4.js
import stringifyDate from './stringifyDate.js';
import stringifyTime from './stringifyTime.js';
import stringifyStatus from './stringifyStatus.js';
export default function stringifyA4(record, options) {
const {reference, requestor, datetime, status} = record;
const date = stringifyDate(datetime, options);
const time = stringifyTime(datetime, options);
const statusString = stringifyStatus(status, options);
const parts = ['A4', reference, requestor, date, time, statusString];
if (options.trailing.A4) parts.push('');
return parts;
}