• 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
Name
Last commit
Last update
..
Controllers Loading commit data...
Models Loading commit data...
Services Loading commit data...
Views Loading commit data...
AccountCodes.php Loading commit data...
JournalServiceAdapter.php Loading commit data...
Routes.php Loading commit data...
bootstrap.php Loading commit data...