X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freporting.inc;h=4ce4d148d3a37f31b309795a31d2999f9d772c1e;hb=883307779f9ca5bac0533702a8702b0cccb4742f;hp=12cffc11e558cba7e6841b55e94f9d91dac973a8;hpb=28e7dac267b65d8163ca41c452c42706d0ffb2dd;p=fa-stable.git diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 12cffc11..4ce4d148 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -15,7 +15,7 @@ // You only need full parameter list for invoices/credit notes function print_document_link($doc_no, $link_text, $link=true, $type_no, - $icon=false, $class='printlink', $id='', $email=0) + $icon=false, $class='printlink', $id='', $email=0, $extra=0) { global $path_to_root; include_once($path_to_root . "/includes/types.inc"); @@ -51,7 +51,8 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, $ar = array( 'PARAM_0' => $doc_no, 'PARAM_1' => $doc_no, - 'PARAM_2' => $email); + 'PARAM_2' => $email, + 'PARAM_3' => $extra); break; case ST_SALESINVOICE : // Sales Invoice case ST_CUSTCREDIT : // Customer Credit Note @@ -76,6 +77,16 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, 'PARAM_3' => $email, 'PARAM_4' => ''); break; + case ST_SUPPAYMENT : + $rep = 210; + // from, to, currency, bank acc, email, comments + $ar = array( + 'PARAM_0' => $doc_no, + 'PARAM_1' => $doc_no, + 'PARAM_2' => '', + 'PARAM_3' => $email, + 'PARAM_4' => ''); + break; // default: $ar = array(); }