X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdb%2Fvoiding_db.inc;h=17d7a8daceb58b2ca57210f50b0abf76574ecc26;hb=67ec1888ea14a50f6df62e0599e50d209e7b0c6c;hp=62165c1fbf2206d48a1bb7c10dfb22291f40a80e;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/admin/db/voiding_db.inc b/admin/db/voiding_db.inc index 62165c1f..17d7a8da 100644 --- a/admin/db/voiding_db.inc +++ b/admin/db/voiding_db.inc @@ -45,7 +45,7 @@ function void_transaction($type, $type_no, $date_, $memo_) return false; if ($type == ST_CUSTDELIVERY) // added 04 Oct 2008 by Joe Hunt. If delivery note has a not voided invoice, then NO. { - $childs = get_sales_child_trans($type_no, $type); + $childs = get_sales_child_lines($type, $type_no, false); // 2011-03-17 This had been changed. Joe if ($childs && db_num_rows($childs)) return false; }