@notrinos I noticed that for SQL strict mode compatibility you are redefining SQL Mode to none. Is it a permanent solution? Moreover does it over write the default FA SQL Mode or it is applied only to the current query in function?

302

(82 replies, posted in FA Modifications)

Good news smile

303

(82 replies, posted in FA Modifications)

It seems every one is too busy smile

304

(13 replies, posted in Accounts Receivable)

Yes you are right, it works with direct invoices. We can create an option in the setup to let user decide whether it is good to delete all deliveries or just work for Direct invoices

305

(13 replies, posted in Accounts Receivable)

It actually replaces the current inquiry form. You can change it in hooks.php

306

(82 replies, posted in FA Modifications)

I fear, this thread may die. I request other developers to test and give their feedback. @joe, @itronics please do consider this in core.

307

(13 replies, posted in Accounts Receivable)

@rafat, A solution to your problem is here

@anoopmb thanks, this is OK

@anoopmb, thanks for the download link.

I can't find the Ajax enable/disable option in the config.php file as you said in Post#7. Can you please recheck

I doubt you have uploaded the non ajax version in the drop box  because the zip file doesn't contain the word ajax. Sorry for disturbing you. Please double check.

I applied it to FA246. I am sure this is non Ajax Version.

@anoopmb. If possible kindly share any DropBox link of the Code. I was about to implement. Thanks

@anoopmb, the download link is broken now.

312

(82 replies, posted in FA Modifications)

Perfect @notrinos. I got it working. Very Simple Just like Reports. Hats off to you.

Here is the Screen Shot.

@apmuthu as you said in Post#24, I think @notrinos is just showing his work to be included in the Core if found useful for all developers. Once decided, optimizing the code and structure to be used in separate folder or reporting folder can be done by our gurus @Joe and @itronics.

My vote is 100% for this modification to be included in the core.

Receiving Error Message while defining Pattern for Dimensions in Forms Setup.

Please add following line at Line#36 in includes/references.inc

ST_DIMENSION => array('date','user'),

314

(82 replies, posted in FA Modifications)

Great smile.

315

(14 replies, posted in Manufactoring)

My pleasure. It's our product smile

316

(14 replies, posted in Manufactoring)

@notrinos please do have a closer look.

Your First para in the above post means that 55 is more accurate cost of the Item A than 60. Where will you then place the wrong Reflections in GL Transactions and Inventory Account. as shown in this image

I am unable to understand that why there is a special handling for a condition $qoh==0 in both files grn_db.inc and work_order_costing_db.inc. This special handling is not necessary at all.

For this special condition we are taking a Non Weighted Average while if $qoh is either +ve or -ve we are taking Weighted Average.

For Calculating Average Material Cost using Non Weighted Average formula is a violation of Cost Accounting Practices irrespective of $qoh value.

I hope my explanation will help you to investigate it correctly.

317

(14 replies, posted in Manufactoring)

Not at all @notrinos

I have gone through though the above post. I don't know how to fix the  dashboard issue but this is violating standard Accounting Principles

The material cost shows the per unit average cost of the item A at any given point in time in the system.

After the step 3 the system will pass gl transaction as below

Inventory.              24000
        Wip.                          24000

While inventory valuation report will show the value of stock as 22000

Secondly if we sell all 400 in Step 4 the gl transaction will record as below

Cost of Goods Sold.          22000
        Inventory.                             22000

Hence the inventory ledger will be left with 2000 not legitimate, the profits are over valued.

@joe, @itronics, @notrinos please think over it and get it rolled back to original one.

318

(14 replies, posted in Manufactoring)

@notrinos

yes I just checked the history of this file. I found that earlier it was

if ($qty > 0 && ($qoh != -$qty))
        $avg_cost = ($avg_cost*($qoh+$qty_delayed)+$unit_cost*$qty_new)/($qoh+$qty);

And I think this was perfect because this was taking the Weighted Average of the Item Produced

Later this was changed to

if ($qty > 0 && ($qoh != -$qty)) {
        if ($qoh == 0 && $avg_cost != 0)
            $avg_cost = ($avg_cost + ($unit_cost*$qty_new)/$qty)/2;
        else
            $avg_cost = ($avg_cost*($qoh+$qty_delayed)+$unit_cost*$qty_new)/($qoh+$qty);
    }

Here I am unable to understand that why we need to take Simple Average for condition

if ($qoh == 0 && $avg_cost != 0)

Assume following transactions
1. Item A was produced qty=300 with cost allocated after WO process = 50
2. Item A was sold qty = 300 @ 200 price
3. Item A was again produced qty = 400 and cost allocated after WO Process = 60

Now as per your revised condition the Average Material Cost calculation is taking the weightage of Cost 50 (Existing Avg Cost)

hence New $avg_cost will be calculated as 55

While the Old working will calculate the Weighted Average, that will Nullify the Weightage of 50 (Existing Avg Cost) and New $avg_cost will be calculated as 60, that is required.

319

(14 replies, posted in Manufactoring)

I have a suggestion that the function update_material_cost in manufacturing/includes/db/work_order_costing_db.inc shall be optimized or replaced with the function update_average_material_cost in purchasing/includes/db/grn_db.inc.

The former function is not calculating correct average cost with the logic defined at Line # 107

if ($qoh == 0 && $avg_cost != 0)
            $avg_cost = ($avg_cost + ($unit_cost*$qty_new)/$qty)/2;

Currently in FA Multiple Products can't be manufactured through Advance Manufacturing. This is necessary when we have several Raw Materials and Several Finished Goods and this case can't be handled via Unassembly Or Advance Manufacturing.

Have a look at this

Login Here
id: admin
pass: Pakistan1947

321

(14 replies, posted in Report Bugs here)

By the way the wiki is not updated with these patterns for Transaction References. How to use it?

Yes login, log out page in theme folder shall over write the core one. Good idea

323

(82 replies, posted in FA Modifications)

Any update on this @notrinos?

@phpninja123 what is the time  for search now?

@anoopmb

One more suggestion. The Ajax may be mostly needed for customer, supplier and item lists.

Since the auto complete is incompatible with pop up search so can we use the Check boxes of Item, Supplier and Customers options in company setup to enable, disable ajax for these lists while disabling for all other small lists  instead of using one variable to control ajax for all lists