Purchase order line is not creating and also not linking with Purchase requisition Line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-21-2024 02:45 AM
Hi SN Community,
Our requirement is after filling all the mandatory field in Purchase Requisition and purchase requisition line, will create Purchase order(sn_shop_purchase_order) and Purchase order line(sn_shop_purchase_order_line).
To create purchase order and purchase order line, I filled all the mandatory filled in Purchase Requisition and purchase line to create purchase order. After clicking on "create Purchase order" button in Purchase Requisition form, purchase order created but it is not showing in purchase requisition form. But it is showing in Purchase order Table and not creating purchase line form.
while checking log showing "null pointer exception". Same thing i tried in PDI it is working properly.
I have attached the sys_log pdf,
var count = new PurchaseRequisitionUtil(current).getOpenModificationRequestsCount();
if (count > 0) {
gs.addErrorMessage(gs.getMessage('This purchase requisition has an open procurement request pending. When the request is in a closed state, the purchase order can be created.'));
} else {
var orderId = new CreatePurchaseOrder(current).create();
//show success/failure banner
if (gs.nil(orderId))
gs.addErrorMessage(gs.getMessage('spend_purchase_order_creation_error'));
else
gs.addInfoMessage(
gs.getMessage('spend_purchase_order_creation_success',
PurchaseOrderUtil.getOrderDetailsPageLink(
new PurchaseOrder().getById(orderId)
)
)
);
}
action.setRedirectURL(current);
Root cause of JavaScriptException: java.lang.NullPointerException
: java.lang.NullPointerException:
Please let me know any further details required to resolve the issue. Thank You!