注文 : Public クラス
作成日: 2013/09/07 7:57:42
更新日: 2014/01/12 19:57:00
プロジェクト:
追加情報:
Order Model. Please do not set DocStatus and C_DocType_ID directly. They are set in the process() method. Use DocAction and C_DocTypeTarget_ID instead. <br /></p><p>@see http://sourceforge.net/tracker2/?func=detail&atid=879335&aid=2520591&group_id=176962<br /></p>
属性
Private static const long
  serialVersionUID
D詳細:
 
Private MOrderLine
  m_lines
D詳細:
ノート: Order Lines
Private MOrderTax
  m_taxes
D詳細:
ノート: Tax Lines
Private boolean
  m_forceCreation
D詳細:
ノート: Force Creation of order
Public static const String
  DocSubTypeSO_Standard
D詳細:
ノート: Sales Order Sub Type - SO
Public static const String
  DocSubTypeSO_Quotation
D詳細:
ノート: Sales Order Sub Type - OB
Public static const String
  DocSubTypeSO_Proposal
D詳細:
ノート: Sales Order Sub Type - ON
Public static const String
  DocSubTypeSO_Prepay
D詳細:
ノート: Sales Order Sub Type - PR
Public static const String
  DocSubTypeSO_POS
D詳細:
ノート: Sales Order Sub Type - WR
Public static const String
  DocSubTypeSO_Warehouse
D詳細:
ノート: Sales Order Sub Type - WP
Public static const String
  DocSubTypeSO_OnCredit
D詳細:
ノート: Sales Order Sub Type - WI
Public static const String
  DocSubTypeSO_RMA
D詳細:
ノート: Sales Order Sub Type - RM
Private String
  m_processMsg
D詳細:
ノート: Process Message
Private boolean
  m_justPrepared
D詳細:
ノート: Just Prepared Flag
Private static const String
  OrderLinesToAllocate
D詳細:
ノート: isComplete
操作
Public static
copyFrom( from: MOrder,
dateDoc: Timestamp,
C_DocTypeTarget_ID: int,
isSOTrx: boolean,
counter: boolean,
copyASI: boolean,
trxName: String,
):MOrder
詳細:
Sequential
ノート: Create new Order by copying<br /></p><p>@return Order<br /></p>
Public
MOrder( ctx: Properties,
C_Order_ID: int,
trxName: String,
):
詳細:
Sequential
ノート: Default Constructor
Public
MOrder( project: MProject,
IsSOTrx: boolean,
DocSubTypeSO: String,
):
詳細:
Sequential
ノート: Project Constructor
Public
MOrder( ctx: Properties,
rs: ResultSet,
trxName: String,
):
詳細:
Sequential
ノート: Load Constructor
Public
setClientOrg( AD_Client_ID: int,
AD_Org_ID: int,
):void
詳細:
Sequential
ノート: Overwrite Client/Org if required
Public
addDescription( description: String,
):void
詳細:
Sequential
ノート: Add to Description
Public
setC_BPartner_ID( C_BPartner_ID: int,
):void
詳細:
Sequential
ノート: Set Business Partner (Ship+Bill)
Public
setC_BPartner_Location_ID( C_BPartner_Location_ID: int,
):void
詳細:
Sequential
ノート: Set Business Partner Location (Ship+Bill)
Public
setAD_User_ID( AD_User_ID: int,
):void
詳細:
Sequential
ノート: Set Business Partner Contact (Ship+Bill)
Public
setShip_BPartner_ID( C_BPartner_ID: int,
):void
詳細:
Sequential
ノート: Set Ship Business Partner
Public
setShip_Location_ID( C_BPartner_Location_ID: int,
):void
詳細:
Sequential
ノート: Set Ship Business Partner Location
Public
setShip_User_ID( AD_User_ID: int,
):void
詳細:
Sequential
ノート: Set Ship Business Partner Contact
Public
setM_Warehouse_ID( M_Warehouse_ID: int,
):void
詳細:
Sequential
ノート: Set Warehouse
Public
setIsDropShip( IsDropShip: boolean,
):void
詳細:
Sequential
ノート: Set Drop Ship
Public
setC_DocTypeTarget_ID( DocSubTypeSO_x: String,
):void
詳細:
Sequential
ノート: Set Target Sales Document Type
Public
setC_DocTypeTarget_ID():void
詳細:
Sequential
ノート: Set Target Document Type. Standard Order or PO
Public
setBPartner( bp: MBPartner,
):void
詳細:
Sequential
ノート: Set Business Partner Defaults & Details. SOTrx should be set.
Public
copyLinesFrom( otherOrder: MOrder,
counter: boolean,
copyASI: boolean,
):int
詳細:
Sequential
ノート: Copy Lines From other Order<br /></p><p>@return number of lines copied<br /></p>
Public
toString():String
詳細:
Sequential
ノート: String Representation<br /></p><p>@return info<br /></p>
Public
getDocumentInfo():String
詳細:
Sequential
ノート: Get Document Info<br /></p><p>@return document info (untranslated)<br /></p>
Public
createPDF():File
詳細:
Sequential
ノート: Create PDF<br /></p><p>@return File or null<br /></p>
Public
createPDF( file: File,
):File
詳細:
Sequential
ノート: Create PDF file<br /></p><p>@return file if success<br /></p>
Public
setM_PriceList_ID( M_PriceList_ID: int,
):void
詳細:
Sequential
ノート: Set Price List (and Currency, TaxIncluded) when valid
Public
getLines( whereClause: String,
orderClause: String,
):MOrderLine
詳細:
Sequential
ノート: Get Lines of Order<br /></p><p>@return lines<br /></p>
Public
getLines( requery: boolean,
orderBy: String,
):MOrderLine
詳細:
Sequential
ノート: Get Lines of Order<br /></p><p>@return lines<br /></p>
Public
getLines():MOrderLine
詳細:
Sequential
ノート: Get Lines of Order. (used by web store)<br /></p><p>@return lines<br /></p>
Public
renumberLines( step: int,
):void
詳細:
Sequential
ノート: Renumber Lines
Public
isOrderLine( C_OrderLine_ID: int,
):boolean
詳細:
Sequential
ノート: Does the Order Line belong to this Order<br /></p><p>@return true if part of the order<br /></p>
Public
getTaxes( requery: boolean,
):MOrderTax
詳細:
Sequential
ノート: Get Taxes of Order<br /></p><p>@return array of taxes<br /></p>
Public
getInvoices():MInvoice
詳細:
Sequential
ノート: Get Invoices of Order<br /></p><p>@return invoices<br /></p>
Public
getC_Invoice_ID():int
詳細:
Sequential
ノート: Get latest Invoice of Order<br /></p><p>@return invoice id or 0<br /></p>
Public
getShipments():MInOut
詳細:
Sequential
ノート: Get Shipments of Order<br /></p><p>@return shipments<br /></p>
Public
getCurrencyISO():String
詳細:
Sequential
ノート: Get ISO Code of Currency<br /></p><p>@return Currency ISO<br /></p>
Public
getPrecision():int
詳細:
Sequential
ノート: Get Currency Precision<br /></p><p>@return precision<br /></p>
Public
getDocStatusName():String
詳細:
Sequential
ノート: Get Document Status<br /></p><p>@return Document Status Clear Text<br /></p>
Public
setDocAction( DocAction: String,
):void
詳細:
Sequential
ノート: Set DocAction
Public
setDocAction( DocAction: String,
forceCreation: boolean,
):void
詳細:
Sequential
ノート: Set DocAction
Public
setProcessed( processed: boolean,
):void
詳細:
Sequential
ノート: Set Processed. Propagate to Lines/Taxes
Public
validatePaySchedule():boolean
詳細:
Sequential
ノート: Validate Order Pay Schedule<br /></p><p>@return pay schedule is valid<br /></p>
Protected
beforeSave( newRecord: boolean,
):boolean
詳細:
Sequential
ノート: Before Save<br /></p><p>@return save<br /></p>
Protected
afterSave( newRecord: boolean,
success: boolean,
):boolean
詳細:
Sequential
ノート: After Save<br /></p><p>@return true if can be saved<br /></p>
Protected
beforeDelete():boolean
詳細:
Sequential
ノート: Before Delete<br /></p><p>@return true of it can be deleted<br /></p>
Public
processIt( processAction: String,
):boolean
詳細:
Sequential
ノート: Process document<br /></p><p>@return true if performed<br /></p>
Public
unlockIt():boolean
詳細:
Sequential
ノート: Unlock Document.<br /></p><p>@return true if success<br /></p>
Public
invalidateIt():boolean
詳細:
Sequential
ノート: Invalidate Document<br /></p><p>@return true if success<br /></p>
Public
prepareIt():String
詳細:
Sequential
ノート: Prepare Document<br /></p><p>@return new status (In Progress or Invalid)<br /></p>
Private
calculateFreightCharge():boolean
詳細:
Sequential
ノート: prepareIt
Private
explodeBOM():boolean
詳細:
Sequential
ノート: Explode non stocked BOM.<br /></p><p>@return true if bom exploded<br /></p>
Private
reserveStock( dt: MDocType,
lines: MOrderLine[],
):boolean
詳細:
Sequential
ノート: Reserve Inventory. Counterpart: MInOut.completeIt()<br /></p><p>@return true if (un) reserved<br /></p>
Public
calculateTaxTotal():boolean
詳細:
Sequential
ノート: Calculate Tax and Total<br /></p><p>@return true if tax total calculated<br /></p>
Private
createPaySchedule():boolean
詳細:
Sequential
ノート: (Re) Create Pay Schedule<br /></p><p>@return true if valid schedule<br /></p>
Public
approveIt():boolean
詳細:
Sequential
ノート: Approve Document<br /></p><p>@return true if success<br /></p>
Public
rejectIt():boolean
詳細:
Sequential
ノート: Reject Approval<br /></p><p>@return true if success<br /></p>
Public
completeIt():String
詳細:
Sequential
ノート: Complete Document<br /></p><p>@return new status (Complete, In Progress, Invalid, Waiting ..)<br /></p>
Private
createPOSPayments():String
詳細:
Sequential
Private
setDefiniteDocumentNo():void
詳細:
Sequential
ノート: Set the definite document number after completed
Private
createShipment( dt: MDocType,
movementDate: Timestamp,
):MInOut
詳細:
Sequential
ノート: Create Shipment<br /></p><p>@return shipment or null<br /></p>
Private
createInvoice( dt: MDocType,
shipment: MInOut,
invoiceDate: Timestamp,
):MInvoice
詳細:
Sequential
ノート: Create Invoice<br /></p><p>@return invoice or null<br /></p>
Private
createCounterDoc():MOrder
詳細:
Sequential
ノート: Create Counter Document<br /></p><p>@return counter order<br /></p>
Public
voidIt():boolean
詳細:
Sequential
ノート: Void Document. Set Qtys to 0 - Sales: reverse all documents<br /></p><p>@return true if success<br /></p>
Private
createReversals():boolean
詳細:
Sequential
ノート: Create Shipment/Invoice Reversals<br /></p><p>@return true if success<br /></p>
Public
closeIt():boolean
詳細:
Sequential
ノート: Close Document. Cancel not delivered Qunatities<br /></p><p>@return true if success<br /></p>
Public
reopenIt():String
詳細:
Sequential
ノート: @author: phib re-open a closed order (reverse steps of close())
Public
reverseCorrectIt():boolean
詳細:
Sequential
ノート: Reverse Correction - same void<br /></p><p>@return true if success<br /></p>
Public
reverseAccrualIt():boolean
詳細:
Sequential
ノート: Reverse Accrual - none<br /></p><p>@return false<br /></p>
Public
reActivateIt():boolean
詳細:
Sequential
ノート: Re-activate.<br /></p><p>@return true if success<br /></p>
Public
getSummary():String
詳細:
Sequential
ノート: Get Summary<br /></p><p>@return Summary of Document<br /></p>
Public
getProcessMsg():String
詳細:
Sequential
ノート: Get Process Message<br /></p><p>@return clear text error message<br /></p>
Public
getDoc_User_ID():int
詳細:
Sequential
ノート: Get Document Owner (Responsible)<br /></p><p>@return AD_User_ID<br /></p>
Public
getApprovalAmt():BigDecimal
詳細:
Sequential
ノート: Get Document Approval Amount<br /></p><p>@return amount<br /></p>
Private
deleteMatchPOCostDetail( line: MOrderLine,
):String
詳細:
Sequential
ノート: AZ Goodwill
Public
isComplete():boolean
詳細:
Sequential
ノート: Document Status is Complete or Closed<br /></p><p>@return true if CO, CL or RE<br /></p>
Public static
getOrderLinesToAllocate( conn: Connection,
productId: int,
trxName: String,
):List<MOrderLine>
詳細:
Sequential <<property get>>
タグ: attribute_name=OrderLinesToAllocate
throws=SQLException
ノート: Finds all order lines that contains not yet delivered physical items of a specific product. <br /></p><p>@return  Order lines to allocate products to.<br /></p>
Public static
getProductsToAllocate( conn: Connection,
WarehouseID: int,
):List<StockInfo>
詳細:
Sequential
タグ: throws=SQLException
ノート: Finds all products that can be allocated. A product can be allocated if there are more items on hand than what is already allocated. To be allocated the item must also be in demand (reserved < allocated) <br /></p><p>@return<br /></p>
要素 ソースの役割 ターゲットの役割
MOrderLine
クラス  
名前:  
 
名前: m_lines
 
詳細:
 
MOrderTax
クラス  
名前:  
 
名前: m_taxes
 
詳細:
 
要素 ソースの役割 ターゲットの役割
CreateFrom
クラス  
名前:  
 
名前: p_order
 
詳細:
 
MOrderLine
クラス  
名前:  
 
名前: m_parent
 
詳細:
 
MOrderPaySchedule
クラス  
名前:  
 
名前: m_parent
 
詳細:
 
DistributionCreate
クラス  
名前:  
 
名前: m_singleOrder
 
詳細:
 
ExpenseSOrder
クラス  
名前:  
 
名前: m_order
 
詳細:
 
RequisitionPOCreate
クラス  
名前:  
 
名前: m_order
 
詳細:
 
WebOrder
クラス  
名前:  
 
名前: m_order
 
詳細:
 
要素 種類 接続 方向 ノート
PromotionRule Class 依存 From  
PromotionValidator Class 依存 From  
SalesOrderRateInquiryProcess Class 依存 From  
Doc_Order Class 依存 From  
MCashLine Class 依存 From  
MInOut Class 依存 From  
MInvoice Class 依存 From  
X_C_Order Class 汎化 To  
DocAction Interface 実現 To  
MInvoice Class 依存 To  
MInOut Class 依存 To  
MDocType Class 依存 To  
MBPartner Class 依存 To  
MProject Class 依存 To  
MPaymentTerm Class 依存 From  
MRMA Class 依存 From  
PosOrderModel Class 汎化 From  
InOutGenerate Class 依存 From  
InvoiceGenerate Class 依存 From  
OrderBatchProcess Class 依存 From  
OrderPOCreate Class 依存 From  
WebInfo Class 依存 From  
OrderServlet Class 依存 From  
InventoryUtil Class 依存 From