Autoset date value.
This commit is contained in:
@@ -630,7 +630,7 @@ namespace Apostol {
|
|||||||
CheckKeyForNull("order", Action.c_str());
|
CheckKeyForNull("order", Action.c_str());
|
||||||
CheckKeyForNull("type", formType.c_str());
|
CheckKeyForNull("type", formType.c_str());
|
||||||
CheckKeyForNull("at", formAt.c_str());
|
CheckKeyForNull("at", formAt.c_str());
|
||||||
CheckKeyForNull("date", formDate.c_str());
|
// CheckKeyForNull("date", formDate.c_str());
|
||||||
CheckKeyForNull("seller_address", formSellerAddress.c_str());
|
CheckKeyForNull("seller_address", formSellerAddress.c_str());
|
||||||
CheckKeyForNull("customer_address", formCustomerAddress.c_str());
|
CheckKeyForNull("customer_address", formCustomerAddress.c_str());
|
||||||
CheckKeyForNull("payment_sum", formPaymentSum.c_str());
|
CheckKeyForNull("payment_sum", formPaymentSum.c_str());
|
||||||
@@ -649,7 +649,7 @@ namespace Apostol {
|
|||||||
Deal["type"] = formType.c_str();
|
Deal["type"] = formType.c_str();
|
||||||
|
|
||||||
Deal["at"] = formAt.c_str();
|
Deal["at"] = formAt.c_str();
|
||||||
Deal["date"] = formDate.c_str();
|
Deal["date"] = formDate.IsEmpty() ? UTCFormat(DateToString(UTC())).c_str() : formDate.c_str();
|
||||||
|
|
||||||
YAML::Node Seller = Deal["seller"];
|
YAML::Node Seller = Deal["seller"];
|
||||||
|
|
||||||
@@ -717,7 +717,7 @@ namespace Apostol {
|
|||||||
CheckKeyForNull("order", Action.c_str());
|
CheckKeyForNull("order", Action.c_str());
|
||||||
CheckKeyForNull("type", formType.c_str());
|
CheckKeyForNull("type", formType.c_str());
|
||||||
CheckKeyForNull("at", formAt.c_str());
|
CheckKeyForNull("at", formAt.c_str());
|
||||||
CheckKeyForNull("date", formDate.c_str());
|
//CheckKeyForNull("date", formDate.c_str());
|
||||||
CheckKeyForNull("seller_address", formSellerAddress.c_str());
|
CheckKeyForNull("seller_address", formSellerAddress.c_str());
|
||||||
CheckKeyForNull("customer_address", formCustomerAddress.c_str());
|
CheckKeyForNull("customer_address", formCustomerAddress.c_str());
|
||||||
CheckKeyForNull("payment_sum", formPaymentSum.c_str());
|
CheckKeyForNull("payment_sum", formPaymentSum.c_str());
|
||||||
@@ -736,7 +736,7 @@ namespace Apostol {
|
|||||||
Deal["type"] = formType.c_str();
|
Deal["type"] = formType.c_str();
|
||||||
|
|
||||||
Deal["at"] = formAt.c_str();
|
Deal["at"] = formAt.c_str();
|
||||||
Deal["date"] = formDate.c_str();
|
Deal["date"] = formDate.IsEmpty() ? UTCFormat(DateToString(UTC())).c_str() : formDate.c_str();
|
||||||
|
|
||||||
YAML::Node Seller = Deal["seller"];
|
YAML::Node Seller = Deal["seller"];
|
||||||
|
|
||||||
@@ -819,7 +819,7 @@ namespace Apostol {
|
|||||||
CheckKeyForNull("order", action.c_str());
|
CheckKeyForNull("order", action.c_str());
|
||||||
CheckKeyForNull("type", formType.c_str());
|
CheckKeyForNull("type", formType.c_str());
|
||||||
CheckKeyForNull("at", formAt.c_str());
|
CheckKeyForNull("at", formAt.c_str());
|
||||||
CheckKeyForNull("date", formDate.c_str());
|
//CheckKeyForNull("date", formDate.c_str());
|
||||||
CheckKeyForNull("seller.address", formSellerAddress.c_str());
|
CheckKeyForNull("seller.address", formSellerAddress.c_str());
|
||||||
CheckKeyForNull("customer.address", formCustomerAddress.c_str());
|
CheckKeyForNull("customer.address", formCustomerAddress.c_str());
|
||||||
CheckKeyForNull("payment.sum", formPaymentSum.c_str());
|
CheckKeyForNull("payment.sum", formPaymentSum.c_str());
|
||||||
@@ -838,7 +838,7 @@ namespace Apostol {
|
|||||||
Deal["type"] = formType.c_str();
|
Deal["type"] = formType.c_str();
|
||||||
|
|
||||||
Deal["at"] = formAt.c_str();
|
Deal["at"] = formAt.c_str();
|
||||||
Deal["date"] = formDate.c_str();
|
Deal["date"] = formDate.IsEmpty() ? UTCFormat(DateToString(UTC())).c_str() : formDate.c_str();
|
||||||
|
|
||||||
YAML::Node Seller = Deal["seller"];
|
YAML::Node Seller = Deal["seller"];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user