Please log in as a service provider or an administrator.

ID
Password
Prov. of 1st address
Starting Date:
Ending Date:
"; echo ""; echo "
"; $oldthirdparty=$thirdparty; $oldclientcode=$clientcode; $gst_no=is_gst_exempt($thirdparty); $clienttotal=0; $gstclienttotal=0; echo ""; echo ""; echo ""; $Pro_id=$_SESSION['userProid']; $vendornoresult=mysql_query("SELECT vendor_no from $vendornodb WHERE Pro_id = '$Pro_id' AND thirdparty = '$thirdparty'"); $vendornoarray = mysql_fetch_array($vendornoresult); $vendor_no=$vendornoarray['vendor_no']; echo "

"; echo "To be billed to "; if($thirdparty=="SELF") {echo "the client";} else {echo $thirdparty;} echo "

"; echo "
My vendor no: "; echo ""; echo "GST exempt?Remit to office
Payable to
"; } ////when third party changes (if not blocked) display info, end form and then set third and client to current else if($oldthirdparty != $thirdparty) { $gst_no=is_gst_exempt($thirdparty); if($clientcode != 'BLOCKED') { echo ""; if(!$gst_no) { $gst_amt = number_format(($gstclienttotal * 0.07), 2,'.',''); echo "GST...." . $gst_amt; echo "
"; $clienttotal = number_format(($clienttotal + $gst_amt),2,'.',''); } else { $clienttotal = number_format($clienttotal,2, '.',''); } echo "TOTAL = " . $clienttotal; echo "


"; $gst_no=is_gst_exempt($thirdparty); echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; $vendornoresult=mysql_query("SELECT vendor_no from $vendornodb WHERE Pro_id = '$Pro_id' AND thirdparty = '$thirdparty'"); $vendornoarray = mysql_fetch_array($vendornoresult); $vendor_no=$vendornoarray['vendor_no']; echo "

"; echo "To be billed to "; if($thirdparty=="SELF") {echo "the client";} else {echo $thirdparty;} echo "

"; echo "
My vendor no: "; echo ""; } echo "GST exempt?Remit to office
Payable to
"; $oldthirdparty=$thirdparty; $oldclientcode=$clientcode; $clienttotal=0; $gstclienttotal=0; } ////when client changes (if not blocked) end form and then set client to current else if($clientcode != $oldclientcode) { if($clientcode != 'BLOCKED') { echo ""; if(!$gst_no) { $gst_amt = number_format(($gstclienttotal * 0.07), 2, '.',''); echo "GST...." . $gst_amt; echo "
"; $clienttotal = number_format(($clienttotal + $gst_amt),2,'.',''); } else { $clienttotal = number_format($clienttotal,2,'.',''); } echo "TOTAL = " . $clienttotal; echo "


"; echo "
"; echo ""; echo "
"; echo ""; echo ""; echo ""; $vendornoresult=mysql_query("SELECT vendor_no from $vendornodb WHERE Pro_id = '$Pro_id' AND thirdparty = '$thirdparty'"); $vendornoarray = mysql_fetch_array($vendornoresult); $vendor_no=$vendornoarray['vendor_no']; echo "

"; echo "To be billed to "; if($thirdparty=="SELF") {echo "the client";} else {echo $thirdparty;} echo "

"; echo "
My vendor no: "; echo ""; } echo "GST exempt?Remit to office
Payable to
"; $clienttotal=0; $gstclienttotal=0; $oldclientcode=$clientcode; } else {} echo ""; if($gst_no == 1) { $clienttotal += $prix; } else if($gst_no==0) { $taxable=taxable_yes($Assmt_num); $clienttotal += $prix; if($taxable){$gstclienttotal += $prix;} } else {} if($clientcode != 'BLOCKED') { echo ""; echo $day; echo ""; echo ""; echo $clientcode; echo ""; echo "......."; echo ""; echo "
"; } else {$clienttotal=0; $gstclienttotal=0;} }////finally end the last form if($numnotzero != 0) { echo "TOTAL = " . number_format($clienttotal, 2, '.',''); echo "


"; } } //////////body//////BODY////BODY/////BODY session_start(); //session_register("user3id1"); //session_register("userCLid"); //session_register("userProid"); session_register("useradminid"); echo ""; ?> Invoicing invoicing"; echo""; global $proratearray; echo "
If you want to logout, click here."; echo "
Review your invoices and record payments here after you have created the invoices."; echo "
Set your default rates here."; echo "

Create invoices

"; if($_POST['ready_or_not']=="login_admin") { $_SESSION['useradminid'] = auth_admin($_POST['useradminid_f'], $_POST['useradminpassword_f']); $admin_id=$_SESSION['useradminid']; if(!$admin_id) { $_SESSION['userProid']=auth_pro($_POST['useradminid_f'], $_POST['useradminpassword_f'], $_POST['userProprov_f']); } } if(!empty($_SESSION['useradminid']) OR (!empty($_SESSION['userProid']))) { $Pro_id_cities=$_SESSION['userProid']; get_Procities($Pro_id_cities); form_begin_end(); if($_GET['ready_or_not'] == "ready") { $start_mon_name=no_to_month($_GET['start_month']); $end_mon_name=no_to_month($_GET['end_month']); $begin_date = $_GET['start_year'] . $_GET['start_month'] . $_GET['start_day']; $end_date = $_GET['end_year'] . $_GET['end_month'] . $_GET['end_day']; echo "Appointments from "; echo $start_mon_name . " " . $_GET['start_day'] . ", " . $_GET['start_year']; echo "
to
"; echo $end_mon_name . " " . $_GET['end_day'] . ", " . $_GET['end_year']; retrieve_invoices($begin_date, $end_date); } } else { adminlogin_form(); } echo "

Appointment booking method Patent Pending

"; ?>