Link customer payment entry after saving Invoice (if not cash)
[fa-stable.git] / sales / sales_order_entry.php
index a9fb1bf1d03024ea96c128a391d24692662f2a6c..9b7e46b4dc57adf2eaff3d70aa0f635390119800 100644 (file)
@@ -231,6 +231,9 @@ if (isset($_GET['AddedID'])) {
                submenu_option(_("Enter a &New Direct Invoice"),
                        "/sales/sales_order_entry.php?NewInvoice=0");
 
+       if ($row === false)
+               submenu_option(_("Entry &customer payment for this invoice"), "/sales/customer_payments.php?SInvoice=".$invoice);
+
        submenu_option(_("Add an Attachment"), "/admin/attachments.php?filterType=".ST_SALESINVOICE."&trans_no=$invoice");
 
        display_footer_exit();