InventreeBarcodeGenerator/InventreeBarcodeGenerator/Models/Ecia.cs
2026-02-14 17:32:15 +01:00

48 lines
1.2 KiB
C#

namespace BlubbFish.Applications.Barcodes.Inventree.Models {
internal class Ecia {
public String CustomerPO {
get; set;
}
public String PackageId {
get; set;
}
public String ShipDate {
get; set;
}
public String SKU {
get; set;
}
public String MPN {
get; set;
}
public String CustomerPOLine {
get; set;
}
public String Quantity {
get; set;
}
public String DateCode {
get; set;
}
public String LotCode {
get; set;
}
public String County {
get; set;
}
public override String ToString() => this.Quantity + "x " + this.SKU + " from " + this.CustomerPO;
public String ToEciaString() => "{" +
"K" + ":" + this.CustomerPO + "," +
"4S" + ":" + this.PackageId + "," +
"6D" + ":" + this.ShipDate + "," +
"P" + ":" + this.SKU + "," +
"1P" + ":" + this.MPN + "," +
"4K" + ":" + this.CustomerPOLine + "," +
"Q" + ":" + this.Quantity + "," +
"10D" + ":" + this.DateCode + "," +
"1T" + ":" + this.LotCode + "," +
"4L" + ":" + this.County +
"}";
}
}