• DevPilot's avatar
    fix(accounting): voucher save crashed when payment method is not a cheque · b4200e99
    DevPilot authored
    The cheque fields stay in the voucher form for every payment method, so
    check_date posts as '' when paying cash or by transfer. That went
    straight into a DATE column and MySQL rejected the row with
    "Incorrect date value: ''", so no non-cheque voucher could be saved at
    all. Send NULL instead; VoucherService already accepted null.
    
    Found by driving the voucher screen end-to-end while building the
    step-by-step accounting tutorial.
    b4200e99
VoucherController.php 14.3 KB