on 04-13-2016 8:07 AM
hello,
I extension the purchaseorder, I want to gain the event when i choose from item 1 to item 2, which event when puchaseorder's item has been changed?
it is not item Event: AfterModify.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bin,
You can access item elements in Root-> Item -> ABSL.
There are two ways.
1. you can update all item from Root level
Root-> ABSL (aftermodidy or beforesave)
foreach(var item in this.Item)
{
item.extField ="test";
}
2. you can update one item at a time in Item level
Root->Item->ABSL (aftermodify or beforesave)
this.extField ="test";
Best Regards,
Fred
Hi Fred,
This is purchaseorder display screen, can display the order and item.
But the item can't display the delivery quantity.
My objective is display the delivery quantity in the item.
So I extension the purchaseorder object, I don't know whether right or wrong? maybe wrong.
It can add code in object's event(aftermodify or beforesave), so I do it, query the delivery quantity, and set the value of the extension fields.
If edit the purchaseorder, it can sucessful to set the value of the extension fields.
But in the purchaseorder's good receipt, it can't activate the purchaseorder object's event. How can I do? Thanks.
Hi Bin,
I do not recommend this but you can try.
1. Extend Inbound Delivery and enhcance beforesave event
2. In beforesave, query PurchaseOrder-Item and assign extension fields with delivered quantity
FYI:
There is another Purchase Orders work center under Inbound Logistics.
There, you can un-hide Delivered Quantity in Item table using KUT (Adaptation Mode).
Best Regards,
Fred
Hi Bin,
Yes, that's why I do not recommend.
It is because of the Purchase Order status.
The Purchase Order instance you are trying to update is in "Read Only" mode.
Please check the second option.
There is another Purchase Orders work center under Inbound Logistics.
There, you can un-hide Delivered Quantity in Item table using KUT (Adaptation Mode).
Best Regards,
Fred
Hi Bin,
It should be Item-> Event AfterModify.
Is there any red dot on PurchaseOrdre.xbo and the script?
Please reactivate the script and the PurchaseOrder.xbo.
Best Regards,
Fred
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi Fred,
Now, in PurchaseOrder, I just can use the ListUnitPrice, it is not include the tax.
I extension the PurchaseOrdre object, i add the tax_price fields on it, the fields is ListUnitPrice + tax.
My objective: When the user type in ListUnitPrice, enter, the tax_price will calulate auto.
When the user type in tax_price, enter, the ListUnitPrice will calulate auto.
Two fields link, the user just type in one ,the other don't need type in.
User | Count |
---|---|
100 | |
11 | |
10 | |
6 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.