Report amount issue in partial pay - shopify

I am creating app in the shopify store in which user can pay partial amount of product price and place that order when order id place tha paid amount is shown into orders e.g if product amount is 100$ user pay partial with $10 rest $90 he will after COD method. this is working fine but in the net profit reports only $10 is calculating for that order. I want that if there is any options after got COD amount i will update that amount with complete amount and reflect into net profit reports into Shopify

Related

Calculate Gross Sales using Shopify API

I want to calculate Gross Sales using Shopify API. I have already readed the shopify API documentation and tried the formula they used to calculate gross sales and failed to get the same result they have at the shopify reports website.
I used this shopify endpoint to retrieve all orders
/admin/api/2020-07/orders.json?status=any&created_at_min=2020-07-03T00:00:00-04:00&created_at_max=2020-07-04T00:00:00-04:00&limit=250
PS: The number of orders from shopify API and shopify Dashboard is equal. ( I am getting all the orders correctly)
I tried to use the sum of total_line_items_price, but I got a different result from Shopify Reports.
Shopify API results after summing the total_line_items_price: X
Also, I tried to use the formula they provided at Shopify API documentation where they mentioned that Gross Sales = product selling price x ordered quantity and I got the same result as sum of the total_line_items_price: X
Shopify Gross Sales at the financial report dashboard: Y
Shopify API sum of total_tax: Z Which is equal to the financial report taxes.
Please I need your help to calculate Gross Sales Correctly
Thank you
You want to go through Transactions. Transactions include refunds and cancellations, whereas using totals from orders is not dynamic.
Shopify reports are and have always been a bit of a mess. Even today in 2020, a lot of merchants complain to me that the numbers do not add up, as there are numerous places for the uninformed to make mistakes. Takes for example editing orders. A lot of merchants use that. When line items are changes, draft orders are created and attached to orders, as a sequence. So if you are failing to follow those breadcrumbs, you may be double billing some items, or otherwise messing with totals.
So my advice to you is to use the numbers in the transactions, and see what that does for your reporting.

Total price and price per unit microdata

Currently trying to optimise our e-comm shop and google merchant products and I can't seem to get any further or get any other information on how to display a total price and a price per ct.
Product.
I need to have the total price the customer pays displayed on the website (£100.00) the quantity they'll receive (100 ct), and the price per unit that they pay (£1.00).
But what would the pages microdata and JSON-LD be?
Thanks!
One way to provide that sort of info is to start with the offer and use includesObject which has an amountOfThisGood.
offer
price - 100
includesObject
amountOfThisGood - 100
typeOfGood
type - Product
offer
price - 1
However, I suspect systems including Google will not understand that yet.

Product Cost in Odoo not updated with Price Change

The summary is that my Product cost in the general information tab is different from my Price in the Purchase tab. Whenever we have a price update for a product, it doesnt get updated in the product cost in the general information tab and this is causing a negative P&L
The details of my issue is as follows
when i got into my Inventory module and check my Product general information for a particular product and I find that the product cost is say 295, which is the price i purchased the product the last time from the supplier. However when I go into my Purchase tab and check the purchase price from the vendor I find that my purchase price is 95 and different from the product cost price defined earlier. This seems to be causing an issue in my P/L report as I am getting a negative P/L.
The business case is that the product price changes anytime we buy to replenish inventory, and the new price is entered which is what we get in the Purchase price tab, but it doesnt update the cost price in the general information tab

First Expiry First out in OpenERP

I wanted to bring batch number selection to be in sales module and to enforce any sales done according to the expire date associated to product automatically. The idea is a user select product and quantity to sale, and the system expected to do selection from the right batch, if there is no enough stock available it must does splitting
So far what I managed to do:
Product are sorted by expired date and it automatically selects a product with recent expiry date without any user intervention and notify if not enough stock available
Creates delivery slip to warehouse and sales invoice to finance with that batch number from sales order
However, I am facing these problems
If current stock quantity of specific product in batch is not enough it should go to second batch and creates to sales order line somehow similar to splitting mechanism exist in warehouse.
confirmed sales orders doesn't deduct sold product stock quantity from warehouse

How does the backend of a e-commerce looks

I would like to know how does e-commerce sites maintain their databases?
Let say they are selling a product name X from a marchant M
Now the merchant increases or decreases the cost of the item. It is manually edited in the e-commerse backend ? Is this part automated?
If there is an id associated with the item, is id given by the merchant or the e-commerce site?
There can be 10 same product items provided by 10 different merchant. Now the specification of the product is same but the amount varies from each merchant. if let say every merchant change the cost of the item and tell us the cost. How can we in automated fashion edit the backend in such a situation
The shop owner with the website is adjusting their prices independently of the wholesaler. This can be done manually in an online product admin interface, or it can be done through some kind of data feed of all products like XML or CVS. The data feed can be coming directly from a retail point of sale system. If the wholesaler raises the prices - the shop owner still has stock on hand of the product they bought at the previous price. When the shop owner takes delivery of the new stock and enters that inventory into the system - at that point they would adjust the prices.
A product has a UPC code (or EAN if in europe) which is universal for that product. For example all products on Amazon have a UPC code which is how they organize different sellers for the same product
VERSUS a SKU or Product ID - which is unique to the shop owner. That is what the shop owner uses to track inventory and prices. The universal UPC plus unique SKU is how amazon determines the product that is sold.
In your last example - you are talking about functioning as a "marketplace" like Amazon.com Amazon lets merchants determine their own prices - but very important to know the price is ranked as price + shipping cost. Because some merchants will lower the product price to try and come out on top but then they inflate the shipping cost to make up for it.