amount received to zero on invoice
Issue / Bug / Question / New Feature
Hello Friends, on /application/views/sales/registe.php I suggest that in the condition:
if(!$pos_mode && isset($customer)) { ?> <div class='btn btn-sm btn-success' id='finish_invoice_quote_button'><span class="glyphicon glyphicon-ok"> </span><?php echo $mode_label; ?></div> <?php } ?>
add
$amount_due <= 0
like this:
if(!$pos_mode && isset($customer) && $amount_due <= 0) { ?> <div class='btn btn-sm btn-success' id='finish_invoice_quote_button'><span class="glyphicon glyphicon-ok"> </span><?php echo $mode_label; ?></div> <?php } ?>
Because without adding that other condition, the enabling of the payment button invoice only depends on the selected client and if someone changes the amount received to zero, and click on the invoice button the payment invoice will also be zero.