X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=purchasing%2Fincludes%2Fdb%2Finvoice_db.inc;h=ec22b1cb2cdde221fff4f02df3c73ad3e5559fb3;hb=2e7b5edc07f954d93f9aa1570a12458394aa6234;hp=33ec2b57205f662e7f599d4a9337fbf8c860c0f1;hpb=ff3e736c3b61a9b2178202e0f014c5bbcc95d777;p=fa-stable.git diff --git a/purchasing/includes/db/invoice_db.inc b/purchasing/includes/db/invoice_db.inc index 33ec2b57..ec22b1cb 100644 --- a/purchasing/includes/db/invoice_db.inc +++ b/purchasing/includes/db/invoice_db.inc @@ -362,7 +362,7 @@ function void_supp_invoice($type, $type_no) $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"],