0
Hi sir,
When Over selling enabled in settings system, Add new purchases triggers wrong quantity for existing product quantity.
When i want to edit/modify an item in existing purchase called A, a majority of items that in that purchase list became “0” Quantity in product list. For example, i uploaded a CSV file of 500 items purchased last week. Yesterday, i open that purchase A, then i updated quantity for product called "mouse" from that purchase. Result: The quantity of 393 other items became “0”. this happen multiple time with me. It is very frustrating when you work with production. After one month from purchase A entry, my customer want to return some items in the purchase A. If i edit the purchase, some products will became with 0 quantity.
How to show suspended sales to all users, not only admin. Can you please tell me the line of code to modify.
Bill order receipt have no reference number.
5)How to save all bill orders generated in SMA like saved suspended sales
What means "Full" "partial" in count stock feature
What means "set average cost" in product list top menu
Thanks you for you support
0
Hello,
Oversold quantity will be adjusted on purchase. Please test it on live demo and if there is any issue, let me know the step to reproduce it.
That might be due to max_input_vars
please increase the value in php config. You can refer to FAQ Why some products are missing from order when I add 100+ products?
in docs for more info.
You can modify the getSuspendedSales
method of app/models/admin/Pos_model.php
The reference will only be for suspended sales. If sale is not suspended there won't be any reference for order/bill but after submit for sale only.
There is no such option as the data stay on the local machine only. Suspend or submit sends it to the server.
As the term says, full mean for all the products while partial means for few.
Overselling could cause the cost to -ve. If that happens, you can use the set average cost
to recalculate the avg_cost of product with current available stock.
Thank you
0
Hello, thanks you for your reactivity.
public function getSuspendedSales($user_id = null)
{
if (!$user_id) {
$user_id = $this->session->userdata('user_id');
}
$q = $this->db->get_where('suspended_bills', ['created_by' => $user_id]);
if ($q->num_rows() > 0) {
foreach (($q->result()) as $row) {
$data[] = $row;
}
Thanks
0
Hello,
Instead of $this->db->get_where('suspended_bills', ['created_by' => $user_id]);
you can get all by $this->db->get('suspended_bills');
Not only overselling but any method could result in -ve stock. If you add purchase for 10 and sell 8 then edit the purchase to change the quantity to 5 The stock will be -3 and there might be other scenarios too.
Thank you
0
Hello Mian Saleem, i really appreciate you help. Very happy to your assistance. Thanks you very much for helping your customers
0
Hello, i modified source code as you said,
Currently, only owner can see all suspended sales from all users.
but normal user can't see all suspended sales. Each user see only his suspended sales, not others users suspended sales nor owner suspended sales.
I would like to let normal user to see all suspended sales in whole system.
I talk about the attached windows.
Thanks
0
Please take the screenshot modified code? Thanks
0
Hello Mian Saleem,
NEW and OLD source codes both attached
Thanks you for heliping us.
0
You can try to edit the fetch_bills
method of app/models/admin/Pos_model.php
and comment first 3 lines. Thank you
We use Cookies
We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.