What's New
ERPNext fix accounting

Reset_mode_of_payments raises AttributeError on a POS Invoice

NA @nabinhait · #56882 · merged 5 Jul 2026

Calling reset_mode_of_payments on a draft POS Invoice raises AttributeError because the method checks `doc.is_created_using_pos`, a field that only exists on Sales Invoice.