This commit is contained in:
2021-04-01 14:00:26 +00:00
parent 3eda559df9
commit af1ba169e1
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,7 @@ namespace AyaNova.Models
public decimal Charges { get; set; }
public long? TaxCodeId { get; set; }
[Required]
public long LoanItemId { get; set; }
public long LoanUnitId { get; set; }
[Required]
public decimal Quantity { get; set; }
[Required]

View File

@@ -791,7 +791,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
//WORKORDERITEM LOAN
await ExecQueryAsync("CREATE TABLE aworkorderitemloan (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, workorderitemid BIGINT NOT NULL REFERENCES aworkorderitem (id), "
+ "notes TEXT, outdate TIMESTAMP, duedate TIMESTAMP, returndate TIMESTAMP, charges DECIMAL(38,18) NOT NULL default 0, taxcodeid BIGINT REFERENCES ataxcode, "
+ "loanitemid BIGINT NOT NULL REFERENCES aloanitem, quantity DECIMAL(19,5) NOT NULL default 0, rate INTEGER NOT NULL"
+ "loanunitid BIGINT NOT NULL REFERENCES aloanunit, quantity DECIMAL(19,5) NOT NULL default 0, rate INTEGER NOT NULL"
+ ")");
await ExecQueryAsync("ALTER TABLE aloanunit ADD column workorderitemloanid BIGINT NULL REFERENCES aworkorderitemloan");