Fixing bug in Sales Invoice and Sales Delivery when Cash Sales and document date...
[fa-stable.git] / includes / ui / ui_msgs.inc
index 09bb82bcd2218881f308fbf059566a9a589f0901..58e3df3078fcce5743f655970b2edc8e65d879e3 100644 (file)
@@ -11,8 +11,6 @@
 ***********************************************************************/
 function display_error($msg, $center=true)
 {
-       global $go_debug;
-
        trigger_error($msg, E_USER_ERROR);
 }
 
@@ -31,6 +29,11 @@ function display_notification_centered($msg)
        display_notification($msg, true);
 }
 
+function display_caption($msg)
+{
+       echo "<caption>$msg</caption>\n";
+}
+
 function display_heading($msg)
 {
        echo "<center><span class='headingtext'>$msg</span></center>\n";        
@@ -66,4 +69,3 @@ function stock_item_heading($stock_id)
        }
 }
 
-?>
\ No newline at end of file