NetSuite: WorldShop/OZLink overwriting NetSuite Shipping Price - netsuite

I've got an online store powered by Netsuite where I am charging customers a fixed rate for shipping. So we take an order, and we tell the customer the shipping is $10. (for example)
We use WorldShip to actually do our shipping, and so we then weigh the package, enter a weight, etc.
The problem is, whatever our shipping costs actually are from WorldShip are overwriting the amount we promised the customer, and then when we go to charge the card it can't because we're only authorized.
What's the best approach to fixing this? When charges are created, have custom scripts that run that take the amount from the Sales Order instead of the amount from the fulfillment record? Is there a way to have WorldShip only overwrite the shipping amount on offline orders and not on online orders?

For this scenario, we've created a custom transaction body field on the sales order called "Shipping Charge Exception". This field holds the shipping amount that we've promised to the customer and automatically gets copied to subsequent invoices or cash sales.
Then we have a workflow on the creation of invoices and cash sales (Before Submit) that copies the value of the Shipping Charge Exception field into the Shipping Cost field on the invoice or cash sale.
The item fulfillment will still hold the actual shipping cost but the invoice or cash sale will get the amount promised to the customer.

Related

Define a limit on which a stripe subscription invoice is effective or not

I've been using Stripe to start subscriptions for my clients recently and I have a specific issue.
I have a metered price for a product that's let's say 0.09€ per item (an SMS in that case) on a monthly cycle. Since you pay on Stripe for your invoices, I'd like to define an amount limit to have this invoice sent or not. For example, let's say this amount is 10€ and the the pending invoice amount at the end of the month for a user is 5€, I'd like to carry these 5€ over the next month.
I read about the billing_thresholds.amount_gte which does basically the opposite of what I need from what I understand.
Is this possible?

Two strings are not exact in Excel until F2-Enter

I have two strings below.
|-
"For PayPal payments, %{service_name} charges a commission of %{paypal_commission}%. PayPal's fees are not included in this commission, so in addition to %{service_name} commission, you also need to pay PayPal's fees from each payment processed by PayPal. PayPal's fee is between 2% and 5% of the total sales price, depending on your monthly sales volume and the country of residence of the buyer. In general, domestic purchases have lower fees than international ones, and higher monthly sales give you a discount on fees.
You can see the exact fees by logging in to your PayPal account and going %{link_to_paypal}. After each purchase you will get a receipt displaying the exact fee."
|-
"For PayPal payments, %{service_name} charges a commission of %{paypal_commission}%. PayPal's fees are not included in this commission, so in addition to %{service_name} commission, you also need to pay PayPal's fees from each payment processed by PayPal. PayPal's fee is between 2% and 5% of the total sales price, depending on your monthly sales volume and the country of residence of the buyer. In general, domestic purchases have lower fees than international ones, and higher monthly sales give you a discount on fees.
You can see the exact fees by logging in to your PayPal account and going %{link_to_paypal}. After each purchase you will get a receipt displaying the exact fee."
Using Exact() function in Excel shows that the 2 strings are not the same.
However if I click F2-Enter on the first string, then the Exact() function returns TRUE.
If I undo and click F2-Enter on the second string, the Exact() function remains FALSE.
If I F2 and copy the content of the cells to two other cells, the Exact() function evaluates to TRUE.
The first string is generated using VBA pulling data from a .yml text file (ADODB command). The second string is generated using Power Query pulling from a .csv file
I need these strings to be the same without any intervention. First, I need to check why are the content different?

Applying Stripe Discount

Does anyone know if there is another way to implement discount in stripe subscription without using coupon stripe features.
I have a feature in my application that admin users can give different discount amount to a subscribe user every month.
Is there a way I can edit the "Upcoming Invoice" amount of the customer through stripe api.
You can never directly edit the total amount of an invoice -- it is automatically calculated from the sum of the values of each line item, taxes, coupons, etc.
If you don't want to use coupons for whatever reason, another thing you can do to reduce the amount of an invoice is to create invoice items with a negative value.

NetSuite - Customer Deposit Negative Balance

It seems we cannot enter a negative amount when we want to create a customer deposit record. We have customers who are in overdraft so we need a way to capture negative amount.
How would we do this? We need a way of monitoring billable customer account balance.
Thanks
It might be best to generate a cashsale with an item (service) you set up for overdraft. The amount the customer is in overdraft would be the rate/amount.
You need to show that the customer has a negotiate balance. The only way to really do that correctly is to create a billable transaction, such as salesorder, invoice, or cashsale.

Giving Stripe Customers Credit

I'm working with Stripe. Our users subscribe to our service and they are billed every 2 weeks. We need to implement a way to give them $5 credit every time they refer someone to use our service.
Solutions I have considered so far:
Stripe coupons: Stripe has great documentation. Unfortunately, for
coupons there are many ambiguities. I tried working with coupons but
so far it seems like a coupon can only be applied once for each
invoice, and you can't apply multiple coupons for one invoice. This will not work with us since a user can earn $5 multiple times during the billing period.
Issuing refund: the problem with this is that we have to pay the user actual money while what we actually want is to give them credit to use in our service.
Am I missing anything with coupons? Are there any other solutions/suggestions?
If I understand your use case correctly, I think the best way would be to create an invoice item with an amount of -500 for each referral. When you create an invoice item, by default it is set as "pending" and will automatically be included in the next invoice, i.e. at the end of the current billing period.
Be aware that if the invoice's total is negative (in the case of many referrals), then the total will be added to the customer's account_balance and reduce the amount of the next invoice as well. If this isn't what you want, you'd need to reset the customer's account_balance to zero, or make sure that you don't create invoice items that will make the invoice's total go below zero.
More information about invoice items can be found here: https://stripe.com/docs/subscriptions/guide#adding-invoice-items. The guide only mentions invoice items with positive values (i.e. additional charges), but you can use negative values as well.
Have you considered just checking for available credit in transactions before you charge?
That way you can just store how much credit people currently have in some database, and just apply the balance on transactions. AKA charge them for full_price - total_credits.

Resources