|
jgeorgiou author 5/2/2017 |
$tblitems->Value["quantity"]=$values["quantity"] - value["transaction_quantity"]; ???? this doesnt work |
![]() |
lefty 5/2/2017 |
$tblitems->Value["quantity"]=$values["quantity"] - value["transaction_quantity"]; ???? this doesnt work when i use $tblitems->Value["quantity"]= ++$values["quantity"]; it icreases by 1 in right way , why i can't make an add or subtract?
|
|
jgeorgiou author 5/4/2017 |
I dont get it |
L
|
laonian 5/4/2017 |
$tblitems->Value["quantity"]=$values["quantity"] - value["transaction_quantity"]; ???? this doesnt work when i use $tblitems->Value["quantity"]= ++$values["quantity"]; it icreases by 1 in right way , why i can't make an add or subtract?
|
|
jgeorgiou author 5/5/2017 |
You have several syntax errors in your coding: |
L
|
laonian 5/5/2017 |
You need to provide more info if you want replies to be more specific. For example, the full name of your article table, how you want the quantity field in the table updated, the relation between your transaction table and article table, etc, this would be helpful for others to write specific code for you. |
|
jgeorgiou author 5/6/2017 |
thanks for reply , let me explain more. |
![]() |
lefty 5/6/2017 |
thanks for reply , let me explain more. when i add a record to transaction table (using lookup to choose article from articles table) i want While saving the transaction to update quantity of articles table code should be like (before record added event) global $dal; $tblitems = $dal->Table("articles"); $tblitems->Param["articles_articlename"]= $values['transaction_article']; $tblitems->Value["articles_quantity"]=$values["transaction_qtytotal"] - $values["transaction_quantity"]; ???? this doesnt work $tblitems->Update(); (what should i use to Value["articles_quantity"] for quantity field to get set calculated? PS Phprunner/Mysql
|
|
jgeorgiou author 5/7/2017 |
yes , i have used before ADD event |