Skip to content

Printout does not create entries for non-Cash donations with Excellent, Good, Fair or Poor in the "IRS Donation Type Classification" field only 'non' #17

@hexagonfounder

Description

@hexagonfounder

I modified function isNonCash to the following and it now supports all

function isNonCash(r) {
const val = String(r[idx['IRS Donation Type Classification']] || '').toLowerCase();
const keywords = ['non', 'poor', 'fair', 'good', 'excellent'];

return keywords.some(word => val.includes(word));
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions