Forum Discussion

rajasekar_o's avatar
rajasekar_o
Helper V
2 years ago
Solved

sales Calculation Customer wise

hi team 
i have sales and return data
sales data

InvnodateCustomeritemqtyamount
100115-01-2024John DoeSmartphone1700
100220-01-2024Jane SmithHeadphones2150
100303-02-2024Sam BrownTablet1350
100418-02-2024Lisa WhiteSmartphone Case330
100505-03-2024Bob GreenCharger240
100615-03-2024Alice BlueSmartphone1700
100707-04-2024Tom BlackScreen Protector525
100825-04-2024Mary GoldBluetooth Speaker1100
100910-05-2024Peter GrayEarbuds150
101020-05-2024Sara PinkSmartwatch1200
101102-06-2024George BlueSmartphone21400
101212-06-2024Rachel GreenTablet Cover480
101301-07-2024Steve RedPower Bank390
101414-07-2024Olivia PurpleWireless Mouse125
101503-08-2024Emma YellowUSB Cable630
101615-08-2024Liam BrownLaptop Stand160
101705-09-2024Noah WhiteKeyboard145
101818-09-2024Ava BlueMonitor1200
101902-10-2024Mia BlackWireless Charger250
102020-10-2024Lucas GreenGaming Console1300

Sales Return 

RtnInvnoReturn DateCustomerItemQtyRetRefundAmt
R100125-01-2024Jane SmithHeadphones175
R100210-03-2024Bob GreenCharger120
R100315-05-2024Tom BlackScreen Protector315
R100402-07-2024Sara PinkSmartwatch1200
R100520-09-2024Ava BlueMonitor1200

customer table 

Customer
John Doe
Jane Smith
Sam Brown
Lisa White
Bob Green
Alice Blue
Tom Black
Mary Gold
Peter Gray
Sara Pink
George Blue
Rachel Green
Steve Red
Olivia Purple
Emma Yellow
Liam Brown
Noah White
Ava Blue
Mia Black
Lucas Green


Both table related with Customer


the sales return is witch month occure then minus the return amount on that moth only 





1 Reply