Check Stock 1 CheckStock1 Check Stock 1 0.05 0.05 Letter 50 0 50 50 Head SELECT checkhead_id, checkhead_number, checkhead_for AS memo, formatDate(checkhead_checkdate) AS f_checkdate, formatMoney(checkhead_amount) AS f_amount, spellAmount(checkhead_amount, curr_id) AS f_words, CASE WHEN(checkhead_void) THEN TEXT('V O I D') ELSE TEXT('') END AS f_void, CASE WHEN checkhead_recip_type = 'C' THEN (SELECT cust_number FROM custinfo WHERE (cust_id=checkhead_recip_id)) WHEN checkhead_recip_type = 'T' THEN (SELECT taxauth_code FROM taxauth WHERE (taxauth_id=checkhead_recip_id)) WHEN checkhead_recip_type = 'V' THEN (SELECT vend_number FROM vendinfo WHERE (vend_id=checkhead_recip_id)) ELSE 'Unknown Recipient Type' END AS recip_number, formatAddr(CASE WHEN checkhead_recip_type = 'C' THEN (SELECT cntct_addr_id FROM cntct, custinfo WHERE ((cust_cntct_id=cntct_id) AND (cust_id=checkhead_recip_id))) WHEN checkhead_recip_type = 'T' THEN (SELECT taxauth_addr_id FROM taxauth WHERE (taxauth_id=checkhead_recip_id)) WHEN checkhead_recip_type = 'V' THEN COALESCE((SELECT vendaddr_addr_id FROM vendaddrinfo WHERE ((UPPER(vendaddr_code)='REMIT') AND (vendaddr_vend_id=checkhead_recip_id))), (SELECT vend_addr_id FROM vendinfo WHERE (vend_id=checkhead_recip_id))) END) AS check_address, CASE WHEN checkhead_recip_type = 'C' THEN (SELECT cust_name FROM custinfo WHERE cust_id=checkhead_recip_id) WHEN checkhead_recip_type = 'T' THEN (SELECT taxauth_name FROM taxauth WHERE taxauth_id=checkhead_recip_id) WHEN checkhead_recip_type = 'V' THEN COALESCE((SELECT vendaddr_name FROM vendaddrinfo WHERE ((UPPER(vendaddr_code)='REMIT') AND (vendaddr_vend_id=checkhead_recip_id))), (SELECT vend_name FROM vendinfo WHERE (vend_id=checkhead_recip_id))) END AS recip_name, curr_symbol, curr_abbr, curr_name FROM checkhead, curr_symbol WHERE ((checkhead_curr_id = curr_id) AND (checkhead_id=<? value("checkhead_id") ?>) ); CheckDetail SELECT checkdata_page, checkdata_checknumber, checkdata_checkwords, checkdata_checkdate, checkdata_checkamount, checkdata_checkcurrsymbol, checkdata_checkcurrabbr, checkdata_checkcurrname, checkdata_checkpayto, checkdata_checkaddress, checkdata_checkmemo, checkdata_docnumber, checkdata_docreference, checkdata_docdate, checkdata_docamount, checkdata_docdiscount, checkdata_docnetamount FROM checkDetailFormatted(<? value("checkhead_id") ?>, 12); TestMe SELECT checkitem_id, checkitem_checkhead_id, checkitem_vouchernumber, checkitem_invcnumber, formatMoney(checkitem_amount) AS i_amount FROM checkitem WHERE (checkitem_checkhead_id=<? value("checkhead_id") ?>);
Check Line Detail checkdata_page 680 495 55 80 450 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_docdiscount 620 55 100 450 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_docnetamount 100 55 155 450 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_docnumber 200 20 95 25 Open Sans,Helvetica,Verdana,sans-serif 10 normal Head checkhead_number 620 620 104 20 Open Sans,Helvetica,Verdana,sans-serif 10 normal Head f_amount 370 55 100 450 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_docamount 430 20 147 20 Open Sans,Helvetica,Verdana,sans-serif 10 normal Head f_checkdate 135 265 100 125 0 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_id 245 265 100 125 0 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_checkhead_id 370 265 100 125 0 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe i_amount 480 265 100 125 0 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_vouchernumber 605 265 100 125 0 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_invcnumber 140 445 100 125 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_id 245 445 100 125 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_checkhead_id 365 445 100 125 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe i_amount 480 445 100 125 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_vouchernumber 605 445 100 125 Open Sans,Helvetica,Verdana,sans-serif 10 normal TestMe checkitem_invcnumber 0 CheckDetail 360 70 210 225 25 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_checkpayto 10 150 560 30 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_checkwords 515 100 121 25 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_checkdate 425 305 320 20 Arial 8 normal CheckDetail checkdata_checkmemo 70 235 300 20 10 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_checkaddress 540 150 125 25 Open Sans,Helvetica,Verdana,sans-serif 10 normal CheckDetail checkdata_checkamount 700 100 95 25 Open Sans,Helvetica,Verdana,sans-serif 10 normal Head checkhead_number