Find Jobs
Hire Freelancers

TSQL Calc Cost of goods Sold with the three method FIFO ,LIFO ,Avg

$10-1000 USD

Closed
Posted over 5 years ago

$10-1000 USD

Paid on delivery
I Use Sql server 2012 I have ERP System and I need to calc FIFO,LIFO and Average cost in for the inventory Item I have 4 types of transaction 'IN' (Purchase) ,'OUT' Sale ,'INR' Returned Purchase , ''OUTR' for Sales return Database Structure - Items Table ( Has ItemID, And ItemID and Calculation Method ) -Transaction Table (has ItemID,Date,Qty,Price,TransactionCode) I need To calculate the Avg ,Fifo And Lifo after any Update or save in the Transaction table because all data depened on the Transaction Date , for example After Purchase ID ItemID Qty Price TransCode CurrentQty CurrentValue 1 1000 10 10 IN 10 100 2 1000 10 20 IN 20 300 If In FIFO 3 1000 6 0 Out 14 240 If In LIFO 3 1000 6 0 Out 14 180 If In Avg 3 1000 6 0 Out 14 210 the Problem Will happen If the Customer Need to Delete the Transaction With ID=1 then I must re Calc All Rows again depend to the change , and this need very fast TSQL Code
Project ID: 17465530

About the project

14 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
14 freelancers are bidding on average $566 USD for this job
User Avatar
Hi, I would like to write t sql code for getting the average value in case of fifo, lifo, avg Get in touch to discuss more. Available to start now. Regards, Manish
$200 USD in 4 days
4.9 (71 reviews)
5.4
5.4
User Avatar
Sir I have vast experience in databases and TSQL,u can view my profile and complete on time.I am a full time freelancer, working for more than 2 years now. Have clients from different parts of the world.
$783 USD in 2 days
5.0 (31 reviews)
5.1
5.1
User Avatar
Hi, I got invitation from you to bid on this project , please do let me know when you available so we could discuss in detail. thanks
$561 USD in 10 days
5.0 (9 reviews)
4.8
4.8
User Avatar
I have extensive experience as a Commercial Analyst including work on costings, which lead on to work as a Database Developer and DBA with most of my current work in database development. I would be pleased to do this work for you and would ensure it was done efficiently and carefully, with test examples written up as tSQLt tests to ensure the results were as expected. As well as attending to code I would if required / allowed advise on indexing of the relevent database tables (reduction in overall price if this is not required or allowed) I am currently very busy with some deadlines in August so would not be able to do the work until early September hence the long time period quoted.
$2,000 USD in 40 days
5.0 (3 reviews)
4.5
4.5
User Avatar
Hello Sir, I have read your problem. You need calculate your Avg, Fifo and Lifo after any entry update or insert. I can do it for you. I have work before this type of task in my office. If any Item Purchase then store will update by increase If sale then decrease stock
$166 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of EGYPT
Egypt
0.0
0
Member since Jul 21, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.