Customer Payment, Supplier Payment: early discount support.
[fa-stable.git] / purchasing / allocations / supplier_allocation_main.php
index 9d1cb8d9b238236d4ab99e340c5c9ec432b3c924..09610785bdfaf264e6ed33bf261e0b19e90609f1 100644 (file)
@@ -88,6 +88,12 @@ function check_settled($row)
 }
 
 
+$all_settled = !db_num_rows(get_allocatable_to_supp_transactions(get_post('supplier_id')));
+if ($all_settled)
+       display_note('<b>'.
+               ($supplier_id ? _("There is no unsettled transactions for this supplier.")
+                       :_("There is no unsettled transactions.")).'</b><p>');
+
 $sql = get_allocatable_from_supp_sql($supplier_id, $settled);
 
 $cols = array(