! -> Note
$ -> Affected files
+29-Oct-2008 Joe Hunt
+# Voiding a supplier invoice/credit note with GL Postings creates a database error
+$ /purchasing/includes/db/invoice_db.inc
+
28-Oct-2008 Joe Hunt
# [000009] Delivery Note/Sales Invoice should not be editable after it has been voided.
$ /admin/db/voiding_db.inc
$date_ = Today();
while ($details_row = db_fetch($result))
{
- if (strlen($details_row["grn_item_id"]) > 0) // it can be empty for GL items
+ if ((int)$details_row["grn_item_id"] > 0) // it can be empty for GL items
{
// Changed 2008-10-17 by Joe Hunt to get the avg. material cost updated
$old = update_supp_received_items_for_invoice($details_row["grn_item_id"],