Can someone share an example showing how to insert an Invoice using the action "Add Invoice" through the API.
I'm really out of clues, this code is what I have tried out already, but unsuccessfully (orginally posted by Serg Rogovtsev modified to fit AddInvoice popup parameters):
SO301000result = context.SO301000Submit(
new Command[]
{
new Value { Value = "SO", LinkedCommand = SO301000.OrderSummary.OrderType },
new Value { Value = ordNum, LinkedCommand = SO301000.OrderSummary.OrderNbr },
//popup window
new Value { Value = "OK", LinkedCommand = SO301000.AddInvoiceDetailsDocType.DialogAnswer, Commit = true },
new Value { Value = "OK", LinkedCommand = SO301000..AddInvoiceDetails.DialogAnswer, Commit = true },
new Value { Value = "Invoice", LinkedCommand = SO301000.AddInvoiceDetailsDocType.DocType },
new Value { Value = "C0000155", LinkedCommand = SO301000.AddInvoiceDetailsDocType.RefNbr, Commit = true },
new Key { Value = "='CPU00004'", FieldName = SO301000.AddInvoiceDetails.InventoryID_, ObjectName = SO301000.AddInvoiceDetails.InventoryID.ObjectName },
new Value { Value = "True", LinkedCommand = SO301000.AddInvoiceDetails.Selected, Commit = true },
SO301000.Actions.Save
}
);
Aucun commentaire:
Enregistrer un commentaire