Question: Spike in Daily Sales Report

Spike in Daily Sales Report

I'm having a problem with the daily sales report when clicking on a date to show the profits, the issue is caused when purchasing products that the purchase unit is not a base unit, what hap

RF

Ricardo Flotte

Asked
I'm having a problem with the daily sales report when clicking on a date to show the profits, the issue is caused when purchasing products that the purchase unit is not a base unit, what happens is that the sma_costing table records the wrong unit cost, it's not converting the cost to base unit, so when the daily sales report shows the product's cost it shows a big number because it's multiplying wrong numbers,

for example: I purchase a dozen eggs for $12 ($1 a piece), so when i sell those eggs, the sma_costing table registers 12 in quantity and $12 in purchase_unit_cost, but the purchase unit cost should be $1, by the way the sales unit cost is registered correctly. So what the daily sales profit shows it's 12 eggs multiplied by $12 = $144 products cost, when it should be $12.

Please fix this
  • MS

    Mian Saleem

    Answered
    Hello,

    Let me check and I shall fix this in coming update.

    Thank you
  • RF

    Ricardo Flotte

    Answered
    Thanks
  • EH

    Einnlleinhatt Ha

    Answered
    This is happened to me too.
  • MS

    Mian Saleem

    Answered
    Hello,

    Can you guys help me test this again on live demo.

    Thank you
  • RF

    Ricardo Flotte

    Answered
    Hi Mian,

    still same problem, costing table is registering the purchase_unit_cost without converting it to base unit
  • MS

    Mian Saleem

    Answered
    **[Ricardo Flotte](/u/ricardoflotte)** I am sorry! I updated the wrong branch. I have updated the demo again with correction. It should work fine now. If still have issue, please let me know. Thank you very much for help
  • RF

    Ricardo Flotte

    Answered
    Ok, seems good, if i download it again from envato will it be updated with this?

    by the way, with the update I think something is wrong with the Demo, it's showing a $135 daily sale and monthly sale, even when there are no sales

    Thanks
  • RF

    Ricardo Flotte

    Answered
    also could you make a script or query to update previous records?
  • MS

    Mian Saleem

    Answered
    Hello,

    There a default pos sale for $135. I am still checking for the previous record, hopefully it will be added in the update.

    Thank you
  • RF

    Ricardo Flotte

    Answered
    oh ok, please update the download files to get the fix for the costing.

    Thanks
  • Login to Reply