Report Script: Create a Packing List in report script: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1:
==Introduction==
This tutorial shows how to add a text which displays packing that is based on largest UOM to smallest UOM with report scripting.<br/>
Does not take in consideration of area and customer.
 
==Product==
AutoCount Accounting 1.8 / 1.9
Applicable to AutoCount Accounting 2.0
 
{{SourceDownload|link=https://drive.google.com/open?id=1u10Aq8PnC4hYMbOYs_uMnXb3U_i4xrNq11uJzctlWBNC6YQ1Z8rdWgNPgAxZ4N_ZO|remark=(AutoCount Accounting 2.0)|Download Report Template|GetPacking Fieldin thatDelivery is not inDetail reportListing.}}
[[File:Prog PickList.PackUOM.png|link=]]<br />
 
Line 33 ⟶ 35:
#Add function of '''GetUOMFromItem'''
#Add function of '''FormatCurrentUomResult'''<br/><br/>
#Add a new Label ontointo Detailexisting bandGroup of Detail ReportHeader
#:Bind the calcProjDesc to this new label
which the DataMember is "AR Invoice Master.AR Invoice Detail"
#:Drag calcPacking from '''1 Main Data: Delivery Order Master''' in Field List onto the new label
Bind the calcProjDesc to this new label
#Click Preview tab to see the result
Drag calcProjDesc from AR Invoice Detail (table) in Field List onto the designer
Click Preview tab to see the result
<syntaxhighlight lang="csharp">
private void calcPacking_GetValue(object sender, DevExpress.XtraReports.UI.GetValueEventArgs e)