[Frontaccounting-cvs_updates] /hgroot/frontaccounting/frontaccounting: Customer Credit Note: w...
Brought to you by:
frontaccounting,
itronics
From: FrontAccounting <fro...@us...> - 2013-05-16 10:40:46
|
details: http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/frontaccounting/hgroot/frontaccounting/frontaccounting/rev/0f26983f90b8 changeset: 3257:0f26983f90b8 user: Janusz Dobrowolski <ja...@fr...> date: Fri May 10 10:24:58 2013 +0200 description: Customer Credit Note: warning cleanup in write_credit_note(). diffstat: sales/includes/db/sales_credit_db.inc | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diffs (19 lines): diff -r b156cdce9d6a -r 0f26983f90b8 sales/includes/db/sales_credit_db.inc --- a/sales/includes/db/sales_credit_db.inc Thu May 09 10:52:59 2013 +0200 +++ b/sales/includes/db/sales_credit_db.inc Fri May 10 10:24:58 2013 +0200 @@ -17,8 +17,13 @@ { global $Refs; - $credit_invoice = is_array($credit_note->src_docs) ? - reset(array_keys($credit_note->src_docs)) : $credit_note->src_docs; + if (is_array($credit_note->src_docs)) + { + $docs = array_keys($credit_note->src_docs); + $credit_invoice = reset($docs); + } + else + $credit_invoice = $credit_note->src_docs; $credit_date = $credit_note->document_date; $tax_group_id = $credit_note->tax_group_id; |