When ther is no SA, BillCodes are missing
Posted: Fri Oct 17, 2008 8:03 pm
I have a business object that is trying to return true/ false if BillCodes exists with amounts. The problem is when there is no Settlement Agent, the HudLines.BillCode Collection returns lines but without BillCodes assigned. I see the Amounts. I can assign the payee to another type but still it is still an empty collection. Invoice Item billcoeds work fine.Perhaps there is a good reason for this.
Does the setup below look ok? What should I expect?
public bool ExecuteImpl(
//InputParameterHandle<IBusinessObject[]> payee, //1 Collection of Payees
InputParameterHandle<decimal[]> payeeamounts, //0 Amounts
InputParameterHandle<BillCode[]> billCodeid, //1 The BillCode on HudLine
InputParameterHandle<decimal[]> InvoiceLineAmounts, //2 Amounts
InputParameterHandle<BillCode[]> InvoiceLineBillCode //3 The BillCode on HudLine
)
<Instance>
<Name>RuleBCAmt</Name>
<BusinessRule>BusRuleBCAmt</BusinessRule>
<BusinessObjectContext>Order</BusinessObjectContext>
<Persist>False</Persist>
<HideFromUser>True</HideFromUser>
<InputList>
<Input>
<Order>0</Order>
<Source>RootContext\HUDs\HudLines\Payees\Amount</Source>
</Input>
<Input>
<Order>1</Order>
<Source>RootContext\HUDs\HudLines\Payees\BillCodeID</Source>
</Input>
<Input>
<Order>2</Order>
<Source>Invoice\InvoiceLine\Amount</Source>
</Input>
<Input>
<Order>3</Order>
<Source>Invoice\InvoiceLine\BillCode</Source>
</Input>
</InputList>
</Instance>
Does the setup below look ok? What should I expect?
public bool ExecuteImpl(
//InputParameterHandle<IBusinessObject[]> payee, //1 Collection of Payees
InputParameterHandle<decimal[]> payeeamounts, //0 Amounts
InputParameterHandle<BillCode[]> billCodeid, //1 The BillCode on HudLine
InputParameterHandle<decimal[]> InvoiceLineAmounts, //2 Amounts
InputParameterHandle<BillCode[]> InvoiceLineBillCode //3 The BillCode on HudLine
)
<Instance>
<Name>RuleBCAmt</Name>
<BusinessRule>BusRuleBCAmt</BusinessRule>
<BusinessObjectContext>Order</BusinessObjectContext>
<Persist>False</Persist>
<HideFromUser>True</HideFromUser>
<InputList>
<Input>
<Order>0</Order>
<Source>RootContext\HUDs\HudLines\Payees\Amount</Source>
</Input>
<Input>
<Order>1</Order>
<Source>RootContext\HUDs\HudLines\Payees\BillCodeID</Source>
</Input>
<Input>
<Order>2</Order>
<Source>Invoice\InvoiceLine\Amount</Source>
</Input>
<Input>
<Order>3</Order>
<Source>Invoice\InvoiceLine\BillCode</Source>
</Input>
</InputList>
</Instance>