public function message($str)
 {
     $ret = "\n";
     $ret .= ReceiptLib::biggerFont(ReceiptLib::centerBig('Save $5 on a ')) . "\n";
     $ret .= ReceiptLib::biggerFont(ReceiptLib::centerBig('purchase of $25 or more')) . "\n\n";
     $expires = strtotime('+30 days');
     $ret .= ReceiptLib::centerString('Expires: ' . date('m/d/Y', $expires)) . "\n";
     $barcode = 'RC' . date('ym', $expires) . '009';
     $ret .= ReceiptLib::code39($barcode);
     return array('print' => $ret, 'any' => '');
 }
 public function message($val, $ref, $reprint = False)
 {
     if ($val <= 0) {
         return '';
     }
     $slip = ReceiptLib::centerString("................................................") . "\n\n";
     $slip .= ReceiptLib::biggerFont("Class B Equity Purchase") . "\n\n";
     $slip .= ReceiptLib::biggerFont(sprintf('Amount: $%.2f', $val)) . "\n";
     $slip .= "\n";
     $slip .= "Proof of purchase for owner equity\n";
     $slip .= "Please retain receipt for your records\n\n";
     $slip .= ReceiptLib::centerString("................................................") . "\n\n";
     CoreLocal::set("equityNoticeAmt", $val);
     return $slip;
 }
 public function message($val, $ref, $reprint = False)
 {
     if ($val <= 0) {
         return '';
     }
     $slip = '';
     if ($reprint || CoreLocal::get('autoReprint') == 0) {
         $slip .= ReceiptLib::centerString("................................................") . "\n\n";
         $slip .= ReceiptLib::centerString("( C U S T O M E R   C O P Y )") . "\n";
         $slip .= ReceiptLib::biggerFont("Store credit issued") . "\n\n";
         $slip .= ReceiptLib::biggerFont(sprintf("Amount \$%.2f", $val)) . "\n\n";
         if (CoreLocal::get("fname") != "" && CoreLocal::get("lname") != "") {
             $slip .= "Name: " . CoreLocal::get("fname") . " " . CoreLocal::get("lname") . "\n\n";
         } else {
             $slip .= "Name: ____________________________________________\n\n";
         }
         $slip .= "Ph #: ____________________________________________\n\n";
         $slip .= " * no cash back on store credit refunds\n";
         $slip .= " * change amount is not transferable to\n   another store credit\n";
         $slip .= ReceiptLib::centerString("................................................") . "\n";
     }
     return $slip;
 }
Example #4
0
 public function message($val, $ref, $reprint = false)
 {
     if ($val == 0) {
         return '';
     }
     $slip = '';
     // reprints always include. if the original transaction
     // has an automatic reprtint, only include one slip
     if ($reprint || CoreLocal::get('autoReprint') == 0) {
         $slip .= ReceiptLib::centerString("................................................") . "\n\n";
         $slip .= ReceiptLib::centerString("( S T O R E   C O P Y )") . "\n";
         $slip .= ReceiptLib::biggerFont(sprintf("Amount \$%.2f", $val)) . "\n\n";
         if (CoreLocal::get("fname") != "" && CoreLocal::get("lname") != "") {
             $slip .= "Name: " . CoreLocal::get("fname") . " " . CoreLocal::get("lname") . "\n\n";
         } else {
             $slip .= "Name: ____________________________________________\n\n";
         }
         $slip .= "X: ____________________________________________\n";
         $slip .= ReceiptLib::centerString('(please sign)') . "\n\n";
         $slip .= ReceiptLib::centerString("................................................") . "\n";
     }
     return $slip;
 }