X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;h=152ca1e58e76c630397a78bdbae963d827f32400;hb=6f354d9b19615a82d948e0f6e5ef003cd1859c31;hp=bd7ee681da3a7897fecc597d80b5e8eb82ff73e5;hpb=21ba0553185531c12f16efef9010033d5dd62cdc;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index bd7ee681..152ca1e5 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -75,7 +75,7 @@ if (isset($_GET['AddedID'])) { echo '
'; display_note(print_document_link($invoice_no, _("&Print This Invoice"), true, ST_SALESINVOICE)); - hyperlink_no_params($path_to_root . "/sales/inquiry/customer_inquiry.php", _("Select A Different &Invoice to Modify")); + hyperlink_no_params($path_to_root . "/sales/inquiry/customer_inquiry.php", _("Select Another &Invoice to Modify")); display_footer_exit(); @@ -128,7 +128,7 @@ if ( (isset($_GET['DeliveryNumber']) && ($_GET['DeliveryNumber'] > 0) ) } elseif (isset($_GET['ModifyInvoice']) && $_GET['ModifyInvoice'] > 0) { - if ( get_parent_trans(ST_SALESINVOICE, $_GET['ModifyInvoice']) == 0) { // 1.xx compatibility hack + if ( get_sales_parent_numbers(ST_SALESINVOICE, $_GET['ModifyInvoice']) == 0) { // 1.xx compatibility hack echo"

" . _("There are no delivery notes for this invoice.
Most likely this invoice was created in Front Accounting version prior to 2.0 and therefore can not be modified.") . "
"; @@ -226,8 +226,10 @@ function copy_to_cart() $cart->freight_cost = input_num('ChargeFreightCost'); $cart->document_date = $_POST['InvoiceDate']; $cart->due_date = $_POST['due_date']; - $cart->payment = $_POST['payment']; - $cart->payment_terms = get_payment_terms($_POST['payment']); + if ($cart->pos != -1) { + $cart->payment = $_POST['payment']; + $cart->payment_terms = get_payment_terms($_POST['payment']); + } $cart->Comments = $_POST['Comments']; if ($_SESSION['Items']->trans_no == 0) $cart->reference = $_POST['ref'];