uzerpllp / uzerp

uzERP - Open Source Business Management
http://www.uzerp.com
Other
55 stars 25 forks source link

Issue with stock transfer #265

Closed nguereza-tony closed 1 year ago

nguereza-tony commented 1 year ago

Currently in stock transfer page "manufacturing -> whtransfers -> new"

After click button "Add Line" and choose the product there is Js error, and this prevent the page to reload in infinite without success. After many time of debug I think the issue is related to script below:

modules/public_pages/erp/manufacturing/resources/js/manufacturing.js dist/js/modules/erp/manufacturing/resources/js/manufacturing-4febc3bd54174108fd6b84f8f407dbdc.js

The fix is just change lines (change all _'+row, to '+row,)

$(".uz-grid-table tr select, .uz-grid-table tr input","#manufacturing-whtransfers-new").live('change',function(){
    ... REMOVED LINES
    case "stitem_id":
        $.uz_ajax({
            target:[
                {
                    element : '#stuom_id_'+row,
                    field   : "stuom_id"
                },
                {
                    element : '#uom_name_'+row,
                    field   : "uom_name"
                },
                {
                    element : '#available_qty_'+row,
                    field   : "available_qty"
                }
            ],
... REMOVED LINES

To

$(".uz-grid-table tr select, .uz-grid-table tr input","#manufacturing-whtransfers-new").live('change',function(){
    ... REMOVED LINES
    case "stitem_id":
        $.uz_ajax({
            target:[
                {
                    element : '#stuom_id'+row,
                    field   : "stuom_id"
                },
                {
                    element : '#uom_name'+row,
                    field   : "uom_name"
                },
                {
                    element : '#available_qty'+row,
                    field   : "available_qty"
                }
            ],
    ... REMOVED LINES

And it will work. Thanks

steveblamey commented 1 year ago

Thanks for pointing that out, @nguereza-tony. The warehouse/store transfer functionality has never been fully completed and we haven't worked on it for some years. It may be a while until we get back to it.

nguereza-tony commented 1 year ago

ok noted

steveblamey commented 1 year ago

See #41