Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- CREATE SERVICE FIND -->
- <service name="findSalesOrderByBrandById" output="outputDto">
- <informations>
- <description>Find Sales Order By Brand By Id</description>
- <info-in>
- <info name="result.header.userLoginId" description="user login id" type="Long" />
- <info name="result.header.roleLoginId" description="role login id" type="Long" />
- <info name="result.header.tenantLoginId" description="tenant login id" type="Long" />
- <info name="result.header.datetime" description="datetime" type="String" />
- <info name="result.header.sessionId" description="session id" type="String" />
- <info name="result.header.secureKey" description="secure key" type="String" />
- <info name="result.header.taskName" description="task name" type="String" />
- <info name="result.payload.id" description="so by brand id" type="Long" />
- </info-in>
- <info-out>
- <info name="result.id" description="so by brand id" type="Long" />
- <info name="result.tenantId" description="tenant id" type="Long" />
- <info name="result.docTypeId" description="Jenis transaksi" type="Long" />
- <info name="result.docNo" description="No Transaksi" type="String" />
- <info name="result.docDate" description="Tanggal Transaksi" type="String" />
- <info name="result.ouId" description="Organisasi Unit id" type="Long" />
- <info name="result.extDocNo" description="external document no" type="String" />
- <info name="result.extDocDate" description="external document date" type="String" />
- <info name="result.refDocTypeId" description="ref doc type id" type="Long" />
- <info name="result.refId" description="ref id" type="Long" />
- <info name="result.remark" description="remark" type="String" />
- <info name="result.partnerId" description="partner / customer id" type="Long" />
- <info name="result.partnerCpId" description="partner / customer contact person id" type="Long" />
- <info name="result.partnerBillToId" description="partner bill to id" type="Long" />
- <info name="result.partnerShipToId" description="partner ship to id" type="Long" />
- <info name="result.partnerShipAddressId" description="partner ship address id" type="Long" />
- <info name="result.dueDate" description="due date" type="String" />
- <info name="result.salesmanId" description="salesman id" type="Long" />
- <info name="result.flgDelivery" description="flag delivery (pick up or deliver)" type="String" />
- <info name="result.currCode" description="currency code" type="String" />
- <info name="result.addDiscountPercentage" description="add discount percentage" type="Double" />
- <info name="result.addDiscountAmount" description="add discount amount" type="Double" />
- <info name="result.statusDoc" description="status dokumen" type="String" />
- <info name="result.workflowStatus" description="status dokumen" type="String" />
- <info name="result.version" description="version" type="Long" />
- <info name="result.payload.partnerShipCpId" description="partner ship cp id" type="Long" />
- <info name="result.payload.partnerShipCpName" description="partner ship cp name" type="String" />
- <info name="result.payload.partnerShipCpPhone1" description="partner ship cp phone 1" type="String" />
- <info name="result.payload.partnerShipCpPhone2" description="partner ship cp phone 2" type="String" />
- <info name="result.payload.flgWorkOrder" description="Flg work order" type="String" />
- <info name="result.payload.flgTopType" description="Flg top type" type="String" />
- <info name="result.payload.flgShowInvTax" description="Flg Show Inv Tax" type="String" />
- <info name="result.ouCode" description="Organisasi Unit code" type="String" />
- <info name="result.ouName" description="Organisasi Unit name" type="String" />
- <info name="result.partnerCode" description="partner code" type="String" />
- <info name="result.partnerName" description="partner name" type="String" />
- <info name="result.partnerCpName" description="partner CP Name" type="String" />
- <info name="result.partnerCpJob" description="partner CP job" type="String" />
- <info name="result.partnerShipToCode" description="partner ship to code" type="String" />
- <info name="result.partnerShipToName" description="partner ship to name" type="String" />
- <info name="result.partnerBillToCode" description="partner Bill to code" type="String" />
- <info name="result.partnerBillToName" description="partner Bill to name" type="String" />
- <info name="result.partnerShipAddressDesc" description="partner ship address description" type="String" />
- <info name="result.salesmanCode" description="salesman code" type="String" />
- <info name="result.salesmanName" description="salesman name" type="String" />
- <info name="result.createDatetime" description="create datetime" type="String" />
- <info name="result.createUserId" description="create user id" type="Long" />
- <info name="result.updateDatetime" description="update datetime" type="String" />
- <info name="result.updateUserId" description="update user id" type="Long" />
- <info name="result.salesOrderDetailBrandList" description="salesOrderDetailBrandList" type="List" />
- <info name="result.salesOrderDetailItemList" description="salesOrderDetailItemList" type="List" />
- <info name="result.salesOrderInfoList" description="salesOrderInfoList" type="List" />
- <info name="result.salesOrderFinanceList" description="salesOrderFinanceList" type="List" />
- <info name="result.summaryTaxList" description="summaryTaxList" type="List" />
- <info name="result.totalBrandItem" type="Long" description="total brand item" />
- <info name="result.totalBrandItemAmount" type="Double" description="total brand item amount" />
- <info name="result.totalTaxAmount" type="Double" description="total tax amount" />
- <info name="result.grandTotal" type="Double" description="grand total" />
- <info name="result.currCode" type="String" description="curr code" />
- <info name="result.currPropKey" type="String" description="curr propkey" />
- <info name="result.flgPkp" type="String" description="flg pkp" />
- <info name="result.custPaymentDuePaymentDays" type="Long" description="cust payment due payment days" />
- <info name="result.regularDiscountPercentage" type="Double" description="regular discount percentage" />
- </info-out>
- </informations>
- <mod-dto output="inputDto">
- <key name="id" type="Long" from="${result.payload.id}" />
- </mod-dto>
- <call-bf name="findSalesOrderById" input="${inputDto}" output="outputDto">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindPartnerById">
- <key name="id" type="Long" from="${outputDto.partnerId}" />
- </mod-dto>
- <call-bf name="findPartnerById" input="${inputDtoForFindPartnerById}" output="outputDtoForFindPartnerById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindPartnerCpById">
- <key name="id" type="Long" from="${outputDto.partnerCpId}" />
- </mod-dto>
- <call-bf name="findPartnerCpById" input="${inputDtoForFindPartnerCpById}" output="outputDtoForFindPartnerCpById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindPartnerShipToById">
- <key name="id" type="Long" from="${outputDto.partnerShipToId}" />
- </mod-dto>
- <call-bf name="findPartnerById" input="${inputDtoForFindPartnerShipToById}" output="outputDtoForFindPartnerShipToById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindPartnerBillToById">
- <key name="id" type="Long" from="${outputDto.partnerBillToId}" />
- </mod-dto>
- <call-bf name="findPartnerById" input="${inputDtoForFindPartnerBillToById}" output="outputDtoForFindPartnerBillToById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindPartnerAddressById">
- <key name="id" type="Long" from="${outputDto.partnerShipAddressId}" />
- </mod-dto>
- <call-bf name="findPartnerAddressById" input="${inputDtoForFindPartnerAddressById}" output="outputDtoForFindPartnerAddressById">
- <onsuccess />
- <onerror />
- </call-bf>
- <conditional>
- <case expression="${outputDto.salesmanId} != -99 ">
- <mod-dto output="inputDtoForFindSalesmanById">
- <key name="id" type="Long" from="${outputDto.salesmanId}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="findSalesmanById" input="${inputDtoForFindSalesmanById}" output="outputDtoForFindSalesmanById">
- <onsuccess />
- <onerror />
- </call-bf>
- </case>
- <default>
- <mod-dto output="outputDtoForFindSalesmanById">
- <key name="salesmanCode" type="String" from="" />
- <key name="salesmanName" type="String" from="" />
- </mod-dto>
- </default>
- </conditional>
- <mod-dto output="inputDtoGetDetailBrand">
- <key name="soId" type="Long" from="${outputDto.id}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="getSalesOrderDetailBrandListBySalesOrder" input="${inputDtoGetDetailBrand}" output="outputDtoGetDetailBrand">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoGetDetailItem">
- <key name="soId" type="Long" from="${outputDto.id}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="getSalesOrderDetailItemListBySalesOrder" input="${inputDtoGetDetailItem}" output="outputDtoGetDetailItem">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoGetSOInfo">
- <key name="soId" type="Long" from="${outputDto.id}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="getSalesOrderInfoListBySalesOrder" input="${inputDtoGetSOInfo}" output="outputDtoGetSOInfo">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoGetSOFinance">
- <key name="soId" type="Long" from="${outputDto.id}" />
- <key name="tenantLoginId" type="Long" from="${result.header.tenantLoginId}" />
- <key name="userLoginId" type="Long" from="${result.header.userLoginId}" />
- <key name="roleLoginId" type="Long" from="${result.header.roleLoginId}" />
- <key name="datetime" type="String" from="${result.header.datetime}" />
- </mod-dto>
- <call-bf name="getSalesOrderFinanceListBySalesOrder" input="${inputDtoGetSOFinance}" output="outputDtoGetSOFinance">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoGetSOSummaryTax">
- <key name="soId" type="Long" from="${outputDto.id}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="getSummarySalesOrderByBrandTaxList" input="${inputDtoGetSOSummaryTax}" output="outputDtoGetSOSummaryTax">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoGetSOSummary">
- <key name="soId" type="Long" from="${outputDto.id}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="findTotalSummarySalesOrderByBrand" input="${inputDtoGetSOSummary}" output="outputDtoGetSOSummary">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindOUById">
- <key name="id" type="Long" from="${outputDto.ouId}" />
- </mod-dto>
- <call-bf name="findOUById" input="${inputDtoForFindOUById}" output="outputDtoForFindOUById">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoForFindParentOUMainBuByOu">
- <key name="id" type="Long" from="${outputDtoForFindOUById.id}" />
- </mod-dto>
- <call-bf name="findParentOUMainBuByOu" input="${inputDtoForFindParentOUMainBuByOu}" output="outputDtoForFindParentOUMainBuByOu">
- <onsuccess />
- <onerror />
- </call-bf>
- <mod-dto output="inputDtoIsOULegalExistsByIndex">
- <key name="ouId" type="Long" from="${outputDtoForFindParentOUMainBuByOu.id}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="isOULegalExistsByIndex" input="${inputDtoIsOULegalExistsByIndex}" output="outputDtoIsOULegalExistsByIndex">
- <onsuccess />
- <onerror />
- </call-bf>
- <conditional>
- <case expression="${outputDtoIsOULegalExistsByIndex.exists}">
- <mod-dto output="outputDto">
- <key name="flgPkp" type="String" from="${outputDtoIsOULegalExistsByIndex.ouLegalDto.flgPkp}"/>
- </mod-dto>
- </case>
- <default>
- <mod-dto output="outputDto">
- <key name="flgPkp" type="String" from="N"/>
- </mod-dto>
- </default>
- </conditional>
- <mod-dto output="inputDtoIsCustPaymentExistsByIndex">
- <key name="partnerId" type="Long" from="${outputDto.partnerId}" />
- <key name="tenantId" type="Long" from="${result.header.tenantLoginId}" />
- </mod-dto>
- <call-bf name="isCustPaymentExistsByIndex" input="${inputDtoIsCustPaymentExistsByIndex}" output="outputDtoIsCustPaymentExistsByIndex">
- <onsuccess />
- <onerror />
- </call-bf>
- <conditional>
- <case expression="${outputDtoIsCustPaymentExistsByIndex.exists}">
- <mod-dto output="outputDto">
- <key name="custPaymentDuePaymentDays" type="Long" from="${outputDtoIsCustPaymentExistsByIndex.custPaymentDto.duePaymentDays}"/>
- </mod-dto>
- </case>
- <default>
- <mod-dto output="outputDto">
- <key name="custPaymentDuePaymentDays" type="Long" from="0"/>
- </mod-dto>
- </default>
- </conditional>
- <mod-dto output="inputDtoIsCustomerExtExistsById">
- <key name="id" type="Long" from="${outputDto.partnerId}" />
- </mod-dto>
- <call-bf name="isCustomerExtExistsById" input="${inputDtoIsCustomerExtExistsById}" output="outputDtoIsCustomerExtExistsById">
- <onsuccess />
- <onerror />
- </call-bf>
- <conditional>
- <case expression="${outputDtoIsCustomerExtExistsById.exists}">
- <mod-dto output="outputDto">
- <key name="regularDiscountPercentage" type="Double" from="${outputDtoIsCustomerExtExistsById.customerExtDto.regularDiscountPercentage}"/>
- </mod-dto>
- </case>
- <default>
- <mod-dto output="outputDto">
- <key name="regularDiscountPercentage" type="Double" from="0"/>
- </mod-dto>
- </default>
- </conditional>
- <mod-dto output="outputDto">
- <key name="ouCode" type="String" from="${outputDtoForFindOUById.code}" />
- <key name="ouName" type="String" from="${outputDtoForFindOUById.name}" />
- <key name="partnerCode" type="String" from="${outputDtoForFindPartnerById.code}" />
- <key name="partnerName" type="String" from="${outputDtoForFindPartnerById.name}" />
- <key name="partnerCpName" type="String" from="${outputDtoForFindPartnerCpById.cpName}" />
- <key name="partnerCpJob" type="String" from="${outputDtoForFindPartnerCpById.cpJob}" />
- <key name="partnerShipToCode" type="String" from="${outputDtoForFindPartnerShipToById.code}" />
- <key name="partnerShipToName" type="String" from="${outputDtoForFindPartnerShipToById.name}" />
- <key name="partnerBillToCode" type="String" from="${outputDtoForFindPartnerBillToById.code}" />
- <key name="partnerBillToName" type="String" from="${outputDtoForFindPartnerBillToById.name}" />
- <key name="partnerShipAddressDesc" type="String" from="${outputDtoForFindPartnerAddressById.addressDesc}" />
- <key name="salesmanCode" type="String" from="${outputDtoForFindSalesmanById.code}" />
- <key name="salesmanName" type="String" from="${outputDtoForFindSalesmanById.name}" />
- <list name="salesOrderDetailBrandList" from="${outputDtoGetDetailBrand.salesOrderDetailBrandList}" />
- <list name="salesOrderDetailItemList" from="${outputDtoGetDetailItem.salesOrderDetailItemList}" />
- <list name="salesOrderInfoList" from="${outputDtoGetSOInfo.salesOrderInfoList}" />
- <list name="salesOrderFinanceList" from="${outputDtoGetSOFinance.salesOrderFinanceList}" />
- <list name="summaryTaxList" from="${outputDtoGetSOSummaryTax.summaryTaxList}" />
- <key name="totalBrandItem" type="Long" from="${outputDtoGetSOSummary.totalBrandItem}" />
- <key name="totalBrandItemAmount" type="Double" from="${outputDtoGetSOSummary.totalBrandItemAmount}" />
- <key name="totalTaxAmount" type="Double" from="${outputDtoGetSOSummary.totalTaxAmount}" />
- <key name="grandTotal" type="Double" from="${outputDtoGetSOSummary.grandTotal}" />
- <key name="currCode" type="String" from="${outputDtoGetSOSummary.currCode}" />
- <key name="currPropKey" type="String" from="${outputDtoGetSOSummary.currPropKey}" />
- </mod-dto>
- </service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement