From: Janusz Dobrowolski Date: Sun, 6 Apr 2008 09:15:12 +0000 (+0000) Subject: Sales invoice edit restriction on records imported from FA 1.xx X-Git-Tag: v2.4.2~19^2~2113 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=4e9e38f3f2eb3e645e04da23e10647fa61eac2e6;p=fa-stable.git Sales invoice edit restriction on records imported from FA 1.xx --- diff --git a/CHANGELOG.txt b/CHANGELOG.txt index d8e59a4d..a91753e4 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -19,6 +19,10 @@ Legend: ! -> Note $ -> Affected files +06-Apr-200 Janusz Dobrowolski +# Sales invoice edition denied for documents created in FA 1.xx because of nonportable differences in gl posting/db schema. + /sales/customer_invoice.php + 05-Apr-2008 Joe Hunt # Fixed a bug when creating subfolder for new companies. Should be company id and not the table pref counter. $ /admin/create_coy.php diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index ded481fa..4b40b81d 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -114,6 +114,12 @@ if ( (isset($_GET['DeliveryNumber']) && ($_GET['DeliveryNumber'] > 0) ) } elseif (isset($_GET['ModifyInvoice']) && $_GET['ModifyInvoice'] > 0) { + if ( get_parent_trans(10, $_GET['ModifyInvoice']) == 0) { // 1.xx compatibility hack + echo"

" . _("There in 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.") . "
"; + display_footer_exit(); + } processing_start(); $_SESSION['Items'] = new Cart(10, $_GET['ModifyInvoice']);