public static interface EditOrderPresenter.IView extends org.ctoolkit.gwt.client.view.IView<Order>
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(Product product,
TreeItemWithModel parentItem)
Adds and populates a row and tree item.
|
void |
lastInvoice(Invoice invoice)
Sets the invoice to be shown as a last issued invoice for this order.
|
void |
setBeginOnReadOnly(boolean readOnly)
Sets the order's Begin on date whether it's allowed to be edited by user or not.
|
void |
setDueDate(Date dueDate)
Sets order's due date (an issue date once placed at invoice).
|
void |
setNextBillingDate(Date next)
Sets the order's Next billing date, evaluated based on the current periodicity.
|
void |
setNumberOfDays(Integer days)
Sets the number of days to calculate due date.
|
void |
setStatus(Order.Status status)
Sets the current order status.
|
void |
update(Pricing pricing)
Updates the order's pricing (details and items) UI by recalculated price.
|
void lastInvoice(@Nullable Invoice invoice)
invoice - the last invoice if anyvoid update(@Nonnull Pricing pricing)
pricing - the recalculated pricevoid setBeginOnReadOnly(boolean readOnly)
readOnly - true to be read onlyvoid setNextBillingDate(@Nonnull Date next)
next - the next billing date to be setvoid setDueDate(@Nullable Date dueDate)
dueDate - the due date to be setvoid setNumberOfDays(@Nullable Integer days)
days - the number of days to be setvoid setStatus(@Nonnull Order.Status status)
status - the current status to be setvoid addItem(@Nonnull Product product, @Nonnull TreeItemWithModel parentItem)
product - the product as a source of pricing itemparentItem - the empty tree item as a parent item to be populated from given productCopyright © 2023. All rights reserved.