Hello IFSers
This is an Apps9 problem. I have an event & event action to create a Man Supp Invoice. I’m struggling with the Posting Proposal (PP). The debug tool doesn’t seem to reference it at all!
I’ve had to guess and have created the Invoice and PP header thus:
ifsapp.MAN_SUPP_INVOICE_API.NEW__(v_info,v_objid,v_objversion,attr_,'DO');
ifsapp.MAN_SUPP_INVOICE_ITEM_API.NEW__(v_info,v_objid,v_objversion,attr_,'DO');
ifsapp.Posting_Proposal_Head_API.New__(v_info,v_objid,v_objversion,attr_,'DO');
..but this last step errors:
ifsapp.Posting_Prop_Inv_Item_UTIL_API.New__(v_info,v_objid,v_objversion,attr_,'DO');
with :
This is how I build attr_:
Client_SYS.Clear_Attr(Attr_);
--
Client_SYS.Add_To_Attr('COMPANY' , v_company , Attr_);
Client_SYS.Add_To_Attr('PARTY_TYPE' , 'Supplier' , Attr_);
Client_SYS.Add_To_Attr('IDENTITY' , 'AP0000' , Attr_);
Client_SYS.Add_To_Attr('INVOICE_ID' , v_invoice_id , Attr_);
Client_SYS.Add_To_Attr('ITEM_ID' , '1' , Attr_);
Client_SYS.Add_To_Attr('VAT_CODE' , 'S' , Attr_);
Client_SYS.Add_To_Attr('GROSS_AMOUNT' , v_gross_curr_amount , Attr_);
Client_SYS.Add_To_Attr('ACTUAL_NET_CURR_AMOUNT' , v_actual_net_curr_amount , Attr_);
Client_SYS.Add_To_Attr('NET_CURR_AMOUNT' , v_net_curr_amount , Attr_);
Client_SYS.Add_To_Attr('VAT_CURR_AMOUNT' , v_vat_curr_amount , Attr_);
Client_SYS.Add_To_Attr('NON_DEDUCT_TAX_CURR_AMOUNT' , v_non_deductible_tax_amount , Attr_);
Client_SYS.Add_To_Attr('TOTAL_TAX_CURR_AMOUNT' , v_total_tax_amount , Attr_);
Client_SYS.Add_To_Attr('MULTIPLE_TAX' , 'FALSE' , Attr_);
Client_SYS.Add_To_Attr('REFERENCE' , 1 , Attr_);
--
Any thoughts? Am I using the wrong API? and should I use Posting_Prop_Auth_Util_API for the “Cost Auth” data?
Or is it the Posting Proposal Header:
Client_SYS.Clear_Attr(Attr_);
--
Client_SYS.Add_To_Attr('COMPANY', v_company, Attr_);
Client_SYS.Add_To_Attr('INVOICE_ID', v_invoice_id, Attr_);
Client_SYS.Add_To_Attr('DIV_FACTOR', 1, Attr_);
Client_SYS.Add_To_Attr('OPTIONAL_CODE', 'S', Attr_);
Client_SYS.Add_To_Attr('CURR_CODE', v_currency, Attr_);
Client_SYS.Add_To_Attr('AUTHORIZER_EXIST', 'TRUE', Attr_);
Client_SYS.Add_To_Attr('DISTRIBUTED_PREPOSTINGS', 'FALSE', Attr_);
Client_SYS.Add_To_Attr('UNIT_CHARGE', 'FALSE', Attr_);
Client_SYS.Add_To_Attr('ADD_INTERNAL', 'FALSE', Attr_);
Client_SYS.Add_To_Attr('INVOICE_RECIPIENT', v_invoice_recipient, Attr_);
Client_SYS.Add_To_Attr('PRICE_ADJUSTMENT', 'FALSE', Attr_);
Client_SYS.Add_To_Attr('REFERENCE', 'MANUAL', Attr_);
Client_SYS.Add_To_Attr('POSTING_TYPE', 'MANUAL', Attr_);
Client_SYS.Add_To_Attr('PROPOSAL_ID', 1, Attr_);
Client_SYS.Add_To_Attr('ROW_ID', 1, Attr_);
Client_SYS.Add_To_Attr('VOUCHER_COMPANY', v_company, Attr_);
Client_SYS.Add_To_Attr('TEXT', 'One Off Vendors', Attr_);
Client_SYS.Add_To_Attr('WAITING_STATE', 'FALSE', Attr_);
Client_SYS.Add_To_Attr('WRONG_AUTHORIZER', 'FALSE', Attr_);
Tim