Autoset date value.
This commit is contained in:
@@ -505,7 +505,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());
|
||||||
@@ -524,7 +524,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"];
|
||||||
|
|
||||||
@@ -592,7 +592,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());
|
||||||
@@ -611,7 +611,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"];
|
||||||
|
|
||||||
@@ -694,7 +694,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());
|
||||||
@@ -713,7 +713,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