siamon123 / warehouse-inventory-system

Open source inventory management system with php and mysql
http://www.oswapp.com
MIT License
389 stars 234 forks source link

add sale #16

Closed ivandgreat closed 7 years ago

ivandgreat commented 7 years ago

This is a nice product u created.

When click the Add Sale, nothing happens.

Thanks.

siamon123 commented 7 years ago

you have to search for a product name.

ivandgreat commented 7 years ago

image

I already search a product, but still nothing changes. Please see image.

siamon123 commented 7 years ago

you have any product name register in database?

ivandgreat commented 7 years ago

image

I have a product already. I manually added a sales on the mysql. But still nothing happens when press Add Sales Button.

siamon123 commented 7 years ago

put your product name into product search field.

ivandgreat commented 7 years ago

I already did on my first post.

please correct me if i'm wrong, is there's missing code here from add_sale.php? it seems the data wheren't called to update the table.

<div class="panel-body">
        <form method="post" action="add_sale.php">
         <table class="table table-bordered">
           <thead>
            <th> Item </th>
            <th> Price </th>
            <th> Qty </th>
            <th> Total </th>
            <th> Date</th>
            <th> Action</th>
           </thead>
           <tbody  id="product_info"> </tbody>
siamon123 commented 7 years ago

for me it's seen like functions.js file not loding.

ivandgreat commented 7 years ago

any advice how to fix this. Thanks.

siamon123 commented 7 years ago

look at this line in footer.php file

somehow it's not loading to your server. just download jQuery library include in footer.php file.

ivandgreat commented 7 years ago

i have checked the footer.php, and i have that src.

the add sale.php code doesn't include the data for to be inserted, its' only have the from the code.

dalt0ny commented 6 years ago

Hi ivandgreat, could you fix this issue?