X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freporting.inc;h=8dc119f6629dbd1cb924bf5aec88a44264511c8e;hb=05d1e1fc65fe68645b540e06884db0e9f24b1a21;hp=4ce4d148d3a37f31b309795a31d2999f9d772c1e;hpb=bc2003a3804bb1c95d8c41ab164167ac2dd557fb;p=fa-stable.git diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 4ce4d148..8dc119f6 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -56,7 +56,7 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, break; case ST_SALESINVOICE : // Sales Invoice case ST_CUSTCREDIT : // Customer Credit Note - $rep = 107; + $rep = $type_no==ST_CUSTCREDIT ? 113 : 107; // from, to, currency, bank acc, email, paylink, comments, type $ar = array( 'PARAM_0' => $doc_no, @@ -77,6 +77,15 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, 'PARAM_3' => $email, 'PARAM_4' => ''); break; + case ST_CUSTPAYMENT : + $rep = 112; + // from, to, currency, bank acc, email, comments + $ar = array( + 'PARAM_0' => $doc_no, + 'PARAM_1' => $doc_no, + 'PARAM_2' => '', + 'PARAM_4' => ''); + break; case ST_SUPPAYMENT : $rep = 210; // from, to, currency, bank acc, email, comments @@ -87,6 +96,16 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, 'PARAM_3' => $email, 'PARAM_4' => ''); break; + case ST_WORKORDER : + $rep = 409; + // from, to, currency, bank acc, email, comments + $ar = array( + 'PARAM_0' => $doc_no, + 'PARAM_1' => $doc_no, + 'PARAM_2' => $email, + 'PARAM_3' => '', + 'PARAM_4' => ''); + break; // default: $ar = array(); }