Multivendor functionality integrate the "Paypal Adaptive Payments" - payment

customer buys products from vendor A, vendor B and vendor C.
Will the customer pay the full amount for product A, B and C and then Paypal will deliver it to the correspondent vendor automatically or customer will should confirm transactions for each vendor ?

Related

How to handle purchase order in every sales order in Odoo?

Can Odoo handle purchase orders in every sales order that the items are not yet received by the warehouse?
I have this situation where customer 1 and customer 2 order the same products which are not yet in stocks (on-hand-qty = 0). So Odoo will automatically generate a purchase order to buy the items to the vendor and the company will also purchase enough stocks to compensate for the two customers? Now with 45 days lead time until the products will be receiving in the warehouse.
Example:
Item in warehouse = 0
Customer 1 buy 50 units of an item on the same day but different store.
Customer 2 buy 50 units of the same item on the same day but different store.
The company buys 200 units of the same item Since the lead time for the vendor to deliver the product is 45 days now there is Customer 3 which buys the same product on the same day but different stores but only buys 50.
Now in Odoo, it will generate 4 PO ( 3 for the Customer 1,2,3 and 1 for the company) How to make it 2 3 PO instead of 4? since it will compensate the number of items from the company's order but it will wait for 45 days? then another Customer 4 will buy the same items...etc. It will be a series of RFQ that are not necessary to do automatically.

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?

Avoiding dual conversion of currency in Stripe

We are using Stripe to charge our customers with monthly subscriptions. We are based in the UK and we have a GBP bank. We publish prices in USD so our plans in Stripe have dollar amounts.
When charging a British customer, how do I avoid going from the GBP of the customer credit card to the USD of my price to the GBP of my bank account? I'd rathe do GBP -> GBP with no conversion.
More or less the same would apply for other currencies, I'd rather do EUR -> GBP than EUR -> USD -> GBP.
From Fred from Stripe support:
Conversion between currencies only happens once when funds are
transferred to your Stripe account. If your account is in GBP, and
your customer is in GBP, you won't be charged the 2% conversion fee.
When you charge in USD, and have a GBP bank account, Stripe does a
quick exchange rate calculation to convert the USD amount into the
equivalent GBP amount. Conversion fees are only charged when your
customer's currency doesn't match your bank's currency.
More documentation on this here:
https://support.stripe.com/questions/which-currencies-does-stripe-support
So, what I want happens automatically.
You'd need to have different plans set in GBP, and subscribe your UK customers to one of those plans rather than one of the USD plans.
One possible way to do this would be something like this:
Collect the customer's card information using Stripe.js or Checkout.
On your backend, retrieve the full token object using the token ID, and check the card's issuing country via the card.country attribute.
Depending on the country ("GB" or not), display the correct amount and currency to your customer (in GBP or USD).
Once the customer has confirmed, create a customer object with the token and subscribe them to the correct plan.

NetSuite: WorldShop/OZLink overwriting NetSuite Shipping Price

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.

Statistics for people's shoppings

I am building some project (website) on people's shopping (stuff stored in refrigerator) . I need to generate an automatic shopping cart based on people's shopping .
For example if some person buys every week one bottle of milk , than the website will offer the person to buy milk once a week (if there is no milk in refrigerator) .
I am storing shopping history of each family.
But for calculating the shopping cart i need to generate some statistics formula . But i have no clue how to do it. because there might be scenarios (for example birthday) , when the family will buy more products than needed, and it will make me false data for statistics. I want to ignore such scenarios.
Anyone has idea how and what statistics should i use?
pseudocode
assuming the customer had an account and your database is MySQL
every purchase must save customerid, product id/name ,date of purchase,comment(optional) to a table (e.g. purchased table)
customer has their own table that includes at least their personal info(e.g. customer table)
lets say customer browses the product (viewing the website)
• customer clicks the product
• system/server counts the number of purchase in purchase table
• if the number of purchase is more than one then
- get the last date of purchased product - the current date purchased product = frequency of product needed by date
- total number of product purchased / total number of times the product purchased = frequency of product needed by item count
UPDATE
I would suggest that the purchase table has a field that specifies if the current order/purchase is an occasional field instead, so it would be excluded.
example
• system/server counts the number of purchase in purchase table if the purchase is not occasional

Resources