X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Fincludes%2Freporting.inc;h=8dc119f6629dbd1cb924bf5aec88a44264511c8e;hb=7e830126b96477e969fe3b48d9fc0e78f6c1fe00;hp=0650c98e9afa0afd92ec567d5b116093db965195;hpb=08e465dd87f4929fcd07ba944c4451bc3437f2b3;p=fa-stable.git diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 0650c98e..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,8 +77,16 @@ 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 : - case ST_BANKPAYMENT : $rep = 210; // from, to, currency, bank acc, email, comments $ar = array( @@ -88,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(); }