Topic: Credit note can be posted without customer selected
If Search Customer List is checked in company setup, than customer credit note can be posted with blank customers in FA's previous builds. I have added following lines in /sales/credit_note_entry.php under can_process() function to fix this
if (!get_post('customer_id'))
{
display_error(_("There is no customer selected."));
set_focus('customer_id');
return false;
}
if (!get_post('branch_id'))
{
display_error(_("This customer has no branch defined."));
set_focus('branch_id');
return false;
}
Thanks