So... I got fed up waiting for a save to be posted and just downloaded @Grim8P 's save from the start of Governing Yhilin II.
And you appear to be correct, the code is bugged in the extract of whatever the last version I downloaded is. (Probably 1.0.0). The cost items for Chapter 4 and NOT Chapter 4 appear to have been accidentally reversed by the meth-addled maniac who thought it would be a terrific idea to generate the code for the ledger script using bulk RegEx replaces. (That is, me.)
BUT..., the code is corrected in the latest version of the ledger script I got from Sierra when we were fixing the last bug. That correction just hasn't made its way into a new release yet. It's possible that this issue was previously reported by someone else and I don't remember having previously addressed it owing to incurable syphilitic imbecility.
I'll ping a note to Sierra to make sure it's correct in her latest working version.