protected virtual InvoiceException checkBusinessDetails()
        {
            _buyer = new InvoiceBuyer
            {
                Name         = ((int)4).CreateRandomStringCode(),
                ReceiptNo    = String.IsNullOrEmpty(_invItem.BuyerReceiptNo) ? "0000000000" : _invItem.BuyerReceiptNo,
                CustomerID   = _invItem.CustomerID,
                CustomerName = _invItem.BuyerName,
                ContactName  = _invItem.BuyerName,
                Phone        = _invItem.Phone,
                Address      = _invItem.Address,
                EMail        = _invItem.EMail
            };

            return(null);
        }
Ejemplo n.º 2
0
 public static bool IsB2C(this InvoiceBuyer buyer)
 {
     return(String.IsNullOrEmpty(buyer.ReceiptNo) || buyer.ReceiptNo == "0000000000");
 }