<?xml version="1.0" encoding="utf-8"?>
<ManualTopic ID="/baanerp/td/onlinemanual/000403" xml:lang="zh-cn">
	<Header>
		<Title xmlns:HTML="http://www.w3.org/TR/REC-html40">销售订单行和交货行之间的同步</Title>
		<Keyword ContextSensitive="No"><Level1>同步</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>销售订单行</Level1>
		</Keyword>
		<Keyword ContextSensitive="No"><Level1>交货行</Level1>
		</Keyword>
	</Header>
	<AimSection><Paragraph class="Default">销售订单行和外部订单行（来自其它产品的订单行）之间可以存在直接连接。销售订单行可以与交货行相链接。</Paragraph>
		<List><ListIntro>交货行可以是：</ListIntro>
			<ListItem>分割销售订单行。</ListItem>
			<ListItem>延交订单行。</ListItem>
		</List>
		<Paragraph class="Default">对于每个交货行，还可以链接延交订单行。销售订单行保留来自交货行的汇总信息。销售订单行是与外部产品连接的订单行。因此，要在订单行上显示正确的信息，交货行要与销售订单行同步，反之亦然。例如，当您在外部订单行上更新价格之后，ERP 会更新销售订单行和链接的交货行上的价格。</Paragraph>
	</AimSection>
	<GeneralSection><Paragraph class="Default">可以将外部产品的订单行（例如 CRM 产品）与<GUIRef href="/baanerp/td" role="package">订单管理子系统</GUIRef>中的销售订单行同步。在外部订单行上，用户可以查看多个订单行字段，但是只能更新几个字段。对外部订单行字段的更改反映在 ERP LN 的销售订单行上，并被传递到链接的交货行。</Paragraph>
		<List><ListIntro>如果修改外部订单行上的下列字段，更改也会被传递到 ERP LN 中的销售订单行：</ListIntro>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.pric" role="manual">价格</GUIRef>。</ListItem>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.cups" role="manual" Update="No">销售价格单位</GUIRef>。</ListItem>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.ldam" role="manual">折扣金额</GUIRef>。</ListItem>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.qoor" role="manual">订货数量 </GUIRef>。</ListItem>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.cuqs" role="manual" Update="No">销售单位</GUIRef>。</ListItem>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.ddta" role="manual">计划交货日期</GUIRef>。</ListItem>
			<ListItem><GUIRef href="/baanerp/td/sls/tdsls4101m000#tdsls401.prdt" role="manual">计划收货日期</GUIRef>。</ListItem>
		</List>
		<GeneralSection><SectionTitle>触发同步流程的字段</SectionTitle>
			<Paragraph class="Default">对销售订单行和/或交货行上的下列字段的更改可以触发同步操作：</Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigCaption>日期字段</FigCaption>
				<FigLegend><LegendEntry><Symbol>ddta</Symbol>
						<Desc>计划交货日期</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>prdt</Symbol>
						<Desc>计划收货日期</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>rdta</Symbol>
						<Desc>下达日期</Desc>
					</LegendEntry>
				</FigLegend>
			</Figure>
			<Figure space-and-orientation="indented-estimated"><FigCaption>数量字段</FigCaption>
				<FigLegend><LegendEntry><Symbol>qrrq</Symbol>
						<Desc>订购数量</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>qidl</Symbol>
						<Desc>送货数量</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>qbbo</Symbol>
						<Desc>延交订单数量</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>qicm</Symbol>
						<Desc>承诺数量</Desc>
					</LegendEntry>
				</FigLegend>
			</Figure>
			<Figure space-and-orientation="indented-estimated"><FigCaption>价格和折扣字段</FigCaption>
				<FigLegend><LegendEntry><Symbol>pric</Symbol>
						<Desc>价格</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>disc</Symbol>
						<Desc>折扣百分比</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>ldam</Symbol>
						<Desc>折扣金额</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>dmse</Symbol>
						<Desc>折扣矩阵顺序</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>dmde</Symbol>
						<Desc>折扣矩阵定义</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>dmth</Symbol>
						<Desc>折扣方法</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>dmty</Symbol>
						<Desc>折扣矩阵类型</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>cdis</Symbol>
						<Desc>折扣</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>dtrm</Symbol>
						<Desc>确定</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>elgb</Symbol>
						<Desc>适用</Desc>
					</LegendEntry>
				</FigLegend>
			</Figure>
			<Figure space-and-orientation="indented-estimated"><FigCaption>金额字段</FigCaption>
				<FigLegend><LegendEntry><Symbol>oamt</Symbol>
						<Desc>金额</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>amld</Symbol>
						<Desc>折扣总额</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>amod</Symbol>
						<Desc>订单折扣</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>damt</Symbol>
						<Desc>已交货金额</Desc>
					</LegendEntry>
					<LegendEntry><Symbol>fram</Symbol>
						<Desc>货运金额</Desc>
					</LegendEntry>
				</FigLegend>
			</Figure>
			<Paragraph class="Default"></Paragraph>
			<Figure space-and-orientation="indented-estimated"><FigIntro>包括方向和字段在内的同步流程如下图所示。</FigIntro>
				<HTML:IMG height="557" width="435" SRC="../images/synchronization.gif" alt="[...]" xmlns:HTML="http://www.w3.org/TR/REC-html40"/></Figure>
			<Note><SectionTitle>
                                 注意
                              </SectionTitle>
				<Paragraph class="Default">在某些情况下，由于字段关系和相关性的原因，会应用多方向的同步。例如，对销售订单行上价格字段的更新可以触发将价格同步到交货行。然后，该同步可以触发金额字段的重新计算，之后，这些字段会重新与销售订单行同步。</Paragraph>
			</Note>
			<Paragraph class="Default">同步字段和字段相关性如下表所示：</Paragraph>
			<TABLE border="1" borderstyle="default" space-and-orientation="indented-estimated"><TBODY><TR valign="middle">
						<TD valign="middle" width="103" rowspan="2" colspan="1">相关字段</TD>
						<TD colspan="17" valign="middle" width="504" rowspan="1">更改的字段</TD>
					</TR>
					<TR><TD width="20" rowspan="1" colspan="1">qrrq</TD>
						<TD rowspan="1" colspan="1">qidl</TD>
						<TD rowspan="1" colspan="1">prdt</TD>
						<TD rowspan="1" colspan="1">ddta</TD>
						<TD rowspan="1" colspan="1">oamt</TD>
						<TD rowspan="1" colspan="1">amld</TD>
						<TD rowspan="1" colspan="1">damt</TD>
						<TD rowspan="1" colspan="1">pric</TD>
						<TD rowspan="1" colspan="1">ldam</TD>
						<TD rowspan="1" colspan="1">disc</TD>
						<TD rowspan="1" colspan="1">dmde</TD>
						<TD rowspan="1" colspan="1">dmse</TD>
						<TD rowspan="1" colspan="1">dmth</TD>
						<TD rowspan="1" colspan="1">dmty</TD>
						<TD rowspan="1" colspan="1">cdis</TD>
						<TD rowspan="1" colspan="1">cuqs</TD>
						<TD rowspan="1" colspan="1">cups</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">qicm</TD>
						<TD width="20" rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">qbbo</TD>
						<TD width="20" rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">ddta</TD>
						<TD width="20" rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">oamt</TD>
						<TD width="20" rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">amod</TD>
						<TD width="20" rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">amld</TD>
						<TD width="20" rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">damt</TD>
						<TD width="20" rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">pric</TD>
						<TD width="20" rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">ldam</TD>
						<TD width="20" rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
					<TR><TD width="103" rowspan="1" colspan="1">disc</TD>
						<TD width="20" rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">-</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">X</TD>
						<TD rowspan="1" colspan="1">-</TD>
					</TR>
				</TBODY>
			</TABLE>
			<Note><SectionTitle>
                                 注意
                              </SectionTitle>
				<Paragraph class="Default">对销售订单行上某个字段的更改并不始终可以直接在交货行上看到。这是因为，商业数据（例如价格、折扣、金额等）仅在销售订单行上可见。后勤数据（例如交货时间、交货地点等）仅在交货行上可见。因此，销售订单行保留链接的交货行的汇总商业信息（这些信息分布在交货行上），但是，由于交货行仅保留后勤数据，因此在交货行上看不到这些商业信息。但是，如果将一个交货行下达到<GUIRef href="/baanerp/ci" role="package">统一开票子系统</GUIRef>，ERP LN 会使用该交货行的不可见商业数据，因为不能直接对链接了交货行的销售订单行开发票。</Paragraph>
			</Note>
		</GeneralSection>
	</GeneralSection>
	<RelatedTopics><SectionTitle>
                           相关主题
                        </SectionTitle>
		<RelTopic><Link href="/baanerp/td/onlinemanual/000404" role="manual">同步规则</Link>
		</RelTopic>
	</RelatedTopics>
</ManualTopic>
