moduleQuickbooksmoduleModelclassPurchaseOrder<BaseModelincludeGlobalTaxCalculationincludeHasLineItems#== ConstantsREST_RESOURCE='purchaseorder'XML_COLLECTION_NODE="PurchaseOrder"XML_NODE="PurchaseOrder"MINORVERSION=45xml_accessor:id,:from=>'Id'xml_accessor:sync_token,:from=>'SyncToken',:as=>Integerxml_accessor:meta_data,:from=>'MetaData',:as=>MetaDataxml_accessor:doc_number,:from=>'DocNumber'xml_accessor:txn_date,:from=>'TxnDate',:as=>Datexml_accessor:custom_fields,:from=>'CustomField',:as=>[CustomField]xml_accessor:private_note,:from=>'PrivateNote'xml_accessor:memo,:from=>'Memo'xml_accessor:linked_transactions,:from=>'LinkedTxn',:as=>[LinkedTransaction]xml_accessor:line_items,:from=>'Line',:as=>[PurchaseLineItem]xml_accessor:attachable_ref,:from=>'AttachableRef',:as=>BaseReferencexml_accessor:vendor_ref,:from=>'VendorRef',:as=>BaseReferencexml_accessor:ap_account_ref,:from=>'APAccountRef',:as=>BaseReferencexml_accessor:class_ref,:from=>'ClassRef',:as=>BaseReferencexml_accessor:sales_term_ref,:from=>'SalesTermRef',:as=>BaseReferencexml_accessor:total,:from=>'TotalAmt',:as=>BigDecimal,:to_xml=>Proc.new{|val|val.to_f}xml_accessor:due_date,:from=>'DueDate',:as=>Datexml_accessor:vendor_address,:from=>'VendorAddr',:as=>PhysicalAddressxml_accessor:ship_address,:from=>'ShipAddr',:as=>PhysicalAddressxml_accessor:ship_method_ref,:from=>'ShipMethodRef',:as=>BaseReferencexml_accessor:po_status,:from=>'POStatus'xml_accessor:txn_tax_detail,:from=>'TxnTaxDetail',:as=>TransactionTaxDetailxml_accessor:currency_ref,:from=>'CurrencyRef',:as=>BaseReferencexml_accessor:exchange_rate,:from=>'ExchangeRate',:as=>BigDecimal,:to_xml=>to_xml_big_decimalxml_accessor:tax_code_ref,:from=>'TaxCodeRef',:as=>BaseReferencereference_setters#== This adds aliases for backwards compatability to old attributes namesalias_method:total_amount,:totalalias_method:total_amount=,:total=endendend