Jump to content

Billable Items - Can this be minutes instead of hours?


Recommended Posts

Hello denisechapman,

 

You should be able to set minutes by using fractions of an hour. For example, if you want to use a billable item for 30 minutes it would be 0.5 hours. It does round up however, so if you enter 0.25 it will round up to 0.3.

 

--Thanks

Link to comment
Share on other sites

Just want to change the default word to minute rather than hour

if you just want to change the wording, then you should be able to use language overrides...

 

http://docs.whmcs.com/Language_Overrides

 

if you look in lang/english.php (or your default language), you should find two entries...

 

$_LANG['billableitemshours'] = "Hours";
$_LANG['billableitemshour'] = "Hour";

if you follow the instructions on the above documentation page and create an "overrides" folder and add an english.php file within it, you can change these variables to...

 

<?
$_LANG['billableitemshours'] = "Minutes";
$_LANG['billableitemshour'] = "Minute";
?>

if you do that, then the invoices will state...

 

60 Minutes @ 0.84/Minute $50.40

if you experiment with adding the minute price at 0.8333, you'll get...

 

60 Minutes @ 0.8333/Minute $50.00

though if you go back to edit it and save changes, it will set it back to two decimal places, e.g 0.83...

 

so if you set it to 0.8333 and the invoice is created, it should use those figures.

 

one other thing you could do, though it is purely cosmetic on the admin side, would be to change the text in the billable item pages - switching "Hours/Qty" to "Minutes/Qty".

 

9P7ptc4.png

 

this would be achieved by modifying the "english.php" (or your admin language) in the admin/lang directory.

 

$_ADMINLANG['billableitems']['hoursqty'] = "Hours/Qty";
$_ADMINLANG['billableitems']['hours'] = "Hours";

to...

 

$_ADMINLANG['billableitems']['hoursqty'] = "Minutes/Qty";
$_ADMINLANG['billableitems']['hours'] = "Minutes";

in the above image, i've changed the "House" entry to "Minutes" - but not the Hours/Qty text.

 

however, as with the client area language files, don't edit them directly - using a similar procedure as we used previously, in the admin/lang folder create a folder called "overrides" and add an english.php file with only the changes you want to make...

 

<?
$_ADMINLANG['billableitems']['hoursqty'] = "Minutes/Qty";
$_ADMINLANG['billableitems']['hours'] = "Minutes";
?>

http://docs.whmcs.com/Admin_Area#Multi-Language

 

when you update whmcs in the future, it won't overwrite any entries in your language "overrides" folder(s).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated