Rush Transaction Fee

Navigation:  Customer > Billing Wizard > Per Transaction Billing Setup > AutoBilling Scripts >

Rush Transaction Fee

Previous pageReturn to chapter overviewNext page

Description: Charge for processing orders after a designated cut-off time.

Script: (for those python coders out there, yes, this image was tweaked.  The line that starts with 'and' is actually a continuation of the line before.  If you look at it yourself, you'll see, but it wouldn't fit well here, so I moved a few things around to make it more readable.  If you didn't notice, nevermind.)

Customer-BillingWizard-PerTransBill-AutoBill-Script110

User Input:

Customer-BillingWizard-PerTransBill-AutoBill-Script110Setup

Explanation: So, you set a charge amount and a time of day after which that charge amount is applied.  It seems odd that we check to make sure that the Creation Day, month, and year match the current day, month, and year as well as checking to see if the shippingCutoffTime (which we set) is less than the CreationDate time.  It only thing I can think of is that this should only be run on the day something was created, and if it's run the day after it's created, this charge will not be added.  If it is the CreationDate, whether or not the charge will be applied depends on if the CreationTime is later than the minimum time.  If it is, the charge will be added.  If it's the same (to the minute) or earlier, the charge will not be added.  It's a little weird that the time comparison is an integer, but if you use a 24 hour clock, it should work.