Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -103,6 +103,8 @@ type ProductionHasCostDetailHeader struct {
|
||||
UrunAltGrubu string `json:"UrunAltGrubu"`
|
||||
UretimSekliID string `json:"UretimSekliID"`
|
||||
UretimSekli string `json:"UretimSekli"`
|
||||
FirmaKodu string `json:"FirmaKodu"`
|
||||
NFirmaID int `json:"nFirmaID"`
|
||||
DteKayitTarihi string `json:"dteKayitTarihi"`
|
||||
SKullaniciAdi string `json:"sKullaniciAdi"`
|
||||
LTutarTL float64 `json:"lTutarTL"`
|
||||
@@ -116,6 +118,100 @@ type ProductionHasCostDetailHeader struct {
|
||||
NUrtReceteID string `json:"nUrtReceteID"`
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Save (INSERT/UPDATE/DELETE/UPSERT) spUrtOnMLMas + spUrtOnMLMasDet
|
||||
// ============================================================
|
||||
|
||||
type ProductionProductCostingOnMLSaveHeader struct {
|
||||
NOnMLNo int `json:"n_onml_no"`
|
||||
UrunKodu string `json:"urun_kodu"`
|
||||
UrunAdi string `json:"urun_adi"`
|
||||
MaliyetTarihi string `json:"maliyet_tarihi"` // YYYY-MM-DD
|
||||
NUrtReceteID int `json:"n_urt_recete_id"`
|
||||
UretimSekliID int `json:"uretim_sekli_id"`
|
||||
SAciklama string `json:"s_aciklama"`
|
||||
FirmaKodu string `json:"firma_kodu"`
|
||||
NFirmaID int `json:"n_firma_id"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingOnMLSaveDetailUpsertRow struct {
|
||||
NOnMLDetNo int `json:"n_onml_det_no"`
|
||||
NHammaddeTuruNo int `json:"n_hammadde_turu_no"`
|
||||
NUrtMTBolumID int `json:"n_urt_mt_bolum_id"`
|
||||
SKodu string `json:"s_kodu"`
|
||||
SAciklama string `json:"s_aciklama"`
|
||||
SRenk string `json:"s_renk"`
|
||||
SBeden string `json:"s_beden"`
|
||||
SAciklama2 string `json:"s_aciklama2"`
|
||||
SBirim string `json:"s_birim"`
|
||||
LMiktar float64 `json:"l_miktar"`
|
||||
FiyatGirilen float64 `json:"fiyat_girilen"`
|
||||
FiyatDoviz string `json:"fiyat_doviz"`
|
||||
MaliyeteDahil int `json:"maliyete_dahil"`
|
||||
CMPriceTypeID *int `json:"cm_price_type_id"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingOnMLSaveDetailDeleteRow struct {
|
||||
NOnMLDetNo int `json:"n_onml_det_no"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingOnMLSaveDetail struct {
|
||||
Upserts []ProductionProductCostingOnMLSaveDetailUpsertRow `json:"upserts"`
|
||||
Deletes []ProductionProductCostingOnMLSaveDetailDeleteRow `json:"deletes"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingOnMLSaveRequest struct {
|
||||
DetailSource string `json:"detail_source"`
|
||||
Header ProductionProductCostingOnMLSaveHeader `json:"header"`
|
||||
Detail ProductionProductCostingOnMLSaveDetail `json:"detail"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingOnMLSaveResponse struct {
|
||||
NOnMLNo int `json:"n_onml_no"`
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
// Default quantities (URETIM): mk_MaliyetParcaEslestirme_vmiktarlar
|
||||
// ============================================================
|
||||
|
||||
type ProductionProductCostingDefaultQtyRow struct {
|
||||
NHammaddeTuruNo int `json:"nHammaddeTuruNo"`
|
||||
SAciklama string `json:"sAciklama"`
|
||||
LDefaultMiktar float64 `json:"lDefaultMiktar"`
|
||||
DteCalcTarihi string `json:"dteCalcTarihi"`
|
||||
BAktif bool `json:"bAktif"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingDefaultQtyUpdateRequest struct {
|
||||
NHammaddeTuruNo int `json:"nHammaddeTuruNo"`
|
||||
LDefaultMiktar float64 `json:"lDefaultMiktar"`
|
||||
BAktif *bool `json:"bAktif"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingDefaultQtyBulkUpdateRequest struct {
|
||||
Items []ProductionProductCostingDefaultQtyUpdateRequest `json:"items"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingDefaultQtyCalcRequest struct {
|
||||
NHammaddeTuruNo int `json:"nHammaddeTuruNo"`
|
||||
TopN int `json:"topN"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingDefaultQtyCalcResponse struct {
|
||||
NHammaddeTuruNo int `json:"nHammaddeTuruNo"`
|
||||
LDefaultMiktar float64 `json:"lDefaultMiktar"`
|
||||
NSampleCount int `json:"nSampleCount"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingDefaultQtyLookupRequest struct {
|
||||
NHammaddeTuruNos []int `json:"nHammaddeTuruNos"`
|
||||
}
|
||||
|
||||
type ProductionProductCostingDefaultQtyLookupItem struct {
|
||||
NHammaddeTuruNo int `json:"nHammaddeTuruNo"`
|
||||
LDefaultMiktar float64 `json:"lDefaultMiktar"`
|
||||
}
|
||||
|
||||
type ProductionHasCostDetailExchangeRates struct {
|
||||
RateDate string `json:"rateDate"`
|
||||
TRYRate float64 `json:"tryRate"`
|
||||
|
||||
Reference in New Issue
Block a user