This commit is contained in:
@@ -146,23 +146,19 @@
|
||||
></v-checkbox>
|
||||
</v-col>
|
||||
|
||||
<v-col
|
||||
v-if="form().showMe(this, 'PurchaseProcessedDate')"
|
||||
cols="12"
|
||||
sm="6"
|
||||
lg="4"
|
||||
xl="3"
|
||||
>
|
||||
<gz-date-time-picker
|
||||
ref="processedDate"
|
||||
v-model="obj.processedDate"
|
||||
:label="$sock.t('PurchaseProcessedDate')"
|
||||
<v-col cols="12" sm="6" lg="4" xl="3">
|
||||
<v-checkbox
|
||||
ref="processed"
|
||||
v-model="obj.processed"
|
||||
dense
|
||||
:readonly="formState.readOnly"
|
||||
:error-messages="form().serverErrors(this, 'processedDate')"
|
||||
data-cy="processedDate"
|
||||
@input="fieldValueChanged('processedDate')"
|
||||
></gz-date-time-picker>
|
||||
:label="$sock.t('PurchaseProcessed')"
|
||||
data-cy="processed"
|
||||
:error-messages="form().serverErrors(this, 'processed')"
|
||||
@change="fieldValueChanged('processed')"
|
||||
></v-checkbox>
|
||||
</v-col>
|
||||
|
||||
<v-col v-if="form().showMe(this, 'PurchaseNotes')" cols="12">
|
||||
<v-textarea
|
||||
ref="notes"
|
||||
@@ -719,55 +715,8 @@ async function fetchTranslatedText() {
|
||||
"PurchaseNotes",
|
||||
"PurchaseRenewNoticeSent",
|
||||
"PurchaseQuantity",
|
||||
"PurchaseProcessedDate",
|
||||
"PurchaseProcessed",
|
||||
"PurchaseVendorData"
|
||||
]);
|
||||
}
|
||||
/*
|
||||
[Required]
|
||||
public long CustomerId { get; set; }
|
||||
[NotMapped]
|
||||
public string CustomerViz { get; set; }
|
||||
[Required]
|
||||
public long VendorId { get; set; }
|
||||
[NotMapped]
|
||||
public string VendorViz { get; set; }
|
||||
[Required]
|
||||
public long ProductId { get; set; }
|
||||
[NotMapped]
|
||||
public string ProductViz { get; set; }
|
||||
public string SalesOrderNumber { get; set; }
|
||||
[Required]
|
||||
public DateTime PurchaseDate { get; set; }
|
||||
public DateTime? ExpireDate { get; set; }
|
||||
public DateTime? CancelDate { get; set; }
|
||||
public string CouponCode { get; set; }
|
||||
public string Notes { get; set; }
|
||||
public bool RenewNoticeSent { get; set; } = false;
|
||||
public int Quantity { get; set; } = 1;
|
||||
public string VendorData { get; set; }
|
||||
public DateTime? ProcessedDate { get; set; }
|
||||
|
||||
|
||||
"CREATE TABLE apurchase (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, customerid BIGINT NOT NULL REFERENCES acustomer(id) ON DELETE CASCADE, "
|
||||
+ "vendorid BIGINT NOT NULL REFERENCES avendor(id), productid BIGINT NOT NULL REFERENCES aproduct(id), salesordernumber TEXT NOT NULL, "
|
||||
+ "purchasedate TIMESTAMPTZ NOT NULL, expiredate TIMESTAMPTZ, canceldate TIMESTAMPTZ, couponcode text, notes text, "
|
||||
+ "renewnoticesent BOOL NOT NULL DEFAULT false, quantity INTEGER NOT NULL DEFAULT 1, "
|
||||
+ "vendordata TEXT, processeddate TIMESTAMPTZ, "
|
||||
+ "wiki TEXT, tags VARCHAR(255) ARRAY )");
|
||||
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'Purchase', 'Purchase' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseList', 'Purchases' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseSalesOrderNumber', 'Sales order #' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseDate', 'Date' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseExpireDate', 'Expires' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseCancelDate', 'Cancelled' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseCouponCode', 'Coupon' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseNotes', 'Notes' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseRenewNoticeSent', 'Renew notice sent' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseQuantity', 'Quantity' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseVendorData', 'Vendor data' FROM atranslation t where t.baselanguage = 'en'");
|
||||
await ExecQueryAsync("INSERT INTO atranslationitem(translationid,key,display) SELECT t.id, 'PurchaseProcessedDate', 'Processed' FROM atranslation t where t.baselanguage = 'en'");
|
||||
|
||||
*/
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user