Logic behind using is_inward and is_open
Example
client gives 25 rolls of fabric total 25000 meters for printing -
inward transaction is_inward = yes and is_ open=yes for transections.
2 rolls printed today and given back to client total meters 2000.
outward transection is_inward = no and is_open=yes stock is available open for transections.
23 rolls printed another days and 23000 meters given back to client.
outward transection is_inward = no and is_open=no - no stock left to do transections.
tra_close will show that closed inward and outward - stock came - printed - outward done. task finished
at this point if both flag is no - outward not allowed
hope I explained properly
@derek
I have few more qustions
1) when I was reading book dgs filter catalogue page 46
there was a concept called parent-child in tablegrid
is that good idea to incorporate in project also what about cascade delete.
2) same example as above
Supplier/Client (MAIN parent) gives bill (one to many relationship)
add bill no(child(parent of bill multiple entries))
multiple bill entries(child(parent of transections).
cascade delete will be good idea here?
3)I am confuse here how to go about it?
multiple outward can happen in one day or multiple time in month. how to achieve this
d-0001 - 2024-05-04
d-0002 - 2024-05-04
...................
.....
d-000n - 2024-05-04
same client merge all bills.
m-0001 - bill for May month. mention all the entries done. In month and all the total amount and taxes.
I will track q_out and q_in as per your suggestion.