Добрый день!
Подскажите, где (в каком месте) заполняется параметр БП [#Id созданного счета#] в БП CreateInvoice?
В этот параметр попадает Id вновь созданного счета, на каком этапе, не могу понять, помогите разобраться
Нравится
2 комментария
Лучший ответ
17 апреля 2019 15:24
Заполняется в методе CreateInvoice БП CreateInvoiceFromOrder
public virtual void CreateInvoice() {
OrderInvoiceHelper helper = Factories.ClassFactory.Get<OrderInvoiceHelper>(new Factories.ConstructorArgument("userConnection", UserConnection));
CreatedInvoiceId = helper.CreateEntity("Order", "Invoice", CurrentOrder, new Dictionary<string, string> {
{"Currency", "Currency"},
{"CurrencyRate", "CurrencyRate"},
{"Contact", "Contact"},
{"Account", "Account"},
{"Owner", "Owner"},
{"Amount", "Amount"},
{"Opportunity", "Opportunity"}
}, new Dictionary<string, object> { { "Order", CurrentOrder } });
}
17 апреля 2019 15:24
Заполняется в методе CreateInvoice БП CreateInvoiceFromOrder
public virtual void CreateInvoice() {
OrderInvoiceHelper helper = Factories.ClassFactory.Get<OrderInvoiceHelper>(new Factories.ConstructorArgument("userConnection", UserConnection));
CreatedInvoiceId = helper.CreateEntity("Order", "Invoice", CurrentOrder, new Dictionary<string, string> {
{"Currency", "Currency"},
{"CurrencyRate", "CurrencyRate"},
{"Contact", "Contact"},
{"Account", "Account"},
{"Owner", "Owner"},
{"Amount", "Amount"},
{"Opportunity", "Opportunity"}
}, new Dictionary<string, object> { { "Order", CurrentOrder } });
}
Показать все комментарии
Войдите или зарегистрируйтесь, что бы комментировать