26

(21 replies, posted in Manufactoring)

my version is PHP 5.5 and MySQL 5.6, is any problem with that? or should i use another version of XAMPP?

but sir, my screen on work_order_entry.php is blank,its because of two db_query, when i delete db_query, my screen back to normal
and i already change to $result

27

(21 replies, posted in Manufactoring)

thanks sir, honesty this is my real problem, why this code isnt working? its look like 2 db_query in one function isnt allowed

function add_stock_move($type, $stock_id, $trans_no, $location,
    $date_, $reference, $quantity, $std_cost, $person_id=0, $show_or_hide=1,
    $price=0, $discount_percent=0, $error_msg="")
{
    $date = date2sql($date_);

    $bomqty = "SELECT bom_quantity from ".TB_PREF."stock_master WHERE stock_id=".db_escape($stock_id);
    $result = db_query($bomqty, "Error");
    if (db_num_rows($bomqty)==1)
    {
        $row = db_fetch_row($result)
        return $row[0];
    } $nope = $row[0];
     
    $sql = "INSERT INTO ".TB_PREF."stock_moves (stock_id, trans_no, type, loc_code,
        tran_date, person_id, reference, qty, standard_cost, visible, price,
        discount_percent) VALUES (".db_escape($stock_id)
        .", ".db_escape($trans_no).", ".db_escape($type)
        .",    ".db_escape($location).", '$date', "
        .db_escape($person_id).", ".db_escape($reference).", "
        .db_escape($quantity).", ".db_escape($std_cost).","
        .db_escape($show_or_hide).", "
        .db_escape($price).", ".db_escape($nope).")";

    if ($error_msg == "")
        $error_msg = "The stock movement record cannot be inserted";

    db_query($sql, $error_msg);

    return db_insert_id();

}

28

(21 replies, posted in Manufactoring)

apmuthu wrote:

function add_stock_move()
in
includes/db/inventory_db.inc

which line sir on work_order_entry.php who call function of add_stock_move from inventory_db.inc ?

29

(21 replies, posted in Manufactoring)

Where is flow code for workorder when 'add workorder' ? i mean about stock_moves table, where can i find the code when 'add workorder' insert data to stock_moves table? thanks

30

(8 replies, posted in Translations)

apmuthu wrote:

http://wiki.gnucash.org/wiki/Locale_Settings
https://frontaccounting.com/fawiki/index.php?n=Help.InstallUpdateLanugages

thanks sir, i will looking for that

31

(6 replies, posted in Report Bugs here)

thanks for the answer, i guess its my browser problems big_smile

I can't install another language (Indonesian) , it's just ENG after i did click download button on setup update and install language pack, and i got an error
[img]http://s25.postimg.org/v43723pov/eror1.png[/img]
uploading pictures

then i click add language manually, after download language pack in sourceforge, i fill anything like this
[img]http://s25.postimg.org/tb0ads4i7/eror_2.png[/img]
jpg images
please help big_smile thanks

i using Windows 8.1

33

(6 replies, posted in Report Bugs here)

apmuthu wrote:

Setup -> Company Setup -> Browser Timeout -> change from default 600 (10 minutes) to say 28800 (8 hours).

i'm sorry sir, but i cant find Browser Timeout

http://s27.postimg.org/6yt65r2ub/image.png

34

(6 replies, posted in Report Bugs here)

apmuthu wrote:

Check timeout. Possibly Windows 8.1 quirks....

can i change it? where? i must open in new tab when i want to click that

35

(6 replies, posted in Report Bugs here)

before 5 minutes during bugs on, i still can click anything normally, but after 5 minutes inactivity, i cant click any thing, its doesnt work, why? i tried already in Chrome and Firefox
i use
Win 8.1
FA 2.3.21
XAMPP 1.8.3
PHP: 5.5.6