Konsinye İrsaliye bağlantılı bir Müstahsil Makbuzu oluşturulması için kullanılan method 'dur.
Ayrıca farklı ambarlara sahip irsaliyeleri aynı Fatura üzerinde toplar.
Parametre | Type | Açıklama |
---|---|---|
dispref | Long | Müstahsil Makbuzuna veya Fatura ya bağlanacak olan irsaliyenin referansı |
C# Örneği
UnityObjects.Data invoice = Global.UnityApp.NewDataObject(UnityObjects.DataObjectType.doSalesInvoice); invoice.New();
invoice.DataFields.FieldByName("TYPE").Value = 8;
invoice.DataFields.FieldByName("NUMBER").Value = "AMBARFATURA01";
invoice.DataFields.FieldByName("DATE").Value = "26.10.2015";
invoice.DataFields.FieldByName("TIME").Value = 187708691; invoice.DataFields.FieldByName("ARP_CODE").Value = "CRH01"; invoice.DataFields.FieldByName("SOURCE_WH").Value = 1; invoice.DataFields.FieldByName("SOURCE_COST_GRP").Value = 1; invoice.DataFields.FieldByName("POST_FLAGS").Value = 247; invoice.DataFields.FieldByName("VAT_RATE").Value = 18; invoice.DataFields.FieldByName("CREATED_BY").Value = 1; invoice.DataFields.FieldByName("CURRSEL_TOTALS").Value = 1; invoice.DataFields.FieldByName("DEDUCTIONPART1").Value = 2; invoice.DataFields.FieldByName("DEDUCTIONPART2").Value = 3; invoice.DataFields.FieldByName("DOC_DATE").Value = "26.10.2015";
invoice.AttachADespatchByLRef(6274);
invoice.AttachADespatchByLRef(6275);
if (invoice.Post() == true)
{
MessageBox.Show("POST OK !");
}
else
{
if (invoice.ErrorCode != 0)
{
MessageBox.Show("DBError(" + invoice.ErrorCode.ToString() + ")-" + invoice.ErrorDesc + invoice.DBErrorDesc);
}
else if (invoice.ValidateErrors.Count > 0)
{
string result = "XML ErrorList:";
for (int i = 0; i < invoice.ValidateErrors.Count; i++)
{
result += "(" + invoice.ValidateErrors[i].ID.ToString() + ") - " + invoice.ValidateErrors[i].Error;
}
MessageBox.Show(result);
}
}
Copyright © 2018 Logo Yazılım