opensourcepos icon indicating copy to clipboard operation
opensourcepos copied to clipboard

amount received to zero on invoice

Open blutme opened this issue 3 years ago • 0 comments

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">&nbsp</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">&nbsp</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.

blutme avatar Sep 20 '22 17:09 blutme