|
@@ -177,22 +177,35 @@ public class DemandOrderService : IDynamicApiController, ITransient
|
|
|
await _db.Ado.ExecuteCommandAsync(
|
|
await _db.Ado.ExecuteCommandAsync(
|
|
|
"""
|
|
"""
|
|
|
INSERT INTO PurOrdMaster
|
|
INSERT INTO PurOrdMaster
|
|
|
- (PurOrd,OrdDate,Supp,ReqBy,Buyer,Department,Curr,`Usage`,Remark,Potype,FSTID,Status,IsActive,Confirming,
|
|
|
|
|
- CreateUser,CreateTime,UpdateUser,UpdateTime,Domain,tenant_id)
|
|
|
|
|
|
|
+ (
|
|
|
|
|
+ Confirming, CreditTermsInt, Disc, ExchRate, EstVal, ExchRate1, ExchRate2,
|
|
|
|
|
+ FixedPrice, FixedRate, Frt, PartialOK, AmtPrepaid, PrintPO, PST, Recurr,
|
|
|
|
|
+ `Release`, Revision, Scheduled, ServiceCharge, SpecialCharge, Taxable,
|
|
|
|
|
+ Tax1, Tax2, Tax3, TransportDays, IsActive, IsConfirm, Potype, IsChanged,
|
|
|
|
|
+ TaxIn, Amt, IsPriceChanged,
|
|
|
|
|
+ PurOrd, OrdDate, ReqBy, Status, Buyer, Supp, Department, `Usage`, FSTID, Remark,
|
|
|
|
|
+ CreateUser, CreateTime, UpdateUser, UpdateTime, Domain, tenant_id
|
|
|
|
|
+ )
|
|
|
VALUES
|
|
VALUES
|
|
|
- (@PurOrd,@OrdDate,@Supp,@ReqBy,@Buyer,@Department,@Curr,@Usage,@Remark,'PO',@FSTID,'R',1,0,
|
|
|
|
|
- @CreateUser,@CreateTime,@UpdateUser,@UpdateTime,@Domain,@TenantId)
|
|
|
|
|
|
|
+ (
|
|
|
|
|
+ 0, 0, 0, 1, 0, 1, 1,
|
|
|
|
|
+ 0, 0, 0, 1, 0, 0, 0, 0,
|
|
|
|
|
+ 0, 0, 0, 0, 0, 1,
|
|
|
|
|
+ 0, 0, 0, 0, 1, 1, 'PO', 0,
|
|
|
|
|
+ 1, 0, 0,
|
|
|
|
|
+ @PurOrd, @OrdDate, @ReqBy, 'R', @Buyer, @Supp, @Department, @Usage, @FSTID, @Remark,
|
|
|
|
|
+ @CreateUser, @CreateTime, @UpdateUser, @UpdateTime, @Domain, @TenantId
|
|
|
|
|
+ )
|
|
|
""",
|
|
""",
|
|
|
new SugarParameter("@PurOrd", purOrd),
|
|
new SugarParameter("@PurOrd", purOrd),
|
|
|
new SugarParameter("@OrdDate", ordDate),
|
|
new SugarParameter("@OrdDate", ordDate),
|
|
|
- new SugarParameter("@Supp", input.Supp.Trim()),
|
|
|
|
|
new SugarParameter("@ReqBy", reqBy),
|
|
new SugarParameter("@ReqBy", reqBy),
|
|
|
new SugarParameter("@Buyer", buyer),
|
|
new SugarParameter("@Buyer", buyer),
|
|
|
|
|
+ new SugarParameter("@Supp", input.Supp.Trim()),
|
|
|
new SugarParameter("@Department", input.Department.Trim()),
|
|
new SugarParameter("@Department", input.Department.Trim()),
|
|
|
- new SugarParameter("@Curr", input.Curr?.Trim()),
|
|
|
|
|
new SugarParameter("@Usage", usage),
|
|
new SugarParameter("@Usage", usage),
|
|
|
- new SugarParameter("@Remark", input.Remark?.Trim()),
|
|
|
|
|
new SugarParameter("@FSTID", fstid),
|
|
new SugarParameter("@FSTID", fstid),
|
|
|
|
|
+ new SugarParameter("@Remark", input.Remark?.Trim()),
|
|
|
new SugarParameter("@CreateUser", _userManager.Account),
|
|
new SugarParameter("@CreateUser", _userManager.Account),
|
|
|
new SugarParameter("@CreateTime", now),
|
|
new SugarParameter("@CreateTime", now),
|
|
|
new SugarParameter("@UpdateUser", _userManager.Account),
|
|
new SugarParameter("@UpdateUser", _userManager.Account),
|