ERD

rest ExportToXmlStr(),ReCalculate() metodları

  Tiger/REST

Merhaba,


Gönderdiğimiz bir fiş kayıt olmadan ReCalculate yapıp ExportToXmlStr metodu ile geri dönüş sağlayabilirmiyiz.


Teşekkürler.




NaciO

Onaylanmış Cevap

Merhaba,

REST Servis için aktarım formatı JSON olarak belirlendi. Bu yüzden Logo Objects tarafındaki XML aktarım yöntemleri ile ilgili bir çalışma REST servis için ayrıca yapılmadı.

Gönderilen bir fiş kayıt olmadan ReCalculate() metodu ile hesaplatılabilir, ancak bunun geri dönüşü JSON formatında olacaktır.

Kolay gelsin, iyi çalışmalar.


30/07/18 14:13


ERD

Merhaba,


Gönderilen bir fiş kayıt olmadan JSON formatında geri dönüşünü hangi yöntem ile yapabiliriz.


Teşekkürler.



30/07/18 16:46


NaciO

Merhaba,

ReCalculate() bu iş için üretilmiş bir metodtur. Aşağıda, satış siparişi için bir örnek gönderiyorum. irsaliye, fatura vb. için de benzer yöntemi kullanabilirsiniz.

 

Http POST Request'i şu şekilde olmalı;

http://172.16.57.114:32001/api/v1/salesOrders/ReCalculate?expandLevel=full

Bu requestin body kısmı şöyle olabilir, bu kısımdaki JSON tagleri projenize göre değişebilir;

{
 "DataObjectParameter" : { 
 "ApplyCampaignOnPreSave":true , 
 "ApplyConditionOnPreSave": true, 
 "FormSeriLotLinesOnPreSave":true, 
 "FillAccCodesOnPreSave":true },
 "INTERNAL_REFERENCE": 0,
 "NUMBER": "~",
 "DATE": "2018-02-21T00:00:00",
 "TIME": 102581337,
 "ARP_CODE": "CARI.01",
 "CURRSEL_TOTAL": 1,
 "TRANSACTIONS": {
 "items": [
 {
 "TYPE": 0,
 "MASTER_CODE": "MALZEME.01",
 "QUANTITY": 5,
 "PRICE": 10,
 "VAT_RATE": 18,
 "UNIT_CODE": "ADET",
 "UNIT_CONV1": 1,
 "UNIT_CONV2": 1,
 "EDT_CURR": 1
 }
 ]
 }
 }


Sonrasında response olarak size hesaplanmış bir JSON dönecek. Misal, üstteki body için hesaplanmış dönen JSON benim sistemimde şu oldu;

[
 {
 "Name": "Result",
 "Value": {
 "DataObjectParameter": {
 "ApplyCampaignOnPreSave": true,
 "ApplyConditionOnPreSave": true,
 "FormSeriLotLinesOnPreSave": true,
 "FillAccCodesOnPreSave": true
 },
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "INTERNAL_REFERENCE": 0,
 "TYPE": 1,
 "NUMBER": "1000000000007220",
 "DATE": "2018-02-21T00:00:00",
 "TIME": 102581337,
 "ARP_CODE": "CARI.01",
 "CLIENTREF": 2,
 "RECVREF": 0,
 "GL_CODE": "903.00.00.00.000.0001",
 "ACCOUNTREF": 11568,
 "CENTERREF": 0,
 "SOURCE_WH": 0,
 "SOURCE_COST_GRP": 0,
 "UPDCURR": 0,
 "ADD_DISCOUNTS": 0.0,
 "TOTAL_DISCOUNTS": 23.0,
 "TOTAL_DISCOUNTED": 27.0,
 "ADD_EXPENSES": 0.0,
 "TOTAL_EXPENSES": 0.0,
 "TOTAL_PROMOTIONS": 0.0,
 "TOTAL_VAT": 4.86,
 "TOTAL_GROSS": 50.0,
 "TOTAL_NET": 31.86,
 "RC_RATE": 0.0,
 "RC_NET": 0.0,
 "EXTENREF": 0,
 "PAYDEFREF": 0,
 "PRINT_COUNTER": 0,
 "PRINT_DATE": "1899-12-30T00:00:00",
 "DIVISION": 0,
 "DEPARTMENT": 0,
 "ORDER_STATUS": 0,
 "CREATED_BY": 1,
 "DATE_CREATED": "2018-07-30T00:00:00",
 "HOUR_CREATED": 16,
 "MIN_CREATED": 49,
 "SEC_CREATED": 31,
 "MODIFIED_BY": 0,
 "DATE_MODIFIED": "1899-12-30T00:00:00",
 "HOUR_MODIFIED": 0,
 "MIN_MODIFIED": 0,
 "SEC_MODIFIED": 0,
 "SALESMANREF": 0,
 "CURRSEL_TOTAL": 1,
 "CURRSEL_DETAILS": 0,
 "TEXTINC": 0,
 "DATA_SITEID": 0,
 "DATA_REFERENCE": 0,
 "FACTORY": 0,
 "TRANSACTIONS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "items": [
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "INTERNAL_REFERENCE": 0,
 "TYPE": 0,
 "MASTER_CODE": "MALZEME.01",
 "STOCKREF": 3,
 "ORDFICHEREF": 0,
 "CLIENTREF": 2,
 "PREVLINEREF": 0,
 "PREVLINENO": 0,
 "DETLINE": 0,
 "LINENO": 0,
 "SLIP_TYPE": 1,
 "DATE": "2018-02-21T00:00:00",
 "TIME": 0,
 "DETAIL_LEVEL": 0,
 "CALC_TYPE": 0,
 "CENTERREF": 0,
 "GL_CODE1": "100.01.10.10.TRL.0000",
 "ACCOUNTREF": 313,
 "GL_CODE2": "100.01.20.10.TRL.0031",
 "VATACCREF": 346,
 "VATCENTERREF": 0,
 "PRACCREF": 0,
 "PRCENTERREF": 0,
 "PRVATACCREF": 0,
 "PRVATCENREF": 0,
 "PROMREF": 0,
 "QUANTITY": 5.0,
 "PRICE": 10.0,
 "TOTAL": 50.0,
 "QUANTITY_SHIPPED": 0.0,
 "DISCOUNT_RATE": 0.0,
 "COST_DISTR": 0.0,
 "DISCOUNT_DISTR": 23.0,
 "EXPENSE_DISTR": 0.0,
 "PROMOTION_DISTR": 0.0,
 "VAT_RATE": 18.0,
 "VAT_AMOUNT": 4.86,
 "VAT_BASE": 27.0,
 "UNIT_CODE": "ADET",
 "UOMREF": 23,
 "USREF": 5,
 "UNIT_CONV1": 1.0,
 "UNIT_CONV2": 1.0,
 "UNIT_CONV3": 0.0,
 "UNIT_CONV4": 0.0,
 "UNIT_CONV5": 0.0,
 "UNIT_CONV6": 0.0,
 "UNIT_CONV7": 0.0,
 "UNIT_CONV8": 0.0,
 "VAT_INCLUDED": 0,
 "ORDER_CLOSED": 0,
 "ORDER_RESERVE": 0,
 "INUSE": 0,
 "DUE_DATE": "1899-12-30T00:00:00",
 "CURR_PRICE": 0,
 "PC_PRICE": 0.0,
 "RC_XRATE": 0.0,
 "BILLED_ITEM": 0,
 "PAYDEFREF": 0,
 "EXTENREF": 0,
 "COMPOSITE": 0,
 "SOURCE_WH": 0,
 "SOURCE_COST_GRP": 0,
 "DIVISION": 0,
 "DEPARTMENT": 0,
 "TOTAL_NET": 50.0,
 "SALESMANREF": 0,
 "ORDER_STATUS": 0,
 "DREF": 0,
 "TRGFLAG": 0,
 "DATA_SITEID": 0,
 "DATA_REFERENCE": 0,
 "FACTORY": 0,
 "NET_DSC_FLAG": 0,
 "NET_DSC_RATE": 0.0,
 "NET_DSC_AMOUNT": 0.0,
 "PRODUCED": 0,
 "DETAILS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DETAILS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "XML_ATTRIBUTE": 2,
 "REASON_FOR_NOT_SHP": 0,
 "CMPG_LINE_REF": 0,
 "CAMPAIGN_INFOS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "items": [
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS/MALZEME.01_KAMP.01",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "CAMPCODE1": "MALZEME.01_KAMP.01",
 "CAMP_LN_NO": 0
 }
 ]
 },
 "CAMPAIGN_POINT": 0.0,
 "PR_RATE": 0.0,
 "GROSS_U_INFO1": 0.0,
 "GROSS_U_INFO2": 0.0,
 "CANCELLED": 0,
 "DEM_PEGGED_AMNT": 0.0,
 "TEXTINC": 0,
 "PROJECTREF": 0,
 "DEFNFLDS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DEFNFLDS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CURR_TRANSACTIN": 0,
 "PRCLISTREF": 0,
 "AFFECT_COLLATRL": 0,
 "VARIANTREF": 0,
 "CANCONFIG": 0,
 "PRIORITY": 0,
 "ADD_TAX_RATE": 0.0,
 "ADD_TAX_CONVFACT": 0.0,
 "ADD_TAX_AMOUNT": 0.0,
 "ADD_TAX_ACCREF": 0,
 "ADD_TAX_CENTERREF": 0,
 "ADD_TAX_AMNTISUPD": 0,
 "ADD_TAX_DISC_AMOUNT": 0.0,
 "EX_ADD_TAX_RATE": 0.0,
 "EX_ADD_TAX_CONVF": 0.0,
 "EX_ADD_TAX_AMOUNT": 0.0,
 "EU_VAT_STATUS": 0,
 "ADD_TAX_EFFECT_KDV": 0,
 "AFFECT_RISK": 0,
 "EXCLINE_INTERNAL_REFERENCE": 0,
 "EXCLINE_TRANS_REF": 0,
 "EXCLINE_PRICE": 10.0,
 "EXCLINE_TOTAL": 50.0,
 "EXCLINE_DIST_COST": 0.0,
 "EXCLINE_DIST_DISC": 0.0,
 "EXCLINE_DIST_EXP": 0.0,
 "EXCLINE_DIST_PROM": 0.0,
 "EXCLINE_VAT_AMOUNT": 0.0,
 "EXCLINE_VAT_MATRAH": 0.0,
 "EXCLINE_LINE_NET": 0.0,
 "EXCLINE_DIST_ADD_EXP": 0.0,
 "EXCLINE_NET_DISC_AMOUNT": 0.0,
 "EXCLINE_VAT_CALC_DIFF": 0.0,
 "EXCLINE_EU_VAT_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_CONV_FACT": 0.0,
 "EXCLINE_ADD_TAX_DISC_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_CONVF": 0.0,
 "ADD_TAX_VAT_MATRAH": 0.0,
 "EXCLINE_ADD_TAX_VAT_MATRAH": 0.0,
 "EDT_PRICE": 10.0,
 "EDT_CURR": 160,
 "ORG_DUE_DATE": "1899-12-30T00:00:00",
 "ORG_QUANTITY": 0.0,
 "ORG_PRICE": 0.0,
 "RESERVE_DATE": "1899-12-30T00:00:00",
 "RESERVE_AMOUNT": 0.0,
 "PRCLISTTYPE": 0,
 "DEDUCTION_PART1": 0,
 "DEDUCTION_PART2": 0,
 "OFFERREF": 0,
 "OFFTRANSREF": 0,
 "BOMREF": 0,
 "BOM_TYPE": 0,
 "BOMREVREF": 0,
 "ROUTINGREF": 0,
 "OPERATIONREF": 0,
 "WSREF": 0,
 "GUID": "23EA6481-F65A-4787-A4BB-45413FED5AD8"
 },
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "INTERNAL_REFERENCE": 0,
 "TYPE": 2,
 "MASTER_CODE": "INDIRIM.03",
 "STOCKREF": 9,
 "ORDFICHEREF": 0,
 "CLIENTREF": 2,
 "PREVLINEREF": 0,
 "PREVLINENO": 0,
 "DETLINE": 0,
 "LINENO": 0,
 "SLIP_TYPE": 0,
 "DATE": "2018-02-21T00:00:00",
 "TIME": 0,
 "DETAIL_LEVEL": 0,
 "CALC_TYPE": 2,
 "CENTERREF": 0,
 "GL_CODE1": "612.00.00.00.000.0000",
 "ACCOUNTREF": 10263,
 "VATACCREF": 0,
 "VATCENTERREF": 0,
 "PRACCREF": 0,
 "PRCENTERREF": 0,
 "PRVATACCREF": 0,
 "PRVATCENREF": 0,
 "PROMREF": 0,
 "QUANTITY": 0.0,
 "PRICE": 0.0,
 "TOTAL": 20.0,
 "QUANTITY_SHIPPED": 0.0,
 "DISCOUNT_RATE": 40.0,
 "COST_DISTR": 0.0,
 "DISCOUNT_DISTR": 0.0,
 "EXPENSE_DISTR": 0.0,
 "PROMOTION_DISTR": 0.0,
 "VAT_RATE": 0.0,
 "VAT_AMOUNT": 0.0,
 "VAT_BASE": 0.0,
 "UOMREF": 0,
 "USREF": 0,
 "UNIT_CONV1": 0.0,
 "UNIT_CONV2": 0.0,
 "UNIT_CONV3": 0.0,
 "UNIT_CONV4": 0.0,
 "UNIT_CONV5": 0.0,
 "UNIT_CONV6": 0.0,
 "UNIT_CONV7": 0.0,
 "UNIT_CONV8": 0.0,
 "VAT_INCLUDED": 0,
 "ORDER_CLOSED": 0,
 "ORDER_RESERVE": 0,
 "INUSE": 0,
 "DUE_DATE": "1899-12-30T00:00:00",
 "CURR_PRICE": 0,
 "PC_PRICE": 0.0,
 "RC_XRATE": 0.0,
 "BILLED_ITEM": 0,
 "PAYDEFREF": 0,
 "EXTENREF": 0,
 "COMPOSITE": 0,
 "SOURCE_WH": 0,
 "SOURCE_COST_GRP": 0,
 "DIVISION": 0,
 "DEPARTMENT": 0,
 "TOTAL_NET": 20.0,
 "SALESMANREF": 0,
 "ORDER_STATUS": 0,
 "DREF": 0,
 "TRGFLAG": 0,
 "DATA_SITEID": 0,
 "DATA_REFERENCE": 0,
 "FACTORY": 0,
 "NET_DSC_FLAG": 0,
 "NET_DSC_RATE": 0.0,
 "NET_DSC_AMOUNT": 0.0,
 "PRODUCED": 0,
 "DETAILS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DETAILS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "XML_ATTRIBUTE": 2,
 "REASON_FOR_NOT_SHP": 0,
 "CMPG_LINE_REF": 0,
 "CAMPAIGN_INFOS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CAMPAIGN_POINT": 0.0,
 "PR_RATE": 0.0,
 "GROSS_U_INFO1": 0.0,
 "GROSS_U_INFO2": 0.0,
 "CANCELLED": 0,
 "DEM_PEGGED_AMNT": 0.0,
 "TEXTINC": 0,
 "PROJECTREF": 0,
 "DEFNFLDS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DEFNFLDS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CURR_TRANSACTIN": 0,
 "PRCLISTREF": 0,
 "AFFECT_COLLATRL": 0,
 "VARIANTREF": 0,
 "CANCONFIG": 0,
 "PRIORITY": 0,
 "ADD_TAX_RATE": 0.0,
 "ADD_TAX_CONVFACT": 0.0,
 "ADD_TAX_AMOUNT": 0.0,
 "ADD_TAX_ACCREF": 0,
 "ADD_TAX_CENTERREF": 0,
 "ADD_TAX_AMNTISUPD": 0,
 "ADD_TAX_DISC_AMOUNT": 0.0,
 "EX_ADD_TAX_RATE": 0.0,
 "EX_ADD_TAX_CONVF": 0.0,
 "EX_ADD_TAX_AMOUNT": 0.0,
 "EU_VAT_STATUS": 0,
 "ADD_TAX_EFFECT_KDV": 0,
 "AFFECT_RISK": 0,
 "EXCLINE_INTERNAL_REFERENCE": 0,
 "EXCLINE_TRANS_REF": 0,
 "EXCLINE_PRICE": 0.0,
 "EXCLINE_TOTAL": 0.0,
 "EXCLINE_DIST_COST": 0.0,
 "EXCLINE_DIST_DISC": 0.0,
 "EXCLINE_DIST_EXP": 0.0,
 "EXCLINE_DIST_PROM": 0.0,
 "EXCLINE_VAT_AMOUNT": 0.0,
 "EXCLINE_VAT_MATRAH": 0.0,
 "EXCLINE_LINE_NET": 0.0,
 "EXCLINE_DIST_ADD_EXP": 0.0,
 "EXCLINE_NET_DISC_AMOUNT": 0.0,
 "EXCLINE_VAT_CALC_DIFF": 0.0,
 "EXCLINE_EU_VAT_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_CONV_FACT": 0.0,
 "EXCLINE_ADD_TAX_DISC_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_CONVF": 0.0,
 "ADD_TAX_VAT_MATRAH": 0.0,
 "EXCLINE_ADD_TAX_VAT_MATRAH": 0.0,
 "EDT_PRICE": 0.0,
 "EDT_CURR": 0,
 "ORG_DUE_DATE": "1899-12-30T00:00:00",
 "ORG_QUANTITY": 0.0,
 "ORG_PRICE": 0.0,
 "RESERVE_DATE": "1899-12-30T00:00:00",
 "RESERVE_AMOUNT": 0.0,
 "PRCLISTTYPE": 0,
 "DEDUCTION_PART1": 0,
 "DEDUCTION_PART2": 0,
 "OFFERREF": 0,
 "OFFTRANSREF": 0,
 "BOMREF": 0,
 "BOM_TYPE": 0,
 "BOMREVREF": 0,
 "ROUTINGREF": 0,
 "OPERATIONREF": 0,
 "WSREF": 0,
 "GUID": "B21C4A17-9C4A-4544-9ACB-E9B1D107D07D"
 },
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "INTERNAL_REFERENCE": 0,
 "TYPE": 2,
 "MASTER_CODE": "(İndirim)",
 "STOCKREF": 0,
 "ORDFICHEREF": 0,
 "CLIENTREF": 2,
 "PREVLINEREF": 0,
 "PREVLINENO": 0,
 "DETLINE": 0,
 "LINENO": 0,
 "SLIP_TYPE": 0,
 "DATE": "2018-02-21T00:00:00",
 "TIME": 0,
 "DETAIL_LEVEL": 0,
 "CALC_TYPE": 0,
 "CENTERREF": 0,
 "GL_CODE1": "100.01.10.10.TRL.0000",
 "ACCOUNTREF": 313,
 "VATACCREF": 0,
 "VATCENTERREF": 0,
 "PRACCREF": 0,
 "PRCENTERREF": 0,
 "PRVATACCREF": 0,
 "PRVATCENREF": 0,
 "PROMREF": 0,
 "QUANTITY": 0.0,
 "PRICE": 0.0,
 "TOTAL": 3.0,
 "QUANTITY_SHIPPED": 0.0,
 "DISCOUNT_RATE": 10.0,
 "COST_DISTR": 0.0,
 "DISCOUNT_DISTR": 0.0,
 "EXPENSE_DISTR": 0.0,
 "PROMOTION_DISTR": 0.0,
 "VAT_RATE": 0.0,
 "VAT_AMOUNT": 0.0,
 "VAT_BASE": 0.0,
 "UOMREF": 0,
 "USREF": 0,
 "UNIT_CONV1": 0.0,
 "UNIT_CONV2": 0.0,
 "UNIT_CONV3": 0.0,
 "UNIT_CONV4": 0.0,
 "UNIT_CONV5": 0.0,
 "UNIT_CONV6": 0.0,
 "UNIT_CONV7": 0.0,
 "UNIT_CONV8": 0.0,
 "VAT_INCLUDED": 0,
 "ORDER_CLOSED": 0,
 "ORDER_RESERVE": 0,
 "INUSE": 0,
 "DUE_DATE": "1899-12-30T00:00:00",
 "CURR_PRICE": 0,
 "PC_PRICE": 0.0,
 "RC_XRATE": 0.0,
 "BILLED_ITEM": 0,
 "PAYDEFREF": 0,
 "EXTENREF": 0,
 "COMPOSITE": 0,
 "SOURCE_WH": 0,
 "SOURCE_COST_GRP": 0,
 "DIVISION": 0,
 "DEPARTMENT": 0,
 "TOTAL_NET": 3.0,
 "SALESMANREF": 0,
 "ORDER_STATUS": 0,
 "DREF": 0,
 "TRGFLAG": 0,
 "DATA_SITEID": 0,
 "DATA_REFERENCE": 0,
 "FACTORY": 0,
 "NET_DSC_FLAG": 0,
 "NET_DSC_RATE": 0.0,
 "NET_DSC_AMOUNT": 0.0,
 "PRODUCED": 0,
 "DETAILS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DETAILS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "XML_ATTRIBUTE": 2,
 "REASON_FOR_NOT_SHP": 0,
 "CMPG_LINE_REF": 18,
 "CAMPAIGN_INFOS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CAMPAIGN_POINT": 0.0,
 "PR_RATE": 0.0,
 "GROSS_U_INFO1": 0.0,
 "GROSS_U_INFO2": 0.0,
 "CANCELLED": 0,
 "DEM_PEGGED_AMNT": 0.0,
 "TEXTINC": 0,
 "PROJECTREF": 0,
 "DEFNFLDS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DEFNFLDS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CURR_TRANSACTIN": 0,
 "PRCLISTREF": 0,
 "AFFECT_COLLATRL": 0,
 "VARIANTREF": 0,
 "CANCONFIG": 0,
 "PRIORITY": 0,
 "ADD_TAX_RATE": 0.0,
 "ADD_TAX_CONVFACT": 0.0,
 "ADD_TAX_AMOUNT": 0.0,
 "ADD_TAX_ACCREF": 0,
 "ADD_TAX_CENTERREF": 0,
 "ADD_TAX_AMNTISUPD": 0,
 "ADD_TAX_DISC_AMOUNT": 0.0,
 "EX_ADD_TAX_RATE": 0.0,
 "EX_ADD_TAX_CONVF": 0.0,
 "EX_ADD_TAX_AMOUNT": 0.0,
 "EU_VAT_STATUS": 0,
 "ADD_TAX_EFFECT_KDV": 0,
 "AFFECT_RISK": 0,
 "EXCLINE_INTERNAL_REFERENCE": 0,
 "EXCLINE_TRANS_REF": 0,
 "EXCLINE_PRICE": 0.0,
 "EXCLINE_TOTAL": 0.0,
 "EXCLINE_DIST_COST": 0.0,
 "EXCLINE_DIST_DISC": 0.0,
 "EXCLINE_DIST_EXP": 0.0,
 "EXCLINE_DIST_PROM": 0.0,
 "EXCLINE_VAT_AMOUNT": 0.0,
 "EXCLINE_VAT_MATRAH": 0.0,
 "EXCLINE_LINE_NET": 0.0,
 "EXCLINE_DIST_ADD_EXP": 0.0,
 "EXCLINE_NET_DISC_AMOUNT": 0.0,
 "EXCLINE_VAT_CALC_DIFF": 0.0,
 "EXCLINE_EU_VAT_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_CONV_FACT": 0.0,
 "EXCLINE_ADD_TAX_DISC_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_CONVF": 0.0,
 "ADD_TAX_VAT_MATRAH": 0.0,
 "EXCLINE_ADD_TAX_VAT_MATRAH": 0.0,
 "EDT_PRICE": 0.0,
 "EDT_CURR": 0,
 "ORG_DUE_DATE": "1899-12-30T00:00:00",
 "ORG_QUANTITY": 0.0,
 "ORG_PRICE": 0.0,
 "RESERVE_DATE": "1899-12-30T00:00:00",
 "RESERVE_AMOUNT": 0.0,
 "PRCLISTTYPE": 0,
 "DEDUCTION_PART1": 0,
 "DEDUCTION_PART2": 0,
 "OFFERREF": 0,
 "OFFTRANSREF": 0,
 "BOMREF": 0,
 "BOM_TYPE": 0,
 "BOMREVREF": 0,
 "ROUTINGREF": 0,
 "OPERATIONREF": 0,
 "WSREF": 0,
 "GUID": "FECD9036-1087-414F-8CB5-E674BB09EFA7"
 },
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "INTERNAL_REFERENCE": 0,
 "TYPE": 0,
 "STOCKREF": 0,
 "ORDFICHEREF": 0,
 "CLIENTREF": 0,
 "PREVLINEREF": 0,
 "PREVLINENO": 0,
 "DETLINE": 0,
 "LINENO": 0,
 "SLIP_TYPE": 0,
 "DATE": "1899-12-30T00:00:00",
 "TIME": 0,
 "DETAIL_LEVEL": 0,
 "CALC_TYPE": 0,
 "CENTERREF": 0,
 "ACCOUNTREF": 0,
 "VATACCREF": 0,
 "VATCENTERREF": 0,
 "PRACCREF": 0,
 "PRCENTERREF": 0,
 "PRVATACCREF": 0,
 "PRVATCENREF": 0,
 "PROMREF": 0,
 "QUANTITY": 0.0,
 "PRICE": 0.0,
 "TOTAL": 0.0,
 "QUANTITY_SHIPPED": 0.0,
 "DISCOUNT_RATE": 0.0,
 "COST_DISTR": 0.0,
 "DISCOUNT_DISTR": 0.0,
 "EXPENSE_DISTR": 0.0,
 "PROMOTION_DISTR": 0.0,
 "VAT_RATE": 0.0,
 "VAT_AMOUNT": 0.0,
 "VAT_BASE": 0.0,
 "UOMREF": 0,
 "USREF": 0,
 "UNIT_CONV1": 0.0,
 "UNIT_CONV2": 0.0,
 "UNIT_CONV3": 0.0,
 "UNIT_CONV4": 0.0,
 "UNIT_CONV5": 0.0,
 "UNIT_CONV6": 0.0,
 "UNIT_CONV7": 0.0,
 "UNIT_CONV8": 0.0,
 "VAT_INCLUDED": 0,
 "ORDER_CLOSED": 0,
 "ORDER_RESERVE": 0,
 "INUSE": 0,
 "DUE_DATE": "1899-12-30T00:00:00",
 "CURR_PRICE": 0,
 "PC_PRICE": 0.0,
 "RC_XRATE": 0.0,
 "BILLED_ITEM": 0,
 "PAYDEFREF": 0,
 "EXTENREF": 0,
 "COMPOSITE": 0,
 "SOURCE_WH": 0,
 "SOURCE_COST_GRP": 0,
 "DIVISION": 0,
 "DEPARTMENT": 0,
 "TOTAL_NET": 0.0,
 "SALESMANREF": 0,
 "ORDER_STATUS": 0,
 "DREF": 0,
 "TRGFLAG": 0,
 "DATA_SITEID": 0,
 "DATA_REFERENCE": 0,
 "FACTORY": 0,
 "NET_DSC_FLAG": 0,
 "NET_DSC_RATE": 0.0,
 "NET_DSC_AMOUNT": 0.0,
 "PRODUCED": 0,
 "DETAILS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DETAILS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "XML_ATTRIBUTE": 0,
 "REASON_FOR_NOT_SHP": 0,
 "CMPG_LINE_REF": 0,
 "CAMPAIGN_INFOS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CAMPAIGN_POINT": 0.0,
 "PR_RATE": 0.0,
 "GROSS_U_INFO1": 0.0,
 "GROSS_U_INFO2": 0.0,
 "CANCELLED": 0,
 "DEM_PEGGED_AMNT": 0.0,
 "TEXTINC": 0,
 "PROJECTREF": 0,
 "DEFNFLDS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DEFNFLDS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CURR_TRANSACTIN": 0,
 "PRCLISTREF": 0,
 "AFFECT_COLLATRL": 0,
 "VARIANTREF": 0,
 "CANCONFIG": 0,
 "PRIORITY": 0,
 "ADD_TAX_RATE": 0.0,
 "ADD_TAX_CONVFACT": 0.0,
 "ADD_TAX_AMOUNT": 0.0,
 "ADD_TAX_ACCREF": 0,
 "ADD_TAX_CENTERREF": 0,
 "ADD_TAX_AMNTISUPD": 0,
 "ADD_TAX_DISC_AMOUNT": 0.0,
 "EX_ADD_TAX_RATE": 0.0,
 "EX_ADD_TAX_CONVF": 0.0,
 "EX_ADD_TAX_AMOUNT": 0.0,
 "EU_VAT_STATUS": 0,
 "ADD_TAX_EFFECT_KDV": 0,
 "AFFECT_RISK": 0,
 "EXCLINE_INTERNAL_REFERENCE": 0,
 "EXCLINE_TRANS_REF": 0,
 "EXCLINE_PRICE": 0.0,
 "EXCLINE_TOTAL": 0.0,
 "EXCLINE_DIST_COST": 0.0,
 "EXCLINE_DIST_DISC": 0.0,
 "EXCLINE_DIST_EXP": 0.0,
 "EXCLINE_DIST_PROM": 0.0,
 "EXCLINE_VAT_AMOUNT": 0.0,
 "EXCLINE_VAT_MATRAH": 0.0,
 "EXCLINE_LINE_NET": 0.0,
 "EXCLINE_DIST_ADD_EXP": 0.0,
 "EXCLINE_NET_DISC_AMOUNT": 0.0,
 "EXCLINE_VAT_CALC_DIFF": 0.0,
 "EXCLINE_EU_VAT_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_CONV_FACT": 0.0,
 "EXCLINE_ADD_TAX_DISC_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_CONVF": 0.0,
 "ADD_TAX_VAT_MATRAH": 0.0,
 "EXCLINE_ADD_TAX_VAT_MATRAH": 0.0,
 "EDT_PRICE": 0.0,
 "EDT_CURR": 0,
 "ORG_DUE_DATE": "1899-12-30T00:00:00",
 "ORG_QUANTITY": 0.0,
 "ORG_PRICE": 0.0,
 "RESERVE_DATE": "1899-12-30T00:00:00",
 "RESERVE_AMOUNT": 0.0,
 "PRCLISTTYPE": 0,
 "DEDUCTION_PART1": 0,
 "DEDUCTION_PART2": 0,
 "OFFERREF": 0,
 "OFFTRANSREF": 0,
 "BOMREF": 0,
 "BOM_TYPE": 0,
 "BOMREVREF": 0,
 "ROUTINGREF": 0,
 "OPERATIONREF": 0,
 "WSREF": 0,
 "GUID": "E4B321AE-8DD1-43C8-A22D-5C32B91D28EB"
 },
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "INTERNAL_REFERENCE": 0,
 "TYPE": 1,
 "MASTER_CODE": "0MALZEME1",
 "STOCKREF": 1,
 "ORDFICHEREF": 0,
 "CLIENTREF": 2,
 "PREVLINEREF": 0,
 "PREVLINENO": 0,
 "DETLINE": 0,
 "LINENO": 0,
 "SLIP_TYPE": 0,
 "DATE": "2018-02-21T00:00:00",
 "TIME": 0,
 "DETAIL_LEVEL": 1,
 "CALC_TYPE": 0,
 "OHP_CODE1": "MASRAF.01",
 "CENTERREF": 1,
 "GL_CODE1": "600.00.00.00.001.0001",
 "ACCOUNTREF": 9874,
 "VATACCREF": 0,
 "VATCENTERREF": 0,
 "PRACCREF": 9874,
 "PRCENTERREF": 0,
 "PRVATACCREF": 0,
 "PRVATCENREF": 0,
 "PROMREF": 0,
 "QUANTITY": 1.0,
 "PRICE": 0.0,
 "TOTAL": 0.0,
 "QUANTITY_SHIPPED": 0.0,
 "DISCOUNT_RATE": 100.0,
 "COST_DISTR": 0.0,
 "DISCOUNT_DISTR": 0.0,
 "EXPENSE_DISTR": 0.0,
 "PROMOTION_DISTR": 0.0,
 "VAT_RATE": 18.0,
 "VAT_AMOUNT": 0.0,
 "VAT_BASE": 0.0,
 "UNIT_CODE": "ADET",
 "UOMREF": 23,
 "USREF": 5,
 "UNIT_CONV1": 1.0,
 "UNIT_CONV2": 1.0,
 "UNIT_CONV3": 0.0,
 "UNIT_CONV4": 0.0,
 "UNIT_CONV5": 0.0,
 "UNIT_CONV6": 0.0,
 "UNIT_CONV7": 0.0,
 "UNIT_CONV8": 0.0,
 "VAT_INCLUDED": 0,
 "ORDER_CLOSED": 0,
 "ORDER_RESERVE": 1,
 "INUSE": 0,
 "DUE_DATE": "2018-02-21T00:00:00",
 "CURR_PRICE": 0,
 "PC_PRICE": 0.0,
 "RC_XRATE": 0.0,
 "BILLED_ITEM": 0,
 "PAYDEFREF": 0,
 "EXTENREF": 0,
 "COMPOSITE": 0,
 "SOURCE_WH": 0,
 "SOURCE_COST_GRP": 0,
 "DIVISION": 0,
 "DEPARTMENT": 0,
 "TOTAL_NET": 0.0,
 "SALESMANREF": 0,
 "ORDER_STATUS": 0,
 "DREF": 0,
 "TRGFLAG": 0,
 "DATA_SITEID": 0,
 "DATA_REFERENCE": 0,
 "FACTORY": 0,
 "NET_DSC_FLAG": 0,
 "NET_DSC_RATE": 0.0,
 "NET_DSC_AMOUNT": 0.0,
 "PRODUCED": 0,
 "DETAILS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DETAILS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "XML_ATTRIBUTE": 2,
 "REASON_FOR_NOT_SHP": 0,
 "CMPG_LINE_REF": 22,
 "CAMPAIGN_INFOS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "items": [
 {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/CAMPAIGN_INFOS/K.GENELE.PROM",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 },
 "CAMPCODE1": "K.GENELE.PROM",
 "CAMP_LN_NO": 1
 }
 ]
 },
 "CAMPAIGN_POINT": 0.0,
 "PR_RATE": 0.0,
 "GROSS_U_INFO1": 0.0,
 "GROSS_U_INFO2": 0.0,
 "CANCELLED": 0,
 "DEM_PEGGED_AMNT": 0.0,
 "TEXTINC": 0,
 "PROJECTREF": 0,
 "DEFNFLDS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/TRANSACTIONS/0/DEFNFLDS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "CURR_TRANSACTIN": 0,
 "PRCLISTREF": 0,
 "AFFECT_COLLATRL": 0,
 "VARIANTREF": 0,
 "CANCONFIG": 0,
 "PRIORITY": 0,
 "ADD_TAX_RATE": 0.0,
 "ADD_TAX_CONVFACT": 0.0,
 "ADD_TAX_AMOUNT": 0.0,
 "ADD_TAX_ACCREF": 0,
 "ADD_TAX_CENTERREF": 0,
 "ADD_TAX_AMNTISUPD": 0,
 "ADD_TAX_DISC_AMOUNT": 0.0,
 "EX_ADD_TAX_RATE": 0.0,
 "EX_ADD_TAX_CONVF": 0.0,
 "EX_ADD_TAX_AMOUNT": 0.0,
 "EU_VAT_STATUS": 0,
 "ADD_TAX_EFFECT_KDV": 1,
 "AFFECT_RISK": 0,
 "EXCLINE_INTERNAL_REFERENCE": 0,
 "EXCLINE_TRANS_REF": 0,
 "EXCLINE_PRICE": 0.0,
 "EXCLINE_TOTAL": 0.0,
 "EXCLINE_DIST_COST": 0.0,
 "EXCLINE_DIST_DISC": 0.0,
 "EXCLINE_DIST_EXP": 0.0,
 "EXCLINE_DIST_PROM": 0.0,
 "EXCLINE_VAT_AMOUNT": 0.0,
 "EXCLINE_VAT_MATRAH": 0.0,
 "EXCLINE_LINE_NET": 0.0,
 "EXCLINE_DIST_ADD_EXP": 0.0,
 "EXCLINE_NET_DISC_AMOUNT": 0.0,
 "EXCLINE_VAT_CALC_DIFF": 0.0,
 "EXCLINE_EU_VAT_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_ADD_TAX_CONV_FACT": 0.0,
 "EXCLINE_ADD_TAX_DISC_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_AMOUNT": 0.0,
 "EXCLINE_EX_ADD_TAX_CONVF": 0.0,
 "ADD_TAX_VAT_MATRAH": 0.0,
 "EXCLINE_ADD_TAX_VAT_MATRAH": 0.0,
 "EDT_PRICE": 0.0,
 "EDT_CURR": 160,
 "ORG_DUE_DATE": "1899-12-30T00:00:00",
 "ORG_QUANTITY": 0.0,
 "ORG_PRICE": 0.0,
 "RESERVE_DATE": "2018-02-21T00:00:00",
 "RESERVE_AMOUNT": 1.0,
 "PRCLISTTYPE": 0,
 "DEDUCTION_PART1": 0,
 "DEDUCTION_PART2": 0,
 "OFFERREF": 0,
 "OFFTRANSREF": 0,
 "PRODUCER_CODE": "DENEME",
 "BOMREF": 0,
 "BOM_TYPE": 0,
 "BOMREVREF": 0,
 "ROUTINGREF": 0,
 "OPERATIONREF": 0,
 "WSREF": 0,
 "GUID": "C6CB8D2D-CDC3-460A-8FAB-BCEC34052469"
 }
 ]
 },
 "XCNT": 0,
 "XML_ATTRIBUTE": 0,
 "DLV_CLIENT": 0,
 "CANCELLED": 0,
 "OFFER_REFERENCE": 0,
 "OFFALT_REFERENCE": 0,
 "OFFER_TYP": 0,
 "OFFER_ALTNR": 0,
 "CURR_TRANSACTIN": 0,
 "TC_RATE": 0.0,
 "TC_NET": 31.86,
 "WITH_PAYMENT": 0,
 "PAYMENT_LIST": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/PAYMENT_LIST",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "PROJECTREF": 0,
 "DEFNFLDSLIST": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/DEFNFLDSLIST",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "WFLOWCARDREF": 0,
 "OP_STATUS": 0,
 "UPD_CURR": 0,
 "UPD_TRCURR": 0,
 "GUARANTOR1_FICHETYPE": 0,
 "GUARANTOR1_NR": 0,
 "GUARANTOR1_SITEID": 0,
 "GUARANTOR1_ORGLOGICREF": 0,
 "GUARANTOR1_CLIENTREF": 0,
 "GUARANTOR2_FICHETYPE": 0,
 "GUARANTOR2_NR": 0,
 "GUARANTOR2_SITEID": 0,
 "GUARANTOR2_ORGLOGICREF": 0,
 "GUARANTOR2_CLIENTREF": 0,
 "AFFECT_COLLATRL": 0,
 "DEMANDPEGGINGS": {
 "Meta": {
 "href": "http://172.16.57.114:32001/api/v1/salesOrders/0/DEMANDPEGGINGS",
 "mediaType": "application/json; charset=UTF-8",
 "apiVersion": "1.0"
 }
 },
 "TOTAL_ADD_TAX": 0.0,
 "TOTAL_EX_ADD_TAX": 0.0,
 "AFFECT_RISK": 0,
 "EXCHINFO_INTERNAL_REFERENCE": 0,
 "EXCHINFO_FICHE_REF": 0,
 "EXCHINFO_ADD_DISCOUNTS": 0.0,
 "EXCHINFO_TOTAL_DISCOUNTS": 0.0,
 "EXCHINFO_TOTAL_DISCOUNTED": 0.0,
 "EXCHINFO_ADD_EXPENSES": 0.0,
 "EXCHINFO_TOTAL_EXPENSES": 0.0,
 "EXCHINFO_DIST_EXPENSE": 0.0,
 "EXCHINFO_TOTAL_DEPOZITO": 0.0,
 "EXCHINFO_TOTAL_PROMOTIONS": 0.0,
 "EXCHINFO_VAT_INC_GROSS": 0.0,
 "EXCHINFO_TOTAL_VAT": 0.0,
 "EXCHINFO_GROSS_TOTAL": 0.0,
 "EXCHINFO_TOTAL_ADD_TAX": 0.0,
 "EXCHINFO_TOTAL_EX_ADD_TAX": 0.0,
 "EXCHINFO_BAGKUR": 0.0,
 "EXCHINFO_STOPAJ": 0.0,
 "EXCHINFO_SSDF": 0.0,
 "EXCHINFO_BORSA": 0.0,
 "EXCHINFO_KOMISYON": 0.0,
 "EXCHINFO_KOM_KDV": 0.0,
 "EXCHINFO_EK1": 0.0,
 "EXCHINFO_EK2": 0.0,
 "EXCHINFO_EK3": 0.0,
 "EXCHINFO_EK4": 0.0,
 "EXCHINFO_EK5": 0.0,
 "PAYMENT_TYPE": 0,
 "APPROVE": 0,
 "APPROVE_DATE": "1899-12-30T00:00:00",
 "GUID": "9972F190-A921-4F8D-9D44-2389451736A9",
 "DEDUCTIONPART1": 0,
 "DEDUCTIONPART2": 0,
 "CANCEL_AUTO_CAMP_PROC": 0,
 "APPLY_ARP_DISCOUNT": 0,
 "DEVIR": 0
 }
 }
]


Kolay gelsin, iyi çalışmalar.




30/07/18 16:51

Cevap vermek için giriş yapmanız gerekmektedir.